Email sent twice

Carotte 22 Feb, 2012
Hello everybody !

I've got a problem using Chronoforms v4 with Joomla 2.5. I've got a form inserted in an article thanks to the Chronoforms plugin.

I use the events Handle Arrays then Send email. I don't use DB storage. The problem is that the email is always sent twice: one mail with the values, one without the values.

Is it a known problem ? How to solve this ?

Thanks for reply.
GreyHead 22 Feb, 2012
Hi Carotte,

I don't recall this as being a problem. Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
emixion 10 Jul, 2012
I am having the same problem. Is there an solution?

Regards,
GreyHead 10 Jul, 2012
Hi emixion,

I never heard any more from Carotte so I assume that it was a problem with the form setup.

Bob
emixion 10 Jul, 2012
Well I am using chronoforms for a while now and never had this problem before. The only thing I did differently is installing "Chronoforms_V4_RC3.4.1_J1.6" instate of an early version.

I think that the form is using the "run" function from "/administrator/components/com_chronoforms/form_actions/email/email.php" twice. But I can't fix it. Do you have any ideas?


Regards,
GreyHead 10 Jul, 2012
Hi emixion,

Apart from this thread I've seen no other reports of this problem so I doubt it's a general bug.

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
chrono_time 15 Jul, 2012
Hi Bob,

I'm having the same problem here. It was working about an hour ago, but no longer.

The first email is the right one, containing all the data filled out in the form as follows:
asdfasdf
Anonymous
Name Anonymous Jim
Email [email]anon@jim.com[/email]
Subject asdfasdf
Message asdfasdfasdfasdfasdf

Second email immediately following:
Default Subject (it's in capitals)
admin
Name {firstname} {lastname}
Email {email}
Subject {subject}
Message {message}

Tried attaching the backup file and it said "The extension cf4bak is not allowed."

Thanks,
Jesse
GreyHead 15 Jul, 2012
Hi Jesse,

There's a clue here (as a zipped file)

Bob
chrono_time 15 Jul, 2012
Hi Bob,

Many apologies. I had missed that fine detail. Zipped file attached.

Thanks,
Jesse
GreyHead 18 Jul, 2012
Hi Jesse,

I spotted a few problems.

First, you have alphanumeric validation on the Email input which means that I can't enter an email address because the '@' is rejected.

Second, you have firstname lastname in the Dynamic From Name and Reply To Name boxes and these boxes only take a single input name. Please see this FAQ for a way to do this.

Third, you are using a Dynamic From Email address. This may well cause your emails to be marked as spam and dropped. I always suggest a Static From Email and Name and a Dynamic Reply To Email and Name.

I suspect that the second one here may be causing the second email to be sent; but when I test I only get the one copy.

Bob
iplanells 25 Jul, 2012
Hi,

I'm having the same problem, but the email is not only sent twice, but sometimes even 6 times. The first email is ok (with the field values), but the rest contain the fields this the {name}.

I've done a lot of tests, trying with different browsers, but nothing.
I just installed the "ChronoForms v4 action email_gh" and the last version Chronoforms_V4_RC3.4.1_J1.6

I also activated the debug event on the submit action, and the info seems to be ok, it says that the email was sucessfully sent, but in fact, it's six times in the inbox.

Please tell me if you need any more information to be able to track it.

Thanks,
Isabel
GreyHead 25 Jul, 2012
Hi Isabel,

By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.

Bob
GreyHead 25 Jul, 2012
Hi Isabel,

I saw a couple of things.

First the From and To Email addresses are the same and this can sometimes cause lost emails - but I don't think that it is causing the extra emails.

I submitted the form from a page without the template (by adding &tmpl=component to the URL) and that doesn't seem to send more than one copy.

Also the extra emails with no 'empty' inputs have a different IP address from the 66.249.72.xxx block - it looks as though this belongs to Google and I suspect that the Google+ script in your template is the source. I'm not certain, and I don't know how it happens but that my best guess at the moment.

You can try turning the script off and testing.

You can fairly easily block these empty emails with a Serverside Validation action if you need to.

Bob
iplanells 26 Jul, 2012
Hi Bob,

thanks for the testings, I will try to disable the g+ script and see what happens.

You are great! 😀

Isabel
This topic is locked and no more replies can be posted.