Click to See Complete Forum and Search --> : How to send email to the mail address sent by the client
DivyaJaiKumar
September 30th, 2005, 02:18 AM
Hi,
I have a doubt that is when I do some registration of a member, I also accept his/her mail address. I have to send the mesage back to there mail id that I have received there details through the form they have entered to the client as soon as they press the submit button. This message should be sent to there mail-id and I should receive the message that the mail is sent . If anyone could help me with this it would be of great help.
Thanks in advance.
zerocode
September 30th, 2005, 02:30 AM
try showing a "successful registration" message instead of sending a mail this would make your application simple.
store values into your database instead.
DivyaJaiKumar
September 30th, 2005, 07:36 AM
I also show that the registration is done successfully but it is also a must that we have to send the client a message indicating there username and password to activate the registration they have done. this is the rule by the client. So please if you could help me with the codingit would be more helpful.
Thanks in advance.
PeejAvery
September 30th, 2005, 06:00 PM
A mail function must be done on the server side because it requires a SMTP server to complete the function. Mail() in PHP will do what you want. It is very simple.
DivyaJaiKumar
October 4th, 2005, 12:55 AM
thanks for the suggestion peejavery. But I don't know how to use PHP I u could help me with that it would be very kind of u as to how to do it and how to run it. thanks in advance. If any example coding is given it would be more useful.
PeejAvery
October 4th, 2005, 09:27 AM
Well, here are some things to help you out. Concerning the website. Read through the introduction. From there it is very simple. You can search for various commands. PHP is very simple. PHP is interpreted before it reaches the clients browser so it is good for security and forms.
http://www.php.net/manual/en/langref.php
<?php
$to = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.