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 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2005
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    sending multiple mails

    i want to know how to send emails to multiple email addresses using PHP code

    http://www.hytechpro.com

  • #2
    New Coder
    Join Date
    Jul 2005
    Location
    Perth, Australia. Age: 13
    Posts
    81
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Elaborate a bit more, like what is it for? Is it using a form or what?
    I lost my signature, have you seen it?
    I have the power to erase you...

  • #3
    New Coder
    Join Date
    Sep 2005
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Simply store all the adresses in an array, then using the foreach command loop through the array, using the mail function on every instance.

    E.g. :

    PHP Code:
    $emails = array( 'email1''email2''email3' );
    foreach( 
    $emails as $value )
    {
       
    mail$value'Mass Emails!''This is a mass emailing process!');



  •  

    Posting Permissions

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