FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
just updated formtools 2 core and getting swift mailer errors
#1
I'm trying to use swift mailer using the settings according to a post in General Discussion for Godaddy. I've tried using it in the past and haven't gotten it to work.

My formtools is currently up to date as of 10/31/09 (updated tonight). Swiftmailer works when I do a test email for a form but I get the following error when trying from the live form:

Fatal error: Uncaught exception 'Swift_BadResponseException' with message 'Expected response code(s) [250] but got response [553 sorry, your mail was administratively denied. (#5.7.1)]' in /home/content/w/p/i/[mylocation]/html/forms2/modules/swift_mailer/php5/Swift.php:250 Stack trace: #0 /home/content/w/p/i/[mylocation]/html/forms2/modules/swift_mailer/php5/Swift.php(310): Swift->assertCorrectResponse(Object(Swift_Events_ResponseEvent), 250) #1 /home/content/w/p/i/[mylocation]/html/forms2/modules/swift_mailer/php5/Swift.php(373): Swift->command('MAIL FROM: <.....', 250) #2 /home/content/w/p/i/[mylocation]/html/forms2/modules/swift_mailer/library.php(301): Swift->send(Object(Swift_Message), Object(Swift_RecipientList), Object(Swift_Address)) #3 /home/content/w/p/i/[mylocation]/html/forms2/global/code/emails.php(1102): swift_send_email(Array) #4 /home/content/w/p/i/[mylocation]/html/forms2/global/code/emails.php(1070): ft_process_email_template('1', 749, '1') #5 /home/content/w/p/i/[mylocation]/html/forms2/process.php(317): ft_send_ema in /home/content/w/p/i/[mylocation]/html/forms2/modules/swift_mailer/php5/Swift.php on line 250

I'm not sure why it works when I do a test but not from the real form. Any help would be appreciated.

Thanks!
Nytsua
Reply
#2
(Oct 31st, 2009, 8:57 PM)nytsua Wrote: I'm trying to use swift mailer using the settings according to a post in General Discussion for Godaddy. I've tried using it in the past and haven't gotten it to work.

My formtools is currently up to date as of 10/31/09 (updated tonight). Swiftmailer works when I do a test email for a form but I get the following error when trying from the live form:

Fatal error: Uncaught exception 'Swift_BadResponseException' with message 'Expected response code(s) [250] but got response [553 sorry, your mail was administratively denied. (#5.7.1)]' in /home/content/w/p/i/[mylocation]/html/forms2/modules/swift_mailer/php5/Swift.php:250 Stack trace: #0 /home/content/w/p/i/[mylocation]/html/forms2/modules/swift_mailer/php5/Swift.php(310): Swift->assertCorrectResponse(Object(Swift_Events_ResponseEvent), 250) #1 /home/content/w/p/i/[mylocation]/html/forms2/modules/swift_mailer/php5/Swift.php(373): Swift->command('MAIL FROM: <.....', 250) #2 /home/content/w/p/i/[mylocation]/html/forms2/modules/swift_mailer/library.php(301): Swift->send(Object(Swift_Message), Object(Swift_RecipientList), Object(Swift_Address)) #3 /home/content/w/p/i/[mylocation]/html/forms2/global/code/emails.php(1102): swift_send_email(Array) #4 /home/content/w/p/i/[mylocation]/html/forms2/global/code/emails.php(1070): ft_process_email_template('1', 749, '1') #5 /home/content/w/p/i/[mylocation]/html/forms2/process.php(317): ft_send_ema in /home/content/w/p/i/[mylocation]/html/forms2/modules/swift_mailer/php5/Swift.php on line 250

I'm not sure why it works when I do a test but not from the real form. Any help would be appreciated.

Thanks!
Nytsua

Update: Since no reply I've given up and am continuing with the changes that I made before.
Reply
#3
Sorry nystua, I read your post earlier but didn't have anything to suggest... The test tab of the Email Templates pages uses a lot of the same code for displaying/sending an email, but not all. There will always be differences between that and actual emails sent via the form.

The error message implies that there's some reason that the SMTP server is rejecting the email, but I'd need to look at it directly to debug it... and I'm rather short of time!

Sorry I couldn't be any help.

- Ben
Reply
#4
(Nov 14th, 2009, 12:09 PM)Ben Wrote: Sorry nystua, I read your post earlier but didn't have anything to suggest... The test tab of the Email Templates pages uses a lot of the same code for displaying/sending an email, but not all. There will always be differences between that and actual emails sent via the form.

The error message implies that there's some reason that the SMTP server is rejecting the email, but I'd need to look at it directly to debug it... and I'm rather short of time!

Sorry I couldn't be any help.

- Ben


No problem, but thanks for replying!
Reply
#5
Has this ever been solved, having the same error. Had email working correctly for about 3 months then all of a sudden.. poof! above error message. Any help with this would be great!

Copy of error message:

Fatal error: Uncaught exception 'Swift_BadResponseException' with message 'Expected response code(s) [250] but got response []' in /home/content/w/b/b/[mylocation]/html/formtools/modules/swift_mailer/php5/Swift.php:250 Stack trace: #0 /home/content/w/b/b/[mylocation]/html/formtools/modules/swift_mailer/php5/Swift.php(310): Swift->assertCorrectResponse(Object(Swift_Events_ResponseEvent), 250) #1 /home/content/w/b/b/[mylocation]/html/formtools/modules/swift_mailer/php5/Swift.php(261): Swift->command('EHLO [173.201.1...', 250) #2 /home/content/w/b/b/[mylocation]/html/formtools/modules/swift_mailer/php5/Swift.php(220): Swift->handshake(Object(Swift_Events_ResponseEvent)) #3 /home/content/w/b/b/[mylocation]/html/formtools/modules/swift_mailer/php5/Swift.php(101): Swift->connect() #4 /home/content/w/b/b/[mylocation]/html/formtools/modules/swift_mailer/library.php(196): Swift->__construct(Object(Swift_Connection_SMTP)) #5 /home/content/w/b/b/[mylocation]/html/formtools/global/code/emails.php(1232): swift_send_email(Array) #6 /home/content/w/b/b/[mylocation]/html/formt in /home/content/w/b/b/[mylocation]/html/formtools/modules/swift_mailer/php5/Swift.php on line 250
Reply
#6
Hey deadline,

Have you tried checking over the Swift Mailer module settings, re-saving them and re-trying the test emails?

- Ben
Reply
#7
Also got this error and fixed.
'Expected response code(s) [250] but got response [553 sorry, your mail was administratively denied.
This was showing up when the user submits a gmail.com or yahoo.com email address.
Since the form notification uses "From: user's email", and the from is an external server like yahoo or gmail, Godaddy's SMTP server rejects the message.
Just change the form notification setting "from" email address to something@yourdomain.com where yourdomain.com is your godaddy domain.
Reply
#8
Excellent, thanks for letting us know your fix. Smile

- Ben
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)