Skip to content

Instantly share code, notes, and snippets.

Created February 1, 2019 09:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save magicdude4eva/76d96869f9122b3a816e520f0a83c1c3 to your computer and use it in GitHub Desktop.
SMTP Test via PHPMailer
To test: Run on any version of PHP, then install "PHPMailer" via composer:
composer require phpmailer/phpmailer
Test login via:
$fromAddress = '';
$recipientAddress = '';
use PHPMailer\PHPMailer\PHPMailer;
require './vendor/autoload.php';
$mail = new PHPMailer;
$mail->SMTPDebug = 4;
$mail->Host = '';
$mail->Username = 'Outlook-Login-Email';
$mail->Password = 'Outlook-Login-Password';
$mail->Port = 25;
$mail->SMTPAuth = true;
$mail->Subject = 'SMTP Test message';
$mail->Body = 'This is an email test';
if (!$mail->send()) {
echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
echo 'Message sent!';
Copy link

magicdude4eva commented Dec 29, 2019

Donations are always welcome

🍺 Please support me: If the above helped you in any way, then follow me on Twitter or send me some coins:

(CRO)    cro1w2kvwrzp23aq54n3amwav4yy4a9ahq2kz2wtmj (Memo: 644996249) or 0xb83c3Fe378F5224fAdD7a0f8a7dD33a6C96C422C (Cronos)
(USDC)   0xb83c3Fe378F5224fAdD7a0f8a7dD33a6C96C422C
(BTC)    3628nqihXvw2RXsKtTR36dN6WvYzaHyr52
(ETH)    0xb83c3Fe378F5224fAdD7a0f8a7dD33a6C96C422C
(BAT)    0xb83c3Fe378F5224fAdD7a0f8a7dD33a6C96C422C
(LTC)    MQxRAfhVU84KDVUqnZ5eV9MGyyaBEcQeDf
(Ripple) rKV8HEL3vLc6q9waTiJcewdRdSFyx67QFb (Tag: 1172047832)

Go to to add your card to ApplePay and signup to for a staking and free Crypto debit card.

Use Binance Exchange to trade #altcoins. Sign up with Coinbase and instantly get $10 in BTC. I also accept old-school PayPal.

If you have no crypto, follow me at least on Twitter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment