SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Turnersvill, NJ
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is there a way to get around the mail () PHP function so that I can put a senders email address. Right now, it will always come up with www@server6000.net (which is my hosting company)

    Basically, like a "refer a friend to this site" type thing. When the person receives the email, it would have the REFERERS email on it...

    Thanks,
    Keith

  2. #2
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    69
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi,

    Try this:
    Code:
      $str_to =  "reciepient@something.com";
      $str_subject =  "Subject";
      $str_message =  "Your message here";
      $str_header =  "From: referer@email.com";
      
      mail($str_to,$str_subject,$str_message,$str_header);
    hope this helps

    Sang N.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Location
    Turnersvill, NJ
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That did it!

    Thanks a bunch...

    -Keith


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •