Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require 'PHPMailer/PHPMailerAutoload.php';
- $mail = new PHPMailer;
- $mail->isSMTP();
- $mail->Host = 'mail.wsmtec.com.br';
- $mail->SMTPAuth = true;
- $mail->Username = 'androcles@wsmtec.com.br';
- $mail->Password = 'Minhasenha';
- $mail->Port = 587;
- $mail->IsHTML(true);
- $mail->From = 'androcles@wsmtec.com.br';
- $mail->FromName = 'AndroclesMail';
- $mail->addAddress('androcles@wsmtec.com.br');
- $mail->Subject = 'E-mail PHPMailer Wsm';
- $mail->Body = '<h1>Mensagem enviada via PHPMailer Wsm</h1>';
- if($mail->Send()):
- echo 'Enviado com sucesso !';
- else:
- echo 'Erro ao enviar Email:' . $mail->ErrorInfo;
- endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement