cleanmax

Registered
Nov 15, 2013
1
0
1
cPanel Access Level
Website Owner
Hello, I am new to the forums, so if this is in the wrong section, sorry for that.

Well, my problem is to do with emails. I have 2 contact forms on my website, when the form is filled in, and sent, it comes to the email from username @w​n01.domain.pl, thing is, I would like it to come from contact @ otherdomain.co.uk. I have the domain attached, I have created the new email account for contact @ otherdomain.co.uk and I have set it to default, apparently. Is there a way to apply this and so the default email is contact @otherdomain.co.uk? When I as a client, enter my details to the form, press sent, I will receive an email from contact @ otherdomain.co.uk with the form that the client filled in, and the client will receive an email from contact @ otherdomain.co.uk saying that the message has been sent successfuly etc.

If this is needed, my address of the website: otherdomain.co.uk

I hope someone understands what my problem is, tried searching for it online but can't find anything.

Thank You,
Maciej.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

The default behavior of Exim is to use the cPanel username and hostname of the server to construct the envelope-sender address. Most applications that call the Exim/Sendmail binary will pass the -f switch along with the proper email address to keep that from happening.

If you can configure the mailer to use SMTP and authenticate with SMTP AUTH, this will set the correct "Return-Path" in the headers. The other option is to make sure that the application is using the 5th argument to the PHP mail() function to send the '-f' switch to sendmail so that it sets the correct "Return-Path".

Thank you.