Skip to content

interaapps/PHPMailer-Ulole-Module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPMailer for Ulole-Framework

This is simple implimitation of PHPMailer made by Marcus Bointon, Jim Jagielski, Andy Prevost and Brent R. Matzelle (The names are by the README.md from 28 August 2019) for the ulole-framework

Getting started

php uppm install phpmailer

Code Example

<?php
$mail = new modules\phpmailer\PHPMailer;
$mail->isSMTP();
$mail->Host = 'SERVER';
$mail->Port = 25;
$mail->SMTPAuth = true;
$mail->Username = 'USERNAME';
$mail->Password = 'PASSWORD';
$mail->setFrom('test@test.com', 'Hello');

$mail->addAddress("test2@test.com");

$mail->Subject = 'World';

$mail->msgHTML("Hello World!!!");
if ($mail->send())
    echo "sent"; 
else 
    die("".$mail->ErrorInfo);