deansaddigh Posted February 25, 2010 Share Posted February 25, 2010 Hi, i have created a php email script. //Send an email $headers = "From: languageschoolsuk.com\r\n"; if (mail($email, $subject, $message, $headers)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } However when the email comes through to my hotmail account wiith This message has been blocked for your safety But i can just click show message and it shows me the message. On my fasthosts account i have set up this email address [email protected] Is there anyway to get the mail script to send from the actuall adress as appose to just writing it in the header Link to comment https://forums.phpfreaks.com/topic/193411-php-mail/ Share on other sites More sharing options...
monkeytooth Posted February 25, 2010 Share Posted February 25, 2010 if your host allows it you can port it through the SMTP directly, well that description is a bit off, but bottom line is even without sending it like that and just as a script.. the way you have it rigged there, there is no headers, no other identifying marks pertaining to an email to solidify its legitimacy. All this description for a lack of better words. Either way if you pipe it through the SMTP through an existing email account of spoof the sender the email itself is currently lacking headers and some other key data. Thus kicking it back as spam. But then again a lot of things can kick email back as spam from links contained within to just key words or phrases. Hotmail is one of the more strict of default settings as far as spam goes. Inadvertently you can if your just sending yourself emails add the spoofed email or whatever to your "Safe Senders" list Link to comment https://forums.phpfreaks.com/topic/193411-php-mail/#findComment-1018284 Share on other sites More sharing options...
deansaddigh Posted February 25, 2010 Author Share Posted February 25, 2010 Ok thanks for your help. I thought i did have headers with this line $headers = "From: languageschoolsuk.com\r\n"; Do i need others? Link to comment https://forums.phpfreaks.com/topic/193411-php-mail/#findComment-1018287 Share on other sites More sharing options...
deansaddigh Posted February 25, 2010 Author Share Posted February 25, 2010 ive added these headers $headers = "Reply-To: languageschoolsuk.com\r\n"; $headers = "Return-Path: languageschoolsuk.com\r\n"; $headers = "From: languageschoolsuk.com\r\n"; Is that right Link to comment https://forums.phpfreaks.com/topic/193411-php-mail/#findComment-1018288 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.