Skip navigation
Currently Being Moderated

How to send a confirmation email to users in dw cs6?

Mar 22, 2013 2:56 AM

Hi all,

 

I am very new to dreamweaver cs6.

 

I would like to ask how do i send a confirmation email to users when they have finished inputting their details in the registration page. (is it using php scripting?)

 

In layman terms, the users have keyed in all their information for registration, how do I send a confirmation email to the emails they keyed? Thank you!

 
Replies
  • Currently Being Moderated
    Mar 22, 2013 5:01 AM   in reply to IVYY

    The form submits its data to a form processing script. The form processing script processes the form's data and then creates and sends the email to the user confirming the submitted data. Usually the use of the PHP command -

     

    mail($to, $subject, $message, $headers);

     

    is adequate to send the email after it has been formulated.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 22, 2013 7:08 AM   in reply to IVYY

    You build an auto-reply message so when the information is submitted to your email address via the website form the  sender receives a confirmation.

     

    // build your auto reply

        $reply = $_POST['email'];

        $replysubject = "Auto-Reply: Your Website Name";

        $replyfrom = "From: your@emailAddress.co.uk\r\n";

        $replymessage .= "Your enquiry has been successfully sent. Thank you.\r\n\r\n";

        $replymessage .= "Yours Sincerely,\r\n";

        $replymessage .= "Your Name - Position in Company\r\n";

        $replymessage .= "your@emailAddress.co.uk\r\n";

        $replymessage .= "http://www.yourDomainName.co.uk\r\n\r\n";

        $replymessage .= "This e-mail is automated, so please DO NOT reply.\r\n";

     

    Then add the line below after the 'mail' funtion in the php form processing script

     

    mail($reply, $replysubject, $replymessage, $replyfrom);

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 23, 2013 12:19 PM   in reply to IVYY

    Lets say I am doing this over a local server like wamp.

     

    Is it still possible that an auto-confirmation email message can be sent to the users?

     

    NOPE.  Wamp is a local testing server.  It cannot send e-mail messages.  To do everything on your wish list, you need real web hosting.  If your school can't provide it, look at commercial web hosting providers.

     

    • Lunarpages
    • InMotion
    • Dreamhost
    • HostGator
    • Pair Networks

     

     

    Nancy O.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points