Jump to content

Recommended Posts

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

  1. I have sent an email to secretaddress@m.facebook.com via outlook and that updates my facebook status
     
  2. 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,

Link to comment
https://forums.phpfreaks.com/topic/272342-emailing-to-secret-facebook-address/
Share on other sites

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 by requinix

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.

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.

  • 1 month later...

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.