Double mail

jpurlings 05 Jan, 2017
Hi Bob,

I have a mail address in $form->data['CoachMail']. I want to send an email to a fixed address (my address) and to the mail address in $form->data['CoachMail']. I have entered my mail address in the basic tab of an email event in the To-field. How can I add the mail address in $form->data['CoachMail']? I have tried to add it to the Dynamic to, either with $form->data['CoachMail'] or just with CoachMail, but it doesn't work.

Greetings.
GreyHead 05 Jan, 2017
Hi jpurlings,

Just CoachMail should work in the Dynamic To box. Try that with your own email in the CC Box and see if that works - it may be that it won't work if you use both the Static and Dynamic To boxes.

Bob
jpurlings 06 Jan, 2017
Bob,

Thanks for your answer. I tried it, but it doesn't work. I put my mail in the cc in the advanced tab and CoachMail in the dynamic to. That didn't work. Next I made a form->data variable containing my mail and put that variable in the dynamic cc. That also didn't work.

Could you have a look at it? Your credentials are still the same, the form in which I am doing this is called 'Roadmap'.

Thank you!
GreyHead 06 Jan, 2017
Hi jpurlings,

It looks to me as if the emails aren't being sent. I tried the 'email a friend' link from one of the articles and that has not been delivered. Please check the site email settings.

Bob
jpurlings 08 Jan, 2017
Bob,

I don't think that's the problem. The other forms I have all send the mails without a problem. If I use the Roadmap form without trying for double mail sending, it works.

Greetings.
GreyHead 08 Jan, 2017
Hi jpurlings,

Hmm . . . but as I am not receiving emails when I test that makes it hard to diagnose :-(

Bob
jpurlings 09 Jan, 2017
Bob,

I checked it. Mailing from backend worked, but indeed, from frontend it didn't work. Strange thing is that I had to correct something within the controller.php file in Joomla to get it working, like explained in this thread: https://forum.joomla.org/viewtopic.php?t=376453.

Now it works. Hopefully this helps to find a solution for my problem.

Thanks!
GreyHead 09 Jan, 2017
Hi jpurlings,

No change as far as I can see. The Email a Friend link still shows an error "Email could not be sent."; sending from ChronoForms shows 'success' in the debugger - but no email is received.

Bob
jpurlings 10 Jan, 2017
Bob,

That's very strange. Email a friend works at my site without a problem. Forms send mail messages without a problem. Only when I include a form->data variable in the dynamic to field it doesn't work.

Greetings.
GreyHead 10 Jan, 2017
Hi jspurlings,

Here's what I see.

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