Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sendmail($from, $fromname, $to, $subject, $body, $anexo1=false, $anexo2=false) {
- require_once("mailer/class.phpmailer.php");
- $mail = new PHPMailer();
- $mail->SMTP_PORT = "587";
- $mail->IsSMTP =('smtp.futuraonline.com.br');
- $mail->Mailer =('mail');
- $mail->SMTPSecure ='ssl';
- $mail->SMTPAuth = true;
- $mail->Username = ('falecom@futuraonline.com.br');
- $mail->Password = ('futuradtvm');
- $mail->Sender = ('falecom@futuraonline.com.br');
- $mail->From = $from;
- $mail->FromName = $fromname;
- $mail->Addbcc ($to);
- //$mail->AddBcc("contato@futuraonline.com.br");
- $mail->Subject = ($subject);
- $mail->AddAttachment ($anexo1,$anexo2);
- $mail->IsHTML(true);
- $mail->Body = $body;
- if(!$mail->Send())
- return false;
- else
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement