Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // in PhpMailer Mail.php:
- class Mail extends PhpMailer
- {
- // Set default variables for all new objects
- public $From = 'booking@tranehuset.no';
- public $FromName = 'SK Trane Booking';
- public $Host = 'send.one.com';
- public $Mailer = 'smtp';
- public $SMTPAuth = true;
- public $Username = 'booking@tranehuset.no';
- public $Password = '65a78c397a792a28d418a';
- public $SMTPSecure = 'tls';
- public $WordWrap = 75;
- // [...]
- // in Controller:
- $mail = new \Helpers\PhpMailer\Mail();
- $mail->IsSMTP();
- $mail->CharSet = 'UTF-8';
- $mail->Host = "send.one.com"; // SMTP server example
- $mail->SMTPDebug = 1; // enables SMTP debug information (for testing)
- $mail->SMTPAuth = true; // enable SMTP authentication
- $mail->Port = 465; // set the SMTP port for the GMAIL server
- $mail->Username = "booking@tranehuset.no"; // SMTP account username example
- $mail->Password = "65a78c397a792a28d418a"; // SMTP account password example
- $mail->addAddress($eventCEmail);
- $mail->subject('Reservasjon av Tranehuset '.$eventDateStartB);
- $mail->body("<h1>Hey</h1><p>I like this <b>Bold</b> Text!</p>");
- $mail->send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement