Dynamic email to Joomla user working

giupi 11 Aug, 2015
Hello,

I needed to create a form so my joomla users can choose to receive via chronoforms/email a discount coupon they can use in some shops by showing the shopkeeper the email they will receive.

In my form I was able to show users' name and email, so they don't have to type those info again.

I was also able to create a dropdown so the user can choose the shop where he want to use the coupon; by doing this the specific shopkeeper will (should) receive dinamically as well the same user's email.

The email action is configured so the email is sent to a static email (my email, so I can have an overview control) and to other two dynamic emails: the user one and the shopkeeper one.

The email is actually sent, since I receive it, I can see it's sent also to other two email addresses, but they don't receive at all that email.

Plese see the screenshot of the email header attached; you can see the header is made by the sender's email, a static one and two other: the users email and the shopkeeper email.

How is that the email is correctly sent to some existing email but the dynamic recipients does not receive anyting even if they appear on the email header?

I may post, if needed, the form backup, so you may see all the codes and other stuff.

Thank you in advance for your help
GreyHead 11 Aug, 2015
Hi giupi,

Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Note: if you are using the Easy Wizard you can turn on Debug on the Others tab in CFv4 or the Setup tab in CFv5.

Bob
giupi 11 Aug, 2015
Hello thanks for the quickest reply :-)

Here the debug text

Array
(
    [chronoform] => buono_sconto
    [event] => submit
    [option] => com_comprofiler
    [view] => userprofile
    [Itemid] => 385
    [task] => userprofile
    [nome] => Giuseppe ******
    [user_name] => 760*******85
    [user_email] => giuseppe.********@gmail.com
    [scontopresso] => ******* - Buono sconto del 10% oltre al normale accredito sulla fidelity fatta eccezione per i gioielli Pandora e oreficeria (oggetti in oro considerati a peso senza diamanti)
    [textarea15] => Buono sconto del 10% oltre al normale accredito sulla fidelity
    [textarea16] => Buono sconto del 10% oltre al normale accredito sulla fidelity non cumulabile con altre promozioni in corso
    [textarea17] => Buono sconto del 10% oltre al normale accredito sulla fidelity
    [textarea18] =>  Buono sconto del 10% oltre al normale accredito sulla fidelity
    [textarea19] => Buono sconto del 10% oltre al normale accredito sulla fidelity
    [textarea20] => Buono sconto del 10% oltre al normale accredito sulla fidelity escluso articoli Woodillon
    [textarea21] => Buono sconto del 10% oltre al normale accredito sulla fidelity escluso My-T-shirt e Happiness + Accessori
    [textarea22] => Buono sconto del 10% oltre al normale accredito sulla fidelity
    [textarea23] => Buono sconto del 10% oltre al normale accredito sulla fidelity su cancelleria e libri di varia (no libri scolastici)
    [textarea24] => Buono sconto del 10% oltre al normale accredito sulla fidelity solo su occhiali da sole e da vista
    [textarea25] => Buono sconto del 10% oltre al normale accredito sulla fidelity
    [textarea26] => Buono sconto del 10% oltre al normale accredito sulla fidelity fatta eccezione per i gioielli Pandora e oreficeria (oggetti in oro considerati a peso senza diamanti)
    [textarea27] => Buono sconto del 10% oltre al normale accredito sulla fidelity
    [button5] => Ottieni il buono sconto
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
)
GreyHead 11 Aug, 2015
Hi guipi,

Please post the Emails part of the debugger output as well.

Bob
giupi 11 Aug, 2015
Uhm... That was all the text I got from the debug... I dragged the debug action at the very top of the on submit... Should I drag it somewhere else? Thanks...

PS i might give you admin access if needed
GreyHead 11 Aug, 2015
Hi giupi,

Put it at the end please. You can put them anywhere BUT they only show the output from the actions before the Debugger, so to see the Email output it needs to be after the Email action.

Bob
giupi 12 Aug, 2015
Ehm... uhm... I'm so stupid... yesterday for some strange reason the form stopped working as usual. Today it came back working... maybe some problem with my provider (???)

Yesterday I got panic (extreme panic!) because I struggled so much to get my complicated (at least for me) form working: to build it I had to recover user details, I had to adapt some code I found on the forum to send to a dynamic email coming from a dropdown field, which at the same time drives an event to show a different text for each dropdwon choice... So much complicated for me; I was so proud when I made it by myself, so when I saw the email lost in space I got scared that my dearest form was dead and I thought I will have never been able to rebuild it...

Today the form works again; I dont' know what happend. I hope my form will be always in health ;-)

Sorry for bothering you... I will buy you a beer to thank you for your kindess and for your helpfulness
GreyHead 12 Aug, 2015
Hi giupi,

Thank you - good to hear that it is working OK now.

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