Page 1 of 1

Send as no-reply@

Posted: Thu Aug 07, 2008 8:04 am
by blasterstudios
How do I send emails out FROM: no-reply@mydomain.com without having to actually setup that email account on the server. When I attempt without it being setup, i get this sort of error:

550-Verification failed for <no-reply@mydomain.com>
550-No Such User Here
550 Sender verify failed

Is it possible to send the email using the cpanel account for the domain that is already setup and have no-reply in the FROM field?

Thanks.

Re: Send as no-reply@

Posted: Thu Aug 07, 2008 8:09 am
by Dynamis
It all depends on how you are sending e-mails I guess. Here is the code I use to send no-reply emails.

Code: Select all

 
function forgotPassword($email, $newPass){
    $from = "From: My Company Name Here <no-reply@example.com>";
    $subject = "Subject goes here";
    $body = "New Password: ".$newPass." More Text here\r\n";
    return mail($email,$subject,$body,$from);
}
 
And as you stated, I do not have a no-reply e-mail set up anywhere, but this works fine.

Re: Send as no-reply@

Posted: Thu Aug 07, 2008 1:36 pm
by blasterstudios
I'm trying to use Swift Mailer to send out the email, rather than just using mail()