Problems with SMTP configuration using SwiftMailer

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
qqrq
Forum Newbie
Posts: 2
Joined: Mon Apr 06, 2009 1:54 pm

Problems with SMTP configuration using SwiftMailer

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: Problems with SMTP configuration using SwiftMailer

Post 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.
qqrq
Forum Newbie
Posts: 2
Joined: Mon Apr 06, 2009 1:54 pm

Re: Problems with SMTP configuration using SwiftMailer

Post by qqrq »

Thanks very much, that helped a lot ;)
vijayk
Forum Newbie
Posts: 1
Joined: Thu Jul 22, 2010 4:22 am
Location: Pune, Maharashtra, India

Re: Problems with SMTP configuration using SwiftMailer

Post 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.
Post Reply