Mailing the form

Discussion in 'HTML & Website Design' started by vijaychauhan007, Sep 4, 2010.

  1. #1
    I need the coad of a form which simply sends by email. I tried with some scripts but when i click on submit after entering the details it shows my outlook screen and den sends a mail using it. I want to send a mail directly to my id when i click submit. will any1 help me?
     
    vijaychauhan007, Sep 4, 2010 IP
  2. jpratama

    jpratama Member

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    You will need PHP for that purpose. It can send email with its mail function. You can the detail here http://php.net/manual/en/function.mail.php. Here's the example taken from that page :
    <?php
    $to      = 'nobody@example.com';
    $subject = 'the subject';
    $message = 'hello';
    $headers = 'From: [email]webmaster@example.com[/email]' . "\r\n" .
        'Reply-To: [email]webmaster@example.com[/email]' . "\r\n" .
        'X-Mailer: PHP/' . phpversion();
    
    mail($to, $subject, $message, $headers);
    ?>
    PHP:
     
    jpratama, Sep 4, 2010 IP
  3. dragongball

    dragongball Guest

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    this function you can using to spam many mail.if server mail limit number mail
     
    dragongball, Sep 4, 2010 IP