universalButton searchButton searchButton

FT FacePress II, Set a sender address
4 August , 2010

I’ve just gone through the process of adding posts from my wordpress site into Facebook and Twitter and after trying various amounts of shitty plugins I found these two beauties:

They are great and the Twitter plugin pretty much works straight off. It allows your posts, when published/updated, to automatically be added into Twitter. Unfortunately, FT FacePress II was not such a chalmer.

The problem was that One.com limit PHP mailer emails to 20 per day, and so I was cursing and blinding for about an hour before realising why the plugin did not work. So here’s the work around:

  1. Create an email address with your host and call it something like out@domain.com
  2. Download the Plugin: FT FacePress II
  3. Edit the plugin and replace the following code:
if (!function_exists("ft_publish_status")) {
 function ft_publish_status($emailAddr, $status) { 

 $message = '-';
 $headers = 'From: '. get_bloginfo('admin_email') . "\r\n" .
 'Reply-To: '. get_bloginfo('admin_email') . "\r\n" .
 'X-Mailer: PHP/' . phpversion();
 wp_mail($emailAddr, $status, $message, $headers);

 if (is_wp_error($result)) {
 return $result->get_error_message();
 } else if (isset($result["response"]["code"])) {
 return $result["response"]["code"];
 } else {
 return false;    }
 }
}

with:

if (!function_exists("ft_publish_status")) {
 function ft_publish_status($emailAddr, $status) { 

 $message = '-';
 $headers = 'From: out@yourdomain.com' . "\r\n" .
 'Reply-To: '. get_bloginfo('admin_email') . "\r\n" .
 'X-Mailer: PHP/' . phpversion();
 wp_mail($emailAddr, $status, $message, $headers);

 if (is_wp_error($result)) {
 return $result->get_error_message();
 } else if (isset($result["response"]["code"])) {
 return $result["response"]["code"];
 } else {
 return false;    }
 }
}

And there we have it. You can now send as many freaking status updates as your host allows.

Enjoy success

Share |



3 Responses to “FT FacePress II, Set a sender address”

  1. Shane says:

    I dont suppose you know how to make it send a custom field in the title do you? I’ve spent ages trying but it doesnt seem to work. I’ve changed the Except tag to try and get the custom field, but it doesnt work. Any help would be much appreciated.

    • James says:

      I’ll have a play (with the code) and get back to you on that. Fastest way to get a response will be to ask within the wordpress forums, they usually give great feedback in minutes.

  2. ajolkaaa2 says:

    Sorry for my bad english. Thank you so much for your good post. Your post helped me in my college assignment, If you can provide me more details please email me.

Leave a Comment

Latest Poetry

Latest Music

  1. Always rains – 04:29
  2. Cliffside – 01:13
  3. Cosmic tribunal – 04:03
  4. Desperation makes friends – 06:29
  5. Dusty blues – 03:22
  6. Forward is a chance we take – 02:33
  7. Intersect – 02:04
  8. Sheriff – 06:25
  9. To sleep – 01:20
  10. Wake in your dream – 02:38
Download Album

Latest Pictures

LISTEN TO LIVE JAZZ RADIO - kcsm.org - Compliments to www.kcsm.org/jazz91/ - US