Forums

Sending two mails

inetis 28 Mar, 2013
Hello,

I have a form that will allow customers to order bottles of wine. After submitting the form, an email is sent to the customer and another one is sent to the vendor (so, there is 2 events).

The problem is that the first e-mail is sent to the customer with his email and the second is sent to the vendor AND the customer, which is wrong. It should be sent only to the vendor.

If I change the ordrer of events, it's always the second that holds 2 emails addresses...

I checked my events, and they are ok.

Here is the debug output :
Data Array:

Array
(
    [chronoform] => commande
    [event] => submit
    [input_nombre] => 2
    [input_titre] => M
    [input_nom] => a
    [input_prenom] => p
    [input_adresse] => a
    [input_np] => 1321
    [input_localite] => a
    [input_tel] => 112312313131
    [input_email] => hidden@hidden.ch
    [input_livraison] => La livraison de votre commande sera effectuée par La Poste.
    [input_adresselivraison] => Test
    [input_nplivraison] => 1321
    [input_localitelivraison] => test
    [input_submit_12] => Commander
    [4eb65b75d53d58b7bd289f6b0187fcaf] => 1
    [total] => 90
    [chronoform_data] => Array
        (
            [cf_uid] => 92c7d698a799aaab4e1daeaa8527c389
            [cf_created] => 2013-03-28 13:34:15
            [cf_created_by] => 0
            [cf_ipaddress] => 217.162.152.128
            [cf_user_id] => 0
            [chronoform] => commande
            [event] => submit
            [input_nombre] => 2
            [input_titre] => M
            [input_nom] => a
            [input_prenom] => p
            [input_adresse] => a
            [input_np] => 1321
            [input_localite] => a
            [input_tel] => 112312313131
            [input_email] => hidden@hidden.ch
            [input_livraison] => La livraison de votre commande sera effectuée par La Poste.
            [input_adresselivraison] => Test
            [input_nplivraison] => 1321
            [input_localitelivraison] => test
            [input_submit_12] => Commander
            [4eb65b75d53d58b7bd289f6b0187fcaf] => 1
            [total] => 90
            [cf_id] => 50
        )

    [chronoform_data_cf_id] => 50
)

Validation Errors:

Array
(
)


I use CF 4.0 RC3.5.2.4 with Joomla 3.0.3.
I did a custom form, but I don't think that this may cause trouble.
GreyHead 28 Mar, 2013
Hi inetis,

There is no output from the Email actions in your Debugger report, can you post that part please.

We've seen this once before but the form behaved correctly when I tested it.

Bob
inetis 02 Apr, 2013
Hello,

Here it is. As you can see, everything seems normal :
email
14
Result An email has been SENT successfully from (Magnificients 2012 - Commande)info@xxx.ch to vendor@vendor.ch
Body
Commande Magnificients
Nom : 	M. Test Alan
Adresse : 	Rue Test
1222 Vufflens-la-Ville
Téléphone : 	021 555 55 55
E-mail : 	customer@customer.ch
Adresse de livraison : 	
Commande : 	4 Bouteilles CHF 140
Livraison: 	L'enlèvement de votre commande sera effectué sur rendez-vous au restaurant Le Cerf à Cossonnay.
Attachments array ( )
1
Result An email has been SENT successfully from (Magnificients)info@xxx.ch to customer@customer.ch
Body

M. Test,

Nous avons le plaisir de vous informer que votre commande de 4 bouteille(s) nous est bien parvenue et nous vous en remercions.

La commande vous sera personnellement confirmée une fois le paiement de CHF 140.- effectué sur le CCP no 12-XXXXXXX-2.

L'enlèvement de votre commande sera effectué sur rendez-vous au restaurant Le Cerf à Cossonnay.

Pour toute information complémentaire, n'hésitez pas à nous contacter à cette adresse :
http://www.magnificients.ch/contact.html

Nous vous souhaitons d'agréables moments de dégustation et à très bientôt sur http://www.magnificients.ch

Magnificients

Nicolas Wüst
Attachments array ( )


I tried with both PHP mail and SMTP authentication.
07piotr.bukowski 07 Apr, 2013
Hi GreyHead,

I'm having exactly same problem...

found other topic but no fix yet http://www.chronoengine.com/forums.html?cont=posts&f=2&t=88831

joomla 3.0.3
chronoforms 4.0 RC3.5.2.4

I have contact form and 2 email events:
1st - to admin : simplified version template containing contact detail - static 'to email'
2nd - to sender : more detailed email template, confirmation email to sender - dynamic 'to email'

For some reason static 'to email' is being copied to second email event... ?! help please
Max_admin 07 Apr, 2013
Hi,

Bug found in J3 only, you may contact me through the "Contact us" page to get a patch!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.