SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Email problem

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Email problem

    Hi all

    I am trying to sort this code so when the person clicks send on the form the email goes off to the persons email address I have hard coded in but also to the person that is filling in the form, they put their email address in so I should be able to pick that up and get the email sent to both parties but it won't. I have tried using the code below but it won't work.

    Any advice would be great thanks


    Rob

    PHP Code:
    {//send email
                                
    $bride "email@googlemail.com";
                                
    $to $email $bride;
                                
    $email $_REQUEST['email'] ;
                                
    $name $_REQUEST['name'] ;
                                
    $message $_REQUEST['product'] . "\r\n" $_REQUEST['message'] ;
                                
    mail($to"Name: $name",
                                
    $message"From: $email);
                                
    archive();
                                
    details();



                                } 

  2. #2
    play of mind Ernie1's Avatar
    Join Date
    Sep 2005
    Posts
    1,252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    to
    Receiver, or receivers of the mail.

    The formatting of this string must comply with RFC 2822. Some examples are:
    Code:
    user@example.com
    user@example.com, anotheruser@example.com
    User <user@example.com>
    User <user@example.com>, Another User <anotheruser@example.com>
    mail
    my mobile portal
    ghiris.ro

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2007
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Excellent thanks I will try that out.

    Cheers :-)


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
  •