Content of post does not end up in “ShareThis” mail

One year ago a support employee wrote that “as of right now, the only fields that will show up in an email share is the link title and URL.” I don’t know whether this is still the case. But I doubt that ShareThis would ever send the whole contents of the post via mail. I … Read more

Automatically email daily archive

I do not think this is built into WordPress currently. This would probably need to be custom-built. It would be some php code that is attached to a cron job. Set the cron job to run every day, and have your php script email out the page. These resources may help: http://ss64.com/osx/crontab.html (via https://stackoverflow.com/questions/5256429/how-to-use-crontab-for-sending-weekly-email-in-php)

show a little contact form in homepage without plugin

The Agregado Theme comes with a little contact form I modified for one of my themes, I guess it’s ok for you to use it as long as the credits remain there. <?php //Contact script created by Tim McDaniels and Darren Hoyt for the Mimbo Pro and Agregado themes, modified by Mario Aguiar cuz it … Read more

Send email when publish new post in certain categories

You can use transition_post_status function, then fetch users and send an email to all users. Here is a sample code, it’s not tested. But it will get you started with this. function wcs_send_mail_on_publish_category_posts( $new_status, $old_status, $post ) { global $post; if ( ‘publish’ !== $new_status or ‘publish’ === $old_status ) return; if ( in_category( array( … Read more

Adding “reply-to” in the email [closed]

Not sure what the WC_Email class does exactly, but if the $headers argument is an array of headers, then you’re almost there. To interpolate a variable value into a string in PHP you don’t have to do the <?php … stuff because it’ll be rendered as is. Instead, you can use: $headers = array( “Reply-To: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)