<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>MachForm Community Forums Topic: Fatal error: Uncaught exception 'Swift_RfcComplianceException'</title>
<link>https://www.machform.com/forums/</link>
<description>MachForm Community Forums Topic: Fatal error: Uncaught exception 'Swift_RfcComplianceException'</description>
<language>en</language>
<pubDate>Mon, 13 Apr 2026 04:50:38 +0000</pubDate>

<item>
<title>helge on "Fatal error: Uncaught exception 'Swift_RfcComplianceException'"</title>
<link>https://www.machform.com/forums/topic/fatal-error-uncaught-exception-swift_rfccomplianceexception-2#post-25151</link>
<pubDate>Tue, 12 Apr 2016 18:06:42 +0000</pubDate>
<dc:creator>helge</dc:creator>
<guid isPermaLink="false">25151@https://www.machform.com/forums/</guid>
<description>&#60;p&#62;Hi, we are getting this error on some of our forms in our Machform version 4.3:&#60;/p&#62;
&#60;p&#62;&#34;Fatal error: Uncaught exception 'Swift_RfcComplianceException' with message 'Address in mailbox given [{element_5}] does not comply with RFC 2822, 3.6.2.' in /var/www/app/skjemaker/htdocs/lib/swift-mailer/classes/Swift/Mime/Headers/MailboxHeader.php:352 Stack trace: 0 /var/www/app/skjemaker/htdocs/lib/swift-mailer/classes/Swift/Mime/Headers/MailboxHeader.php(264):&#60;br /&#62;
 Swift_Mime_Headers_MailboxHeader-&#38;gt;_assertValidAddress('{element_5}') 1 /var/www/app/skjemaker/htdocs/lib/swift-mailer/classes/Swift/Mime/Headers/MailboxHeader.php(108): Swift_Mime_Headers_MailboxHeader-&#38;gt;normalizeMailboxes(Array) 2 /var/www/app/skjemaker/htdocs/lib/swift-mailer/classes/Swift/Mime/Headers/MailboxHeader.php(65): Swift_Mime_Headers_MailboxHeader-&#38;gt;setNameAddresses(Array) 3 /var/www/app/skjemaker/htdocs/lib/swift-mailer/classes/Swift/Mime/SimpleHeaderFactory.php(60): Swift_Mime_Headers_MailboxHeader-&#38;gt;setFieldBodyModel(Array) 4 /var/www/app/skjemaker/htdocs/lib/swift-mailer/classes/Swift/Mime/SimpleHeaderSet.php(70): Swift_Mime_SimpleHeaderFactory in /var/www/app/skjemaker/htdocs/lib/swift-mailer/classes/Swift/Mime/Headers/MailboxHeader.php on line 352 &#34;&#60;/p&#62;
&#60;p&#62;We found out that if we have a form where the email field is removed, and added again, the error message appears.&#60;br /&#62;
Furthermore, we can find that the form is still connected the old email field (in our case the email field with name element_5, where the new email field is named element_6).&#60;br /&#62;
The solution for us was to go to notifications, unclick the notification check-box, and then Save Settings. And then repeat: go to notifications, and check the notification check-box, Save Settings. In this way the form got updated so the correct email field was used (in our case, element_6).&#60;br /&#62;
We had several forms where the email field was removed and added again, which again led to that hundreds of emails not being sent out.&#60;br /&#62;
Would it be possible to add a check to Machform that would test if ‘Send Sonfirmation Email to User’ is checked, and ‘User Email’ address is present in the form, *and* Email address field name (element_N) does exist, then return TRUE, else, return FALSE.&#60;br /&#62;
In this case, users who remove and add the email field will see an error message under ‘Notification Settings’ -&#38;gt; ‘Send Confirmation Email to User’, and indicate that they have to update the ‘User Email Address’ field to an existing email field in the form.&#60;br /&#62;
Or even better, auto update so the ‘Send Confirmation Email to User’ -&#38;gt; ‘User Email Address’ field is always connected to the latest email field added to the form?&#60;br /&#62;
Thank you,&#60;br /&#62;
Helge
&#60;/p&#62;</description>
</item>

</channel>
</rss>
