ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > RocketCake
forum topic indicator Contact form
person icon
emilban
Registered User
Quote
2025-01-22 09:35:05

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?

person icon
erik
Registered User
Quote
2025-01-22 10:43:46

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.

person icon
emilban
Registered User
Quote
2025-01-22 15:04:54

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

person icon
niko
Moderator
Quote
2025-01-22 19:08:37

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" .
'Reply-To: somemail@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail("youremail@example.com", "Contact form request", $text, $headers);


Then it should work.

person icon
emilban
Registered User
Quote
2025-01-23 12:15:26

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


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |