Forums

I'm stuck with the auto reply

H.Numan 14 Sep, 2016
I'm back to Chrono, and here to stay. Tried several other forms, but nothing comes close. I set up a form again, but I'm getting nowhere with the automatic reply. It works, but only if I send a booking to myself... so, I'm doing something very wrong, but what?
Here's the set up in on Submit:
- email1 (booking form to myself)
- email2 (thank you to client)
- display message (confirming the order online)

email1 works and so does the display message. It's email2 that give me a headache.

Here are its settings, in the Basic tab:
- Subject: Confirmation booking
- From name: H. Numan
- From email: email@email.com

in the Advanced tab:
- Dynamic to: email (that's email field ID, I double checked it.)
- Dynamic subject: blank
- Reply to name: blank
- Reply to email: blank
- Dynamic reply to name: blank
- Dynamic reply to email

That's the best I can do for now. What happens is that when I send a mail to email@email.com, I get the booking and the confirmation. But when I send to any other email address, I get the booking (that part works) but not the confirmation.

What am I doing wrong here?

H. Numan
H.Numan 14 Sep, 2016
When I look at the debugger, this is probably where I mix things up:

Array
(
[1] => Array
(
[Email] => Array
(
[0] => An email with the details below was sent successfully:
[1] => To:booking@chaamcyclingtours.com (should be from)
[2] => Subject:Boeking NL
[3] => From name:
[4] => From email:josflachs@yahoo.com (should be to)
[5] => CC:
[6] => BCC:
[7] => Reply name:
[8] => Reply email:
[9] => Attachments:
[10] => Array
(
)

It's been a while, after a full day of looking at my screen I am empty. What do I need to change?
GreyHead 14 Sep, 2016
Hi H. Numan,

For the email to you as admin

To: your email address
From name: Site name
From email: an email matching the site domain e.g. info@domain.com
Dynamic Reply To name: name of the user name input e.g. name
Dynamic Reply To name: name of the user email input e.g. email

For the email to the user

Dynamic to Email: name of the user email input e.g. email
From name: Site name
From email: an email matching the site domain e.g. info@domain.com

Bob
H.Numan 21 Sep, 2016
Halfway there. I got the form working as it should. Now... for some additional fun...
I set up a temporary domain at http://198.57.247.205/~digi/chaamcyclingtours.com/index.php

Restored the akeeba backup (the one that works) and nothing. No mail coming in at all. Since it's a temp address, what should I fill in for email addresses? I used my own address jos @ dgdesk -dot- com, but nothing got there.
H.Numan 21 Sep, 2016
I configured this site for sendmail, php mail didn't work. Sendmail does.
H.Numan 22 Sep, 2016
I'm back to the original server. The client had troubles seeing his own site on his pc, but that seems okay now. (Not much I do about it.) So I try to get the form working as it should. The form itself works. Absolutely certain. Tested countless times.

It's the automatic reply I'm stuck with. Whatever I try, it will send it to me, not the person who sends the form. I enclosed the data array. The error I make must be in this part:

[Email] => Array
                (
                    [0] => An email with the details below was sent successfully:
                    [1] => To:josflachs@gmail.com
                    [2] => Subject:Bevestiging boeking
                    [3] => From name:Dominicus van Drunen
                    [4] => From email:booking@chaamcyclingtours.com
                    [5] => CC:
                    [6] => BCC:jos@dgdesk.com
                    [7] => Reply name:janneman
                    [8] => Reply email:jos@dgdesk.com
                    [9] => Attachments:
                    [10] => Array
                        (
                        ) 

The email with the details below does not go to my gmail account, but to the reply email at the bottom.

That's the part I keep mixing things.
GreyHead 22 Sep, 2016
Hi H.Numan,

As far as I can see Joomla! is reporting both emails sent correctly. I would expect Gmail to drop the first one as the From Email address doesn't match the domain. From email:xxx[at]gmail.com

I don't see any reason why the other one would not be delivered - have you checked your Gmail spam folder?

Bob
H.Numan 22 Sep, 2016
Of course. That's the first thing I check. 😀
It ain't there.
GreyHead 22 Sep, 2016
Hi N.Human,

I don't have any other immediate suggestions. By all means PM me the site URL, the form name, and a SuperAdmin login and I'll take a quick look.

Bob
GreyHead 23 Sep, 2016
Hi N.Human,

For the first email to the admin - I strongly recommend that you do *not* use the Dynamic From Email element in your Email Setups. Using this often results in your emails being marked as spam and dropped into a spam filter. Instead use the static From Email with an address that matches the site domain name and use Dynamic ReplyTo Email for the user email. The result is the same but with a much better chance of good delivery.

For the second email to the user - please remove the Reply to name - it should only be used with the Reply to Email, and it doesn't take a dynamic value (the Dynamic version lower down does). For the email to User usually it's enough to use the standard From Name and From Email

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