IndianaGuy Posted December 11, 2017 Share Posted December 11, 2017 This use to work but not anymore. Any ideas why? when I replace $to with a real email address. it works just fine! //xx.. is a 10 digit phone number. ATT says this should work! $to = xxxxxxxxxx@att.txt.net"; $subject = "My subject"; $txt = "Hello world!"; mail($to,$subject,$txt); Link to comment Share on other sites More sharing options...
justsomeguy Posted December 11, 2017 Share Posted December 11, 2017 Does it work if you email that address using a regular mail client instead of PHP? Link to comment Share on other sites More sharing options...
IndianaGuy Posted December 11, 2017 Author Share Posted December 11, 2017 If I understand you correctly, YES. I sent myself an email to xxxxxxxxxx@att.txt.net from my gmail account and it came to the phone as a text message just as expected. Thank you for the help Link to comment Share on other sites More sharing options...
justsomeguy Posted December 11, 2017 Share Posted December 11, 2017 And you said that if you replace that email address in PHP with another one, you get the email? If that's the case, then AT&T is probably blocking your email from PHP. Link to comment Share on other sites More sharing options...
Subverter Posted December 14, 2017 Share Posted December 14, 2017 Quote $to = "xxxxxxxxxx@att.txt.net"; Seems you are missing a double quotation there 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now