Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

php e-mail question

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

  1. Markwaugh

    Markwaugh Well-Known Member

    Joined:
    Aug 12, 2003
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    166
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    166
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice