Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SMTP -> get_lines(): $data was ""
- SMTP -> get_lines(): $str is "220 Ready to start TLS. "
- SMTP -> get_lines(): $data is "220 Ready to start TLS. "
- SMTP -> FROM SERVER:220 Ready to start TLS.
- SMTP -> FROM SERVER:
- SMTP -> ERROR: RSET failed:
- Language string failed to load: tls
- $email = 'test@gmail.com';
- $message = 'test test test';
- $subject = 'test';
- function send_mail($email,$message,$subject)
- {
- require_once('mailer/class.phpmailer.php');
- $mail = new PHPMailer();
- $mail->IsSMTP();
- $mail->SMTPDebug = 4;
- $mail->SMTPAuth = true;
- $mail->SMTPSecure = "tls";
- $mail->Host = "smtp.zoho.com";
- $mail->Port = 587;
- $mail->AddAddress($email);
- $mail->Username="admin@domain.com";
- $mail->Password="xxxxx";
- $mail->SetFrom('admin@domain.com','domain');
- $mail->AddReplyTo("admin@domain.com","domain");
- $mail->Subject = $subject;
- $mail->MsgHTML($message);
- $mail->Send();
- }
- send_mail($email,$message,$subject);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement