doubledee Posted December 29, 2011 Share Posted December 29, 2011 Why is this line of code not sending an e-mail to my gmail account? mail($email, 'Re: Log-In Issue', $body, 'From: admin@MySite.com <admin@MySite.com>'); I stepped through my code, and $email = 'debbies_email_account@gmail.com' I'm confused?! Debbie Quote Link to comment https://forums.phpfreaks.com/topic/254038-why-is-email-failing/ Share on other sites More sharing options...
floridaflatlander Posted December 29, 2011 Share Posted December 29, 2011 I don't know but in my site email I just have 'From: admin@MySite.com' not 'From: admin@MySite.com <admin@MySite.com>' Quote Link to comment https://forums.phpfreaks.com/topic/254038-why-is-email-failing/#findComment-1302340 Share on other sites More sharing options...
doubledee Posted December 29, 2011 Author Share Posted December 29, 2011 I forgot to check my Spam folder in Gmail. Oops! Debbie Quote Link to comment https://forums.phpfreaks.com/topic/254038-why-is-email-failing/#findComment-1302357 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.