Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    151

    Default php e-mail question

    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.
    Thanks,
    Mark Waugh

  2. #2
    Member
    Join Date
    Sep 2003
    Posts
    389

    Default RE: php e-mail question

    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,

Similar Threads & Tags
Similar threads

  1. php mail from question.
    By TheReliableHost in forum E-mail Discussions
    Replies: 1
    Last Post: 03-04-2010, 12:28 PM
  2. php mail from question.
    By TheReliableHost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-04-2010, 12:28 PM
  3. Question about PHP security, setting up multiple php.ini files?
    By sirbrent in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-01-2008, 10:58 AM
  4. PHP/Mail Question
    By Sklndr in forum E-mail Discussions
    Replies: 1
    Last Post: 11-07-2007, 08:33 PM
  5. mail server setup & php config question
    By hamoe in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-23-2004, 04:05 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube