Jump to content

playground

New Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by playground

  1. The code is bog standard, nothing strange or unusual about it: $to='[email protected]'; $subject='This Is a test email to playground'; $body='Hi, this is an email content'; $headers='From: [email protected]'; if(mail($to,$subject,$body,$headers)) { echo 'mail(..) returned true'; } else { echo 'mail(..) returned false'; }
  2. Hi there, I hope someone can help me with this. My php mail(..) code appears to be working just fine when sending to my gmail account. (1) mail(...) returns TRUE and (2) when i look in my gmail account i can see the emails arrive. So... from this i conclude that my php email code is working fine. however, when i change the receiver's email address to <user>@yahoo.co.uk or <user>@protonmail.ch the emails never arrive. mail(...) returns TRUE.... but the emails never arrive. I imagine that my emails are being spam filtered.... but... there's nothing in the spam folders of either <user>@yahoo.co.uk nor <user>@protonmail.ch. So perhaps this filtering is going on before it reaches yahoo/protonmail ?? I'm running php currently off my local machine. It doesn't seem to matter whether i specify the 'FROM' field as [email protected] or [email protected] (i get consist results, it works for gmail, but not for yahoo and protonmail) Any help... suggestions... or the correct answer ;-) would be gratefully appreciated :-) playground [email protected]
×
×
  • 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.