-2

I have a project in which I had made web site in php and in that there are one registration form.

there are email field in registration form, now i want to send registration confirmation link in that mail id.

Is there any way for sending confirmation link when user click on submit button using php or java script?

4
  • you want to verify the link also OR just sending a mail ?
    – CS GO
    Feb 27, 2014 at 9:41
  • yes ofcause you can send email through mail() function.
    – jogesh_pi
    Feb 27, 2014 at 9:42
  • yes, I also want to verify the link.. how it will be connect with my project or site?
    – ravi
    Mar 3, 2014 at 6:27
  • right now, my whole project is on localhost
    – ravi
    Mar 3, 2014 at 6:28

1 Answer 1

1

You could send email from php if you have SMTP on your server

 function sendmail(){

        $subject="bla bla bla";
    $body="Hi boss!!! ";
    $headers='accountrecovery';
    $to="test";
    mail($to,$subject,$body,$headers);

    }

If you are testing on a local server like wamp or xamp you need to setup SMTP

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.