Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Oct 2004
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Sending mail - Multiple recipients

    Hi everyone.
    im creating a page for the site which i want toread a txt file and grab the addresses and send the email to all the addresses

    here is the mail script

    PHP Code:
    $ToSubject "My subject";
    $headers  "MIME-Version: 1.0\r\n"
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"
    $headers .= "From: ME <me@mydomain.com>"
    $EmailBody " My content Here !";
    mail($emailaddress,$ToSubject,$EmailBody,$headers); 
    how would i get the page to read the txt file and grab teh addresses and insert therm into that script

    any help is appreciated

    ta
    Last edited by RedLineIT; 10-23-2004 at 05:24 AM.

  • #2
    New Coder
    Join Date
    Jun 2002
    Location
    Colorado
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Check out this website, it looks like this would be exactly what you want!

    http://www.php-scripts.com/php_diary/122899.php3
    -Sk8er9547

  • #3
    New Coder
    Join Date
    Oct 2004
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi,

    had a look and theres nothing there that shows me how to read a txt file and assing $emailaddress to the addresses

  • #4
    New Coder
    Join Date
    Jun 2002
    Location
    Colorado
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Check out the rest of the tutorial, it tells you in blue code how to find the txt file and sort the emails...

    http://www.php-scripts.com/php_diary/010100.php3
    -Sk8er9547

  • #5
    New Coder
    Join Date
    Oct 2004
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    still seems a bit confusing


  •  

    Posting Permissions

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