The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Email Forms Problem

Discussion in 'E-mail Discussions' started by cleanmax, Nov 15, 2013.

  1. cleanmax

    cleanmax Registered

    Joined:
    Nov 15, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    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.
     
    #1 cleanmax, Nov 15, 2013
    Last edited by a moderator: Nov 15, 2013
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page