jcsatujp Posted December 24, 2012 Share Posted December 24, 2012 Hello, I wonder if someone can help me. Facebook allows you to update your status by sending an email to a secret email address. The subject of your email will appear as a status update on your facebook page. For several years I have been using the following code to update my facebook status, basically sending an email to my secret facebook email address. $to = 'secretaddress@m.facebook.com'; $subject = 'This will appear as a status update on my facebook page'; $message = 'This does not get used and will not appear on my facebook page'; $headers = "From: my_email@my_domain\r\n"."X-Mailer: PHP/" . phpversion(); $params = "-f"."my_email@my_domain"; $mail_sent = mail($to, $subject, $message, $headers, $params); All has been well and I have not had a problem. However, about 10 days ago the updates have stopped appearing on my facebook page. I am getting those emailed returned. The returned email reads as follows. This is the Postfix program at host smtp-out-59.livemail.co.uk. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to <postmaster> If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program <secretaddress@m.c10r.facebook.com>: host smtpin.mx.facebook.com[69.171.244.11] said: 550 5.1.1 RCP-P1 http://postmaster.fa...171.216.216#rcp Recipient address does not exist (in reply to RCPT TO command) I notice that the address it mentions is secretaddress@m.c10r.facebook.com yet I have clearly sent my email to secretaddress@m.facebook.com I have done a couple of other things to check things out I have sent an email to secretaddress@m.facebook.com via outlook and that updates my facebook status I have amend the code above to send to another address and it reaches the recipient with no problem. So the problem arrises when I use the combination of the above code and having the recepiant as my secret facebook email address. Has anyone any ideas, or better still has anyone got a solution? I am a beginner in all things PHP and interfacing with hotmail. Which is why I used the secret email route to automatically update my facebook status. Regards, Quote Link to comment https://forums.phpfreaks.com/topic/272342-emailing-to-secret-facebook-address/ Share on other sites More sharing options...
requinix Posted December 25, 2012 Share Posted December 25, 2012 (edited) m.facebook.com and m.c10r.facebook.com are the exact same thing*. There's no problem there. (And continue using m.facebook.com.) What if you reset the email address? Does the new one work? * For now, and for email addresses. Edited December 25, 2012 by requinix Quote Link to comment https://forums.phpfreaks.com/topic/272342-emailing-to-secret-facebook-address/#findComment-1401195 Share on other sites More sharing options...
jcsatujp Posted December 26, 2012 Author Share Posted December 26, 2012 What if you reset the email address? Does the new one work? Thank you for your reply. What exactly do you mean by "reset the email address"? As I mentioned in my initial post, I have sent to other email addresses and the email arrives there with no problems using the mentioned code. I have sent an email directly yo the secret facebook address via outlook (and other email programs) and the status is updated with no problems. As far as I know there is no method to change the secret email address. Quote Link to comment https://forums.phpfreaks.com/topic/272342-emailing-to-secret-facebook-address/#findComment-1401292 Share on other sites More sharing options...
requinix Posted December 26, 2012 Share Posted December 26, 2012 As far as I know, there is. Perhaps "refresh" is the magic word? Unless the error message actually means that you're hitting some spam filter, there's some problem with the combination of your code and that email address. Perhaps you should not write your own emailing code and to use something reliable like PHPMailer instead. Quote Link to comment https://forums.phpfreaks.com/topic/272342-emailing-to-secret-facebook-address/#findComment-1401293 Share on other sites More sharing options...
OFRW2013 Posted February 19, 2013 Share Posted February 19, 2013 I can confirm I am having the exact same problem and I am using the latest version of PHPMailer to do the emailing. On my site for years I used this method to auto post to facebook page status via mobile email etc every time someone created a new donation widget on my site, to help promote their new page/widget. However quite a while back this stopped working so i thought nothing of it and stopped using it for a while as I didnt have time to fix it. Looking into it today and have tried everything. The mobile email secret etc has been reset but still didnt fix the problem. When using the mobile secret email directly in an email program to add text or even photo or url to fb page status it works perfectly. But when using ANY php script hosted on my server to do the sending of the email, it does not seem to make it to the page status, I do not see any emails come back to me saying errors, and I successfully confirmed the script is working by adding my own email as a BCC address in PHPMailer and I get those just fine, so the script is running and sending the emails. Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/272342-emailing-to-secret-facebook-address/#findComment-1413281 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.