Guest Posted January 27, 2005 Share Posted January 27, 2005 Hi I wonder if anyone can help me here, My Host has just sent this out to me Hello, Due to the high level of Spam and user complaints pertaining to our network, we are preventing all email from being sent from the Vortech network which does not contain a valid email sender address. Using PHP to send Mail on UNIX: The most common of these emails is a PHP mail function generated mail that has no sender address set. The following is the correct usage of the PHP mail() function: mail("email@example.com", "the subject", $message, "From: firstname.lastname@example.org", "-email@example.com"); In this example, "Nobody@example.com will recieve an email with the subject of "The subject" and a body of the contents of the php variable "$message". The "From: firstname.lastname@example.org" is what the message header will say. The last field, "-email@example.com", is setting the from address. JUST setting the "From:" in the header will NOT set the from address for the email. You MUST use this 5th field to set the senders address. Using PHP to send Mail on Windows: Edit the php.ini file in your home directory. "firstname.lastname@example.org" will not work. You must use a valid senders address in this field. Vortech makes no exceptions for improperly formatted mail. Best Regards, James Vortech, Inc. Now all my OSC sites dont send mail - I have filled in the from address etc and its still not working - any ideas? PS its send mail on a linux box Thanks all Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.