Autoresponder error

Issues related to forms.
Post Reply
frisotrip
 
 
Posts: 9
Joined: Wed Sep 13, 2017 9:51 am

Autoresponder error

Post by frisotrip » Wed Sep 13, 2017 9:57 am

Hello

I have created a simple contact form. Without auto responder the form works correct and i recieve te information in the form by email.
But when i use the autoresponder feature, it comes op after pressing submit with "Client does not have permissions to send as this sender ".

If i add an email adres in the email adres box of the form that is in my domain, it works correct. But i want to sent a confermation to the person who filled in the form. And that of course are domains out of my own domain.
For the sent method i use SMTP and the settings of my Office 365 account.

Can sombody help me with this issue?

Thanx
Friso

User avatar
Pablo
 
Posts: 19387
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Autoresponder error

Post by Pablo » Wed Sep 13, 2017 10:12 am

Please note that this is not an error in the script, but a limitation of your web host.

If the form's email input field is named 'email' then this will be used as the sender's email address.
If you name it anything else then the 'to address from the form's properties will be used.

Related tutorial:
viewtopic.php?f=10&t=32967

frisotrip
 
 
Posts: 9
Joined: Wed Sep 13, 2017 9:51 am

Re: Autoresponder error

Post by frisotrip » Wed Sep 13, 2017 1:35 pm

Pablo

I have seen this answer a lot of times in the forum, but can you please tell me how to configure the form so it will sent an confermation mail to the submitter of the form.
Because when i name it something else, no error occurred, but also no confermation mail is sent.

And that is the problem. So please can you give me/us an example of how to do this

Thanx
Friso

User avatar
Pablo
 
Posts: 19387
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Autoresponder error

Post by Pablo » Wed Sep 13, 2017 2:02 pm

Because your host has a restriction on sending emails, you will need to use the following settings:

- the email input field cannot be named 'email', name it 'emailaddress' or anything else.
- in the 'Email address' property and 'From' property in auto responder, specify an email address that is supported by your host.

frisotrip
 
 
Posts: 9
Joined: Wed Sep 13, 2017 9:51 am

Re: Autoresponder error

Post by frisotrip » Wed Sep 13, 2017 2:51 pm

Pablo

I don't understand why that should work.
How does the autorespond know where to sent the confermation to.
It realy makes no sence.

And please can you tell me where to find 'Email address' property and 'From' property in auto responder
The from i can see, but i don't see the 'Email address' property in the auto responder section

Friso

User avatar
Pablo
 
Posts: 19387
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Autoresponder error

Post by Pablo » Wed Sep 13, 2017 3:08 pm

How does the autorespond know where to sent the confermation to.
It uses the value of the email input field as specified in 'Input field name'
And please can you tell me where to find 'Email address' property
Image
and 'From' property in auto responder
Image

frisotrip
 
 
Posts: 9
Joined: Wed Sep 13, 2017 9:51 am

Re: Autoresponder error

Post by frisotrip » Wed Sep 13, 2017 3:47 pm

It's just not working.
When i do all the things as described, the confermation mail is sent to the mail adres that is in te fields as shown in your screenshots

Friso

User avatar
Pablo
 
Posts: 19387
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Autoresponder error

Post by Pablo » Wed Sep 13, 2017 4:05 pm

Did you change the name of the input field?
What is the generated PHP code?

Note that you do not have to worry that there is a mistake in the script, otherwise it would have already been fixed after all these years.
This can only be a configuration issue.

Tip: always include a copy of your project so I can see what you have done. Thiswill save us both a lot of time.

frisotrip
 
 
Posts: 9
Joined: Wed Sep 13, 2017 9:51 am

Re: Autoresponder error

Post by frisotrip » Thu Sep 14, 2017 6:17 am

Image
Image
Image
Image
Image

User avatar
Pablo
 
Posts: 19387
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Autoresponder error

Post by Pablo » Thu Sep 14, 2017 6:54 am

The 'Input veld naam' should be 'EmailAdres'

frisotrip
 
 
Posts: 9
Joined: Wed Sep 13, 2017 9:51 am

Re: Autoresponder error

Post by frisotrip » Thu Sep 14, 2017 7:00 am

If i do that, i got this

PHPMailer error: SMTP Error: data not accepted.SMTP server error: DATA END command failed Detail: 5.7.60 SMTP; Client does not have permissions to send as this sender [AM6PR0602MB3400.eurprd06.prod.outlook.com] SMTP code: 550

It looks like it will sent as the mailadres provided in the email input field.

Friso

User avatar
Pablo
 
Posts: 19387
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Autoresponder error

Post by Pablo » Thu Sep 14, 2017 10:04 am

Please try this:

Step 1
In the Auto Responder settings change 'Input veld naam' from 'EmailAdres' to 'ignore'.

Step 2
Right click the form and select Object HTML. In custom form processing enter this line:

Code: Select all

$mailfrom = $_POST['EmailAdres'];

frisotrip
 
 
Posts: 9
Joined: Wed Sep 13, 2017 9:51 am

Re: Autoresponder error

Post by frisotrip » Thu Sep 14, 2017 10:26 am

Now it's working ok. Dit i do something wrong, because this method i can't find anywhere in the forum or manual

Friso

User avatar
Pablo
 
Posts: 19387
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Autoresponder error

Post by Pablo » Thu Sep 14, 2017 10:47 am

You did nothing wrong. This is a workaround for limitations of your web host.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest