Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ktalib/sendemail
https://github.com/ktalib/sendemail
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ktalib/sendemail
- Owner: ktalib
- Created: 2024-09-07T14:37:44.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-08T14:18:22.000Z (4 months ago)
- Last Synced: 2024-11-09T23:09:23.158Z (2 months ago)
- Language: HTML
- Size: 140 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Here's a sample GitHub README for your PHPMailer project:
**PHPMailer Email Template Project**
=====================================A simple PHPMailer project that sends emails using a custom HTML template.
**Table of Contents**
-----------------* [Introduction](#introduction)
* [Features](#features)
* [Requirements](#requirements)
* [Installation](#installation)
* [Usage](#usage)
* [License](#license)**Introduction**
---------------This project uses PHPMailer to send emails with a custom HTML template. The template includes placeholders for the recipient's full name, username, message, and site name.
**Features**
------------* Send emails using a custom HTML template
* Replace placeholders with actual data using PHPMailer
* Supports SMTP authentication and encryption**Requirements**
---------------* PHP 7.2 or later
* PHPMailer library ( installed via Composer )
* SMTP server settings (e.g. Gmail, Outlook, etc.)**Installation**
---------------1. Clone the repository: `git clone https://github.com/your-username/phpmailer-email-template.git`
2. Install PHPMailer via Composer: `composer require phpmailer/phpmailer`
3. Update the SMTP settings in `config.php` with your actual SMTP server settings**Usage**
---------1. Create a new PHP file (e.g. `send_email.php`) and include the `config.php` file
2. Set the recipient's full name, username, message, and site name variables
3. Use the `PHPMailer` object to send the email with the custom HTML template**Example Code**
```php
require 'config.php';$fullname = 'John Doe';
$username = 'johndoe';
$message = 'Hello, this is a test email!';
$site_name = 'Example Site';$mail = new PHPMailer(true);
// ... (rest of the code remains the same)
```
**License**
----------This project is licensed under the MIT License. See the [LICENSE file](LICENSE) for details.
**Contributing**
---------------Contributions are welcome! Please submit a pull request with your changes.
thank you