My company uses dreamhost for several websites and we also use dreamhost to host our email for redrhinomg.com.
We actually host the webserver at our office and everything works great except when I’m trying to send auto emails.
Using php and the basic mail(), I’ve modified the .ini settings to have:
When trying to send the email I get the following error:
mail() [function.mail]: SMTP server response: 554 5.7.1 <unknown[22.214.171.124]>: Client host rejected: Access denied
I’m assuming because the email is originating form my server (126.96.36.199) and the dreamhost email server is rejecting?
The test php code is as follows:
$to = ‘firstname.lastname@example.org’;
$subject = ‘Test from ryan’;
$message = ‘test’;
$headers = ‘From: email@example.com’ . “\r\n” .
‘Reply-To: firstname.lastname@example.org’ . “\r\n” .
‘X-Mailer: PHP/’ . phpversion();
mail($to, $subject, $message, $headers);
Thanks for your help!