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 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2011
    Location
    Detroit
    Posts
    81
    Thanks
    19
    Thanked 0 Times in 0 Posts

    Question multiple emails in contact form handler script

    How do i add multiple email addresses in a php email contact form handler?

    heres the line:
    Code:
    $myemail = ' email here ';//<-----Put Your email address here.
    if(empty($_POST['name'])  ||
    do i separate with a comma? like
    Code:
    name@domain.com, name2@domain.com
    do i put them in separate quotations such as:
    Code:
     'name@domain.com' 'name2@domain.com'
    or do i have to add new instances of
    Code:
    $myemail = 'email';

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Addresses don't go in quotes, just separate them with a comma and presumably put into $myemail if that's where the to: is going to.


  •  

    Tags for this Thread

    Posting Permissions

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