Page 1 of 1

CMSMailer/FormBuilder - getting two e-mails

Posted: Mon Dec 07, 2009 5:46 pm
by iandunn
I'm using the latest versions of CMSMS, CMSMailer and FormBuilder.

I've got a contact form setup using FormBuilder, and it uses CMSMailer to send the message. Everything is working fine, except that I get each e-mail twice. When I send a test message through CMSMailer I only get it once, but I get it twice with the actual contact form. I've tried both "Email Results to Set Address(es)" and "Call a User Defined Tag with Form Results", where I manually send the message w/ the code below.

Code: Select all

$mailer =& $gCms->modules['CMSMailer']['object'];
$mailer->reset();
$mailer->IsHTML(true);
$mailer->AddAddress($staffContact->fields['contact_email'], $staffContact->fields['company_name'] .' '. $staffContact->fields['address']);
$mailer->addReplyTo($params['cntnt01fbrp__3'][0], $params['cntnt01fbrp__2']);
$mailer->SetSubject('Website Contact');
$mailer->SetBody($message);
$mailer->Send();
I've tried using that same code and calling it outside of FormBuilder and I only get the e-mail once. I've also made sure that the code isn't being called twice. I'm only calling Send() once, but I get two messages. I only have one "Email Results..." option set at a time.

Re: CMSMailer/FormBuilder - getting two e-mails

Posted: Mon Dec 14, 2009 3:10 pm
by iandunn
bump

Re: CMSMailer/FormBuilder - getting two e-mails

Posted: Tue Dec 15, 2009 2:12 pm
by RJK
Hi Ian  -  I'm very much a beginner n this having only set it up myself in the last few days. When you look at your list of Form Fields from within the Admin area, below Req'd Information column make sure that your email address isn't appearing more than once / i.e. against more than one field. I had the same problem and that was where the issue was for me.

Until seeing your post I've never looked at CMS Mailer and haven't gotten round to FormBrowser as yet. If you have played much with CMS Mailer I imagine it's possible that you've changed a setting there to make the email send twice.