i'm trying phpmailer send e-mail verification link. done need use html tag set ishtml true somehow mails won't go out anymore.
here's current code.
//send welcome e-mail $mail = new phpmailer(); $mail->issmtp(); // set mailer use smtp $mail->host = "smtp.yaay.de"; // specify main , backup server $mail->port = "465"; $mail->smtpauth = true; // turn on smtp authentication $mail->smtpsecure = 'ssl'; $mail->username = "admin@whatever.net"; // smtp username $mail->password = "pass"; // smtp password $mail->from = "admin@whatever.net"; $mail->fromname = "whatever"; $mail->addaddress($receiver, $receivername); // name optional $mail->subject = "welcome, $receivername!"; $mail->body = "to activate account, please visit following link: <a href = '?test'>test</a>"; $mail->ishtml(true); $mail->send(); if(!$mail->send()) { die($mail->errorinfo); }
no errror displayed, have no idea how find out problem is. :( know html code or ishtml(true) enough kill e-mail sending process. :/
Comments
Post a Comment