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:
- Create an email address with your host and call it something like out@domain.com
- Download the Plugin: FT FacePress II
- 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
Next post: Interested in my previous Diabetics have to queue post?
3 Responses to “FT FacePress II, Set a sender address”
Leave a Comment
Latest Comments
- James: Check this page out: http:/...
- Reshy de Creshy: We sit down here, our favourit...
- Matías: Hi. I can't do I work. I want ...
- James: Party play was finally added a...
- Jordan: then why does it show a party ...
Latest Poetry
- Concrete waves:
Post added - 10 September , 2012 - The irreversible:
Post added - 10 September , 2012 - Here we are:
Post added - 6 September , 2012
Latest Music
- Never finished:
Post added - 28 November , 2010
- Always rains – 04:29
- Cliffside – 01:13
- Cosmic tribunal – 04:03
- Desperation makes friends – 06:29
- Dusty blues – 03:22
- Forward is a chance we take – 02:33
- Intersect – 02:04
- Sheriff – 06:25
- To sleep – 01:20
- Wake in your dream – 02:38
Latest Pictures
- Untitled3:
Post added - 22 June , 2012





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.
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.
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.