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.

How To Have PHP Scripts Being Sent From The Correct User...

Discussion in 'General Discussion' started by dkz, Oct 20, 2005.

  1. dkz

    dkz Well-Known Member

    Joined:
    Sep 10, 2004
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Hello,

    I have been having problems sending emails via php scripts and looking further into the promlem I see all php emails are being sent from USERNAME@servername.com instead of email_name@domain_name.com. Does that make sense? My PHP script includes the from, reply-to and return-path in the headers. I also tried ini_set(sendmail_from, "email@addr.com"); in the script and a couple of other fixes but nothing works. I'm using php 5.04, sendmail and phpsuexec is enabled.

    Thanks for any suggestions!
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
  3. dkz

    dkz Well-Known Member

    Joined:
    Sep 10, 2004
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    Thank you - Thank you - Thank you!


    That did the trick!

    Thank you!
     
Loading...

Share This Page