Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mail = new PHPMailer();
- $mail->IsHTML(true);
- $mail->Priority = 3;
- $mail->CharSet = 'utf-8';
- $mail->Mailer = "smtp";
- $mail->SMTPAuth = true;
- $mail->Host = 'mail.hostname.com';
- $mail->Port = 26;
- $mail->Username = 'username';
- $mail->Password = 'password';
- $mail->From = 'test@email.com';
- $mail->FromName = 'test@email.com';
- $mail->Subject = 'subject';
- $mail->MsgHTML('test message<br>test 1,2,3,4...');
- $mail->AddAddress('to@email.com', 'to@email.com'); // email -> name
- $mail->WordWrap = 80;
- if($mail->Send(){
- echo 'mail sent';
- }else{
- echo 'mail not sent';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement