#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    20
    Rep Power
    0
    I am trying to mail to a list of people, using fgets() and a while loop. When I do the "mail($to,$subject,$msg)" in a while loop, it mails but the subject line is left blank and there is a line in the message that says "Subject: ...".
    The subject shows up where it is supposed to when I don't use a while loop.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    63
    Rep Power
    15
    Here's how I do it....
    $Mreply = ujludwig@yahoo.com;
    $Mfrom = "Ulysses Ludwig";

    $L_from_string = "From: " . $Mfrom . "<" . $Mreply . ">rnReply_to: " . $Mreply;
    mail($L_emailaddress, $Msubject, $L_customMbody, $L_from_string);

Similar Threads

  1. mass email program purchase
    By kubicon in forum Scripts
    Replies: 1
    Last Post: December 29th, 2003, 08:52 AM
  2. We Got Him!!
    By WorldBuilder in forum Dev Shed Lounge
    Replies: 146
    Last Post: December 23rd, 2003, 01:13 PM
  3. mass email program query
    By leslie.owensby in forum PHP Development
    Replies: 2
    Last Post: October 21st, 2003, 08:28 AM
  4. the best way of mass mailing on a NT box
    By plastique in forum Database Management
    Replies: 3
    Last Post: March 11th, 2002, 04:27 PM
  5. mass email sender
    By felle35 in forum PHP Development
    Replies: 1
    Last Post: February 19th, 2002, 04:35 PM

IMN logo majestic logo threadwatch logo seochat tools logo