Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function enviar_notificacao(){
- $mailconf = $this->setup_mail();
- $mailconf->isHTML(true);
- $mailconf->Subject = 'Here is the subject';
- $mailconf->Body = 'This is the HTML message body <b>in bold!</b>';
- }
- private function setup_mail(){
- $mail = new PHPMailer;
- $mail->isSMTP();
- $mail->Host = 'smtp1.example.com;smtp2.example.com';
- $mail->SMTPAuth = true;
- $mail->Username = 'user@example.com';
- $mail->Password = 'secret';
- $mail->SMTPSecure = 'tls';
- $mail->Port = 587;
- return $mail;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement