Page 1 of 1

Problems with SMTP configuration using SwiftMailer

Posted: Mon Apr 06, 2009 2:01 pm
by qqrq
Hello everyone

I've been using SwiftMailer (with Symfony framework) for some time now, but I've had a problem recently. I've been using polish hosting service "nazwa.pl" and occured following problem while trying to send e-mail via their SMTP server using SwiftMailer:
Expected response code(s) [250] but got response [553 5.0.0 ... Sending from non local domain after authentication prohibited]
I'm almost 100% positive that all the connection data are correct. What is wrong here, does anybody have any idea? Is it Swift's problem, or this specific SMTP server? Has anyone encountered this thing before?

Thanks

Re: Problems with SMTP configuration using SwiftMailer

Posted: Mon Apr 06, 2009 4:40 pm
by Chris Corbyn
The error is coming from the SMTP server and it is telling you that your are NOT permitted to send FROM an external domain, even after authenticating.

You need to send FROM the same domain as this server with this SMTP server.

NOTE: Using $message->setReturnPath() with an address in the same domain as the server will probably fix this.

Re: Problems with SMTP configuration using SwiftMailer

Posted: Tue Apr 07, 2009 2:19 pm
by qqrq
Thanks very much, that helped a lot ;)

Re: Problems with SMTP configuration using SwiftMailer

Posted: Thu Jul 22, 2010 4:26 am
by vijayk
Thank you dude ....... It worked for me well.

I was too frustrated while searching the solution for the same problem. Finally get resolved as per your given instruction.