Sending authenticated email with Swift Mailer

Asked

Viewed 330 times

0

I have a php file that sends authenticated emails using the Swift Mailer class. I implemented the class on one server but the email used in authentication is from another SMTP server. We entered everything correctly, the port, the password, the SMTP server... However, authentication when sending e-mai is failing.

Cannot use data from another SMTP server?

1 answer

0


It should work, but I don’t know this class to give a specific recommendation.

I recommend the class instead MIME Email message that serves the same purpose, and has a debug option that shows the SMTP dialog between the class and the server, so you know exactly what error is being returned so you can solve the problem.

  • thanks for your time, but I need the answer even for the Swift Mailer class, the application uses the class.

  • See if you have a debug option that shows the SMTP dialog maybe in a log. Without this it is difficult to diagnose the problem. Alternatively, you can try using the class mentioned above with the debug option only to see what happens at the SMTP level.

  • I could not understand the origin of the problem, but it was worth the suggestion to change class. Thank you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.