Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_once('phpmail/PHPMailerAutoload.php');
- $mail = new PHPMailer();
- $mail->isSMTP();
- $mail->SMTPDebug = 2;
- $mail->Debugoutput = 'html';
- $mail->Host = "smtp.igoweb.com.br";
- $mail->Port = 25;
- $mail->SMTPAuth = true;
- $mail->Username = "referencia@igoweb.com.br";
- $mail->Password = " sua senha";
- $mail->setFrom('referencia@igoweb.com.br', 'IGOWEB');
- $mail->addReplyTo('referencia@igoweb.com.br', 'IGOWEB');
- $mail->addAddress('andremomb@gmail.com', '');
- $mail->Subject = 'Teste de Envio de E-Mail';
- //$mail->msgHTML(file_get_contents('contents.html'), dirname(__FILE__));
- $mail->msgHTML("Testando o envio de E-Mail",0);
- $mail->AltBody = 'This is a plain-text message body';
- if (!$mail->send()) {
- //return "Mailer Error: " . $mail->ErrorInfo;
- } else {
- //return send mail!
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement