I hit an error in sending email with Scriptcase. I use “Send a simple email” code to send email. I test sending email in my local server and it runs well. But in production server, they display error as below. How do I solve this error ?
[13-Nov-2015 14:59:41 Asia/Jakarta] PHP Fatal error: Uncaught exception ‘Swift_RfcComplianceException’ with message ‘Address in mailbox given [admin@laundryapps.com, aman.djauw@gmail.com] does not comply with RFC 2822, 3.6.2.’ in /home/laundrya/public_html/_lib/prod/third/swift/classes/Swift/Mime/Headers/MailboxHeader.php:308
Stack trace:
#0 /home/laundrya/public_html/_lib/prod/third/swift/classes/Swift/Mime/Headers/MailboxHeader.php(238): Swift_Mime_Headers_MailboxHeader->_assertValidAddress(‘admin@laundryap…’)
#1 /home/laundrya/public_html/_lib/prod/third/swift/classes/Swift/Mime/Headers/MailboxHeader.php(96): Swift_Mime_Headers_MailboxHeader->normalizeMailboxes(Array)
#2 /home/laundrya/public_html/_lib/prod/third/swift/classes/Swift/Mime/Headers/MailboxHeader.php(60): Swift_Mime_Headers_MailboxHeader->setNameAddresses(Array)
#3 /home/laundrya/public_html/_lib/prod/third/swift/classes/Swift/Mime/SimpleHeaderFactory.php(60): Swift_Mime_Headers_MailboxHeader->setFieldBodyModel(Array)
#4 /home/laundrya/public_html/_lib/prod/third/swift/classes/Swift/Mime/Simpl in /home/laundrya/public_html/_lib/prod/third/swift/classes/Swift/Mime/Headers/MailboxHeader.php on line 308
The Swift_RfcComplianceException exception is generally thrown when Swift Mailer is input with an invalid e-mail address (invalid as in “does not follow the syntax defined in the RFC document”, not as in “the account does not exist”). I suggest you to kindly contact your developer correcting the code of the script used and let us know if anything can be done from our end.
www.LiviApps.com (Scriptcase Specialist - English language)
www.OwenSolution.com (Scriptcase Specialist - Indonesian language)