Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail=new PHPMailer;
- $mail->IsSMTP();
- $mail->Host='smtp.zoho.com';
- //$mail->SMTPDebug = 4;
- $mail->SMTPSecure = 'ssl';
- $mail->Port='465';
- $mail->SMTPAuth=true;
- $mail->Username='developer@playprevs.com';
- $mail->Password='entah123';
- $mail->isHTML(true);
- $mail->SetFrom('developer@playprevs.com','Prevs Developer');
- $mail->Subject='PHPMailer Test Subject via smtp, basic with authentication';
- $mail->AltBody='To view the message, please use an HTML compatible email viewer!';
- $mail->MsgHTML('<h1>JUST A TEST!</h1>');
- $mail->AddAddress($_POST['email'], $_POST['username']);
- if(!$mail->send()) {
- $Message = 'Something error occurred while sending e-mail.';
- } else {
- $Message = 'Successfull, please check your inbox.';
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement