Jump to content

Php mail


deansaddigh

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.