Thread: mail with php

    #1
  1. No Profile Picture
    PHP Programmer
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    31
    Rep Power
    15
    Hi,

    I have a little problem with php's mail function. When I send a mail using
    mail("mail@somedomain.com", "Subject", "Message body");
    the sender will be called "nobody" in the receiver's email application. I want to change this, because "nobody" does not look very good... How do i do that?!
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    You can add additional headers as the fourth argument to the mail()function:

    mail("mail@somedomain.com", "Subject", "Message body,"From: you@yourdomain.comnReply-To you@yourdomain.comn");

Similar Threads

  1. php sending mail?
    By stojan in forum PHP Development
    Replies: 2
    Last Post: February 12th, 2004, 11:25 PM
  2. Help with script
    By akastarlight in forum Perl Programming
    Replies: 1
    Last Post: February 6th, 2004, 07:55 AM
  3. php mail sends slashes in the body
    By emzyme in forum PHP Development
    Replies: 2
    Last Post: January 28th, 2004, 11:58 AM
  4. php for checking mail errors
    By jnccneto in forum PHP Development
    Replies: 0
    Last Post: January 25th, 2004, 09:15 PM
  5. PHP Mail Function
    By alienzero in forum PHP Development
    Replies: 0
    Last Post: January 15th, 2004, 09:32 PM

IMN logo majestic logo threadwatch logo seochat tools logo