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
Add / View Comments to this post - There are 3 Responses
Latest Comments
- James: lol, James you got some issues...
- Nancy Ruttman: I really value what you’re pro...
- Charlie Walter: Ahh its too good, can i find y...
- James: Go for it!...
- luoluo123: Hey there, Could I download th...
Latest Poetry
- What a way to waste a life:
Post added - 10 April , 2012 - Simple wish:
Post added - 25 March , 2012 - Over the hills:
Post added - 31 January , 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
- Fissure – By James Trusler:
Post added - 28 July , 2010




