www.webdeveloper.com
Results 1 to 4 of 4

Thread: php email from form

  1. #1
    Join Date
    Mar 2013
    Location
    Winnipeg, Canada
    Posts
    12

    php email from form

    I would like to have a form and then once a person fills out the form his/her name is entered into a database. Also, once the user clicks the submit button I would like to send out an email to the email address they filled in the form. The email will have a generic subject and message.

    If anyone can help me out that would be great. Thank you in advance.

  2. #2
    Join Date
    Mar 2013
    Location
    Denmark
    Posts
    14
    Try http://www.pbpixels.com/forms/generator.php that will get you some of the way at least although it's an old script.
    Hope it helps

  3. #3
    Join Date
    Mar 2013
    Location
    Iasi, Romania
    Posts
    53

  4. #4
    Join Date
    Apr 2013
    Posts
    1

    Php Email

    ini_set("SMTP","localhost");
    ini_set("SMTP_PORT","25");
    $to=$strTo;
    $subject=$strSubject."\r\n";
    $strContent="Mail Content here";
    $headers="MIME-Version: 1.0\r\n";
    $headers.="Content-type: text/html; charset=iso-8859-1\r\n";
    $headers.="From: ".$strFrom."\r\n";
    mail($to, $subject, $strContent, $headers);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles