CMSMailer/FormBuilder - getting two e-mails

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
iandunn
New Member
New Member
Posts: 6
Joined: Mon Jul 13, 2009 4:49 pm

CMSMailer/FormBuilder - getting two e-mails

Post 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.
iandunn
New Member
New Member
Posts: 6
Joined: Mon Jul 13, 2009 4:49 pm

Re: CMSMailer/FormBuilder - getting two e-mails

Post by iandunn »

bump
User avatar
RJK
Forum Members
Forum Members
Posts: 59
Joined: Mon Nov 16, 2009 8:58 pm

Re: CMSMailer/FormBuilder - getting two e-mails

Post 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.
Post Reply

Return to “Modules/Add-Ons”