Wamp localhost send email -


i have followed link , here php code. issue have tried many times , didn't receive emails. please point out went wrong? thank

http://blog.techwheels.net/send-email-from-localhost-wamp-server-using-sendmail/

  if($result)   {    $to = $email;   $subject = "your comfirmation email";   $header = "from: name <your email>";   $message = "thank registering us. can login account";    if(mail($to, $subject,$header,$message))         {   echo 'your confirmation email has been sent email address.   <a href="login.php">click here login</a>';   }   else      {   echo 'cannot send confirmation link e-mail address.   <a href="login.php">click here register</a>';   }   } 

do have mail server configured on system?

windows not come mail server *nix. simple answer use library phpmailer, allows use gmail /yahoo /etc mail account send email.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -