Results 1 to 3 of 3

Thread: Simple email form stopped working

  1. #1
    New user
    Join Date
    10-31-11.
    Posts
    28

    Default Simple email form stopped working

    I have two web pages both on 2.9. Both have simple email comment forms. One of them stopped working for no apparent reason. I have checked the html on both working and non-working pages and they appear identical. It seems the from address is getting lost. I have even upgraded to the latest contao in a test bed, but the same error keeps occuring.

    The error I'm getting is below. Any idea what I can look at next? FYI: The broken contact page is at http://www.theaterwerk-bodensee.de/contact.html

    Any ideas what I can look at next?

    Code:
    Fatal error: Uncaught exception Swift_RfcComplianceException with message Address in mailbox given [] does not comply with RFC 2822, 3.6.2. thrown in /mnt/web6/11/92/5224092/htdocs/theaterwerk/plugins/swiftmailer/classes/Swift/Mime/Headers/MailboxHeader.php on line 309
    
    #0 /mnt/web6/11/92/5224092/htdocs/theaterwerk/plugins/swiftmailer/classes/Swift/Mime/Headers/MailboxHeader.php(239): Swift_Mime_Headers_MailboxHeader->_assertValidAddress('')
    #1 /mnt/web6/11/92/5224092/htdocs/theaterwerk/plugins/swiftmailer/classes/Swift/Mime/Headers/MailboxHeader.php(97): Swift_Mime_Headers_MailboxHeader->normalizeMailboxes(Array)
    #2 /mnt/web6/11/92/5224092/htdocs/theaterwerk/plugins/swiftmailer/classes/Swift/Mime/Headers/MailboxHeader.php(61): Swift_Mime_Headers_MailboxHeader->setNameAddresses(Array)
    #3 /mnt/web6/11/92/5224092/htdocs/theaterwerk/plugins/swiftmailer/classes/Swift/Mime/SimpleMimeEntity.php(571): Swift_Mime_Headers_MailboxHeader->setFieldBodyModel(Array)
    #4 /mnt/web6/11/92/5224092/htdocs/theaterwerk/plugins/swiftmailer/classes/Swift/Mime/SimpleMessage.php(199): Swift_Mime_SimpleMimeEntity->_setHeaderFieldModel('From', Array)
    #5 /mnt/web6/11/92/5224092/htdocs/theaterwerk/system/libraries/Email.php(458): Swift_Mime_SimpleMessage->setFrom('')
    #6 /mnt/web6/11/92/5224092/htdocs/theaterwerk/system/modules/frontend/Form.php(389): Email->sendTo(Array)
    #7 /mnt/web6/11/92/5224092/htdocs/theaterwerk/system/modules/frontend/Form.php(208): Form->processFormData(Array)
    #8 /mnt/web6/11/92/5224092/htdocs/theaterwerk/system/modules/frontend/Hybrid.php(152): Form->compile()
    #9 /mnt/web6/11/92/5224092/htdocs/theaterwerk/system/modules/frontend/Form.php(74): Hybrid->generate()
    #10 /mnt/web6/11/92/5224092/htdocs/theaterwerk/system/libraries/Controller.php(415): Form->generate()
    #11 /mnt/web6/11/92/5224092/htdocs/theaterwerk/system/modules/frontend/ModuleArticle.php(173): Controller->getContentElement('81')
    #12 /mnt/web6/11/92/5224092/htdocs/theaterwerk/system/modules/frontend/Module.php(129): ModuleArticle->compile()
    #13 /mnt/web6/11/92/5224092/htdocs/theaterwerk/system/modules/frontend/ModuleArticle.php(71): Module->generate()
    #14 /mnt/web6/11/92/5224092/htdocs/theaterwerk/system/libraries/Controller.php(348): ModuleArticle->generate(false)
    #15 /mnt/web6/11/92/5224092/htdocs/theaterwerk/system/libraries/Controller.php(221): Controller->getArticle('39', false, false, 'main')
    #16 /mnt/web6/11/92/5224092/htdocs/theaterwerk/system/modules/frontend/PageRegular.php(71): Controller->getFrontendModule('0', 'main')
    #17 /mnt/web6/11/92/5224092/htdocs/theaterwerk/index.php(198): PageRegular->generate(Object(DB_Mysql_Result))
    #18 /mnt/web6/11/92/5224092/htdocs/theaterwerk/index.php(333): Index->run()
    #19 {main}

  2. #2
    User
    Join Date
    01-20-11.
    Location
    Germany
    Posts
    77

    Default Re: Simple email form stopped working

    Hello,

    this usually happens when the email address is empty. Please check in the settings and in the root element for that web page if the email address is set properly.

    Jan

    BTW: As German speaking person I recommend to post your questions to www.contao-community.de.
    Free support only here in the forum.
    Please report bugs for my extensions using http://www.contao-forge.org. Thanks!
    Requests for Contao support and development please send mail to jan@theofel.de

  3. #3
    New user
    Join Date
    10-31-11.
    Posts
    28

    Default Re: Simple email form stopped working

    Thanks. Actually, I had checked that and it was set in the form and correctly tagged. It was the system admin email that was blank.... which shouldn't have happened since you can't submit a blank. I guess my database hickuped.

    I posted here: viewtopic.php?f=4&t=3600

    Since the original post wasn't approved, I couldn't reply directly and didn't want people looking into this when it was solved.

    Thanks,

    Allen
    (Thanks for the info on the .de forums.... I actually browse both. I tend to end up here more often because German is my second language and my google-foo tends to be englishish).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •