Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, is there a way to enter a sender address in the contact form, for example admin@example.de. Currently, the email address of my server appears as Contact from request. k209861@k209861.web33.alfahosting-server.de and in this case the email usually ends up in spam or is not taken seriously. What do you think? |
||||
|
Usually, the email is only sent to you, from your own server - and usually to your own server again. Or are you sending it to another email adress not on your server? Best is to change that. Your own server should not classifiy it as spam unless its configuration is broken. And it doesn't matter then what email adress is printed on there. |
||||
|
Well, I have no problems' when the request contact form is addressed to my own email. But I have a lot of customers with their own email address. It looks better when the form address is something like this: From - admin@domain.name |
||||
|
Are you using the tutorial "How to create a contact form" (https://www.ambiera.com/rocketca...)? Then you can just set the 4th parameter of the mail function to specify the email address. So instead of this line: mail("youremail@example.com", "Contact form request", $text); Use something like this: $headers = 'From: somemail@example.com' . "\r\n" . Then it should work. |
||||
|
Thanks a lot, Niko! It works fine... I just changed 'From: somemail@example.com' to 'From: noreply@example.com' and cancelled 'Reply-To: somemail@example.com' . "\r\n" . So, that's exactly what I want! Regards |
|