Skip to content

Commit

Permalink
Update Email v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jave Lupango committed Dec 7, 2020
1 parent 88c1e3d commit 9bd8e0d
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions controller/email/email.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
//Load Composer's autoloader
require 'PHPMailer/vendor/autoload.php';

$mail = new PHPMailer(true); // Passing `true` enables exceptions
$mail = new PHPMailer(true); // Passing `true` enables exceptions
try {
//Server settings
//$mail->SMTPDebug = 3; // Enable verbose debug output
Expand All @@ -26,11 +26,11 @@
'allow_self_signed' => true
));
//Recipients
$mail->setFrom('[email protected]', 'vpnproviderph');
$mail->addAddress('[email protected]', 'Jave Lupango');
$mail->setFrom('[email protected]', 'VPN Provider.PH Support');
$mail->addAddress('[email protected]', 'Jave Lupango');
//Content
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = 'Test Only';
$mail->Subject = 'VPN Support Team';
$mail->Body = '
<table align="center" border="0" cellpadding="0" cellspacing="0" class="m_-5350758594985752526mlContentTable" width="860">
Expand Down Expand Up @@ -289,6 +289,7 @@ class="CToWUd">
<td id="m_-5350758594985752526bodyText-18" style="font-family:Helvetica,sans-serif;font-size:14px;line-height:24px;color:#727586">
<p style="margin-top:0px;margin-bottom:0px;line-height:24px"><span style="font-size:14px"><span style="font-size:14px">
<span style="font-size:14px">
<span style="color:#727586">© 2020 Jave.</span><br><br>
<span style="color:#727586">© 2020 Jave.</span>
</span>
</span>
Expand Down Expand Up @@ -322,15 +323,10 @@ class="CToWUd">
</tr>
</tbody>
</table>
' ;

$mail->send();

$mail->send();
echo 'Message has been sent';

} catch (Exception $e) {
echo 'Message could not be sent. Mailer Error: ', $mail->ErrorInfo;
}

?>

0 comments on commit 9bd8e0d

Please sign in to comment.