php - Why is SwiftMailer throwing "Internal Server Error"? -


I am using Symphony + Swift Mailer and getting the following error from Swift Mailer:

< Pre> 500 | Internal server error. The code with the Swift_TransportException expected response code 220, but the "" ""

message is missing and can not understand why I am using hMailServer on my local machine, and Your factories Organizing the Assam file (as I am using Symphony):

  Mailer: Category: sfMailer param: logging:% SF_LOGGING_ENABLED% charset:% SF_CHARSET% delivery_strategy: Real time Transport: Category: Swift_SMTP Transport Ultimate: Host: splodge.loc Port: 25 Encryption: ~ Username: ~ Password: ~  

I am using the following code to send: < / P>

  $ message = $ this-> GetMailer () - & gt; Type ('noreply@splodge.loc', 'info@splodge.loc', 'reset password', 'message'); $ Result = $ this- & gt; Membel () - & gt; Send ($ message);  

Has anyone had any such problem before?

I've found that sometimes, and very randomly, is sent, but every time, on the error message, I constantly refresh the page that sends the mail, unexpectedly It fails to understand, and as code sometimes works, it is wrong.

Any help would be highly appreciated!


Further investigation has shown that SMTP server sends [220 localhost ESMTP], but after logging in to the HM Mail server, searched the following:

"TCPIP" 5232 "2010-06-16 11:40: 54.043" "TCP Connection - Post Acceptable X to 0.0.0.0:25" "DEBUG" 5232 "Session 2010-06-16 16: 40: 54.043" 51 Making "SMTPD" 5232 51 "2010-06-16 11:40: 54.043" "127.0.0.1" "SENT: 220 Localhost ESMTP" "Debuts" 52 9 6 "2010-06 -16 11: 40: 54.199" "The task of reading failed. Bytes Transported: 0 Remote IP: 127.0.0.1, Session: 51, Code: 10054, Message: An existing connection was closed by remote host "DEBUG" 52 9 6 "2010-06-16 11: 40: 54.199 "" session is ending 51 "

Could it be that Swift Mailer Hello / EHold is very fast, and this is only a one time issue? Can I delay the HELO transmission in a little while?

Good log, when it actually sends, looks like this:

  "TCPIP" 5232 "2010-06-16 11:42: 21.278" "TCP Connection ExceptX posting at 0.0.0.0:25 "DEBUG" 5232 "2010-06-16 11:42: 21.294" "Making session 54" "SMTPD" 5232 54 "2010-06-16 11:42: 21.294" "127.0 .0.1 "" SENT: 220 localhost ESMTP "" SMTPD "5224 54" 2010-06-16 11:42: 21.294 "" 127.0.0.1 "" Received: ehlo splodge.loc " 

Therefore, it has to be done with HELO / EHLO approval. Please advise! :)

Looks like a SMTP problem.

If you are following the command line:

Telnet splodge.loc 25

Can you connect? What does the answer line start at 220?

If not, you have a problem configuring your SMTP server (or perhaps firewall).


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -