SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Apr 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation sending a thank you email through phpmailer

    I have a form with :

    $name = $_REQUEST['name'] ;
    $email = $_REQUEST['email'] ;
    $textarea = $_REQUEST['textarea'] ;

    $mail = new PHPMailer();
    $mail->IsSMTP();

    $mail->AddAddress("myemail@domain.com", "Full Name");

    My email gets sent to myemail@domain.com

    Is there a way to send a thank you email to $email ?

  2. #2
    SitePoint Wizard bronze trophy chris.upjohn's Avatar
    Join Date
    Apr 2010
    Location
    Melbourne, AU
    Posts
    2,189
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    All the information you need can be found in the PHPMailer wiki http://code.google.com/a/apache-extr...UsefulTutorial

  3. #3
    SitePoint Member
    Join Date
    Apr 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    I cannot get it to work when someone uses a different domain

    i can get the email when i use myemail@mydomain.com ...but i cannot send an email to a user who entered useremail@hisemail.com

    any ideas?


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
  •