Giter VIP home page Giter VIP logo

phpmailer's Introduction

PHPmailer

A simple PHP mailer package with zero dependencies.

This package let you send highly customizable HTML emails and works straight out of the box. Just drop it in your server and you are all set.

logo

Requirement

PHP 5 >= 5.1.0, PHP 7

Installation

It works straight out of the box. All you have to do is

  • Browse into your root directory (public_html or www)
  • In your terminal or CLI run git clone https://github.com/kodjunkie/PHPmailer.git
  • Lastly visit https://your-site-url/PHPmailer

OR

Configuration (optional)

To enable IP Ban and / or Activity Logging.

Open includes/init.php in your favourite editor and uncomment these

//bannedIPs();

//logActivity();

TO

bannedIPs();

logActivity();

By default it saves the log file in its root directory (PHPmailer) but you can specify log file name and location name as follows

logActivity('path/filename.log');

By default it validates emails. To disable, open handler.php in your editor and change

$mail->validate()->send();

To

$mail->send();

Mail Template

You can have as many mail templates as you desire. Just put them in the templates folder and have these placeholders in them

$recipientName (optional)   -   Gets replaced by the email(without @domain.com)
$recipientEmail (optional)  -   Gets replaced by the full email([email protected])
$message (required)         -   Gets replaced by the message content

Then open handler.php and specify the template name as the sixth argument to SendMail class, like below.

// Instantiate the mail object
$mail = new SendMail($subject, $message, $from, $to, $sendToGroup, 'template_name.html');
if (isset($emailList) && is_file($emailList)) {
    $mail = new SendMail($subject, $message, $from, $emailList, $sendToGroup, 'template_name.html');
}

๐Ÿ”ฅ ๐Ÿš€

phpmailer's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

salissadiq

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.