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.

php e-mail question

Discussion in 'E-mail Discussions' started by Markwaugh, Oct 17, 2003.

  1. Markwaugh

    Markwaugh Well-Known Member

    Joined:
    Aug 12, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Sydney, Australia
    Hello Guys,

    I've got this php code that sends an e-mail, and in part of the line I have the from address that looks like this:

    From: "mark" <"noreply@mark.co.au">

    But when I get an e-mail, the address looks like this:

    mark <""noreply\"@mark.co.au@myservername>

    any ideas would be higly appreciated.
     
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    16
    Dear Markwaugh,


    Try giving the from address as

    $headers.=\"From: \".$FromName.\" <\".$From.\">\\n\";

    That should give the proper address while receiving.

    For more details refer this page:

    http://in.php.net/manual/en/ref.mail.php

    Regards,
     
Loading...

Share This Page