Download the PHP package pepipost/pepipost-laravel-driver without Composer
On this page you can find all versions of the php package pepipost/pepipost-laravel-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package pepipost-laravel-driver
Laravel Driver for Pepipost
A Mail Driver with support for Pepipost Send Email Web API, using the original Laravel API. This library extends the original Laravel classes, so it uses exactly the same methods.
To use this package required your Pepipost Api Key. Please make it Here.
We are trying to make our libraries Community Driven- which means we need your help in building the right things in proper order we would request you to help us by sharing comments, creating new issues or pull requests.
We welcome any sort of contribution to this library.
The latest 3.0.0 version of this library provides is fully compatible with the latest Pepipost v5.1 API.
For any update of this library check Releases.
Table of Content
- Installation
- Quick Start
- Usage of library in Project
- Sample Example
- Announcements
- Roadmap
- About
- License
Installation
Prerequisites
A free account on Pepipost. If you don't have a one, click here to signup.
Usage
Configuring laravel project
Step 1 - Create New Laravel project
Step 2 - Add the package to your composer.json and run composer update.
or install with composer
Step 3 - Configurations
1) Add pepipost api key, endpoint in config/services.php
2) Add following in .env file
2) Add following in config/mail.php
Step 4 - Laravel Steps to create controller and view
1) Define Controller
2) Update the controller Include following function sendMail in TestController:
3) create file in resources/views/mailtemplates/test.blade.php And include your email content
4) Create a new route in routes/web.php
5) Create a mailable template
This command will create a new file under app/Mail/TestEmail.php
6) Update your mailable template Update the mailable to the following code:
Step 5 - Testing
Host your laravel project and enter url- http://your_url.com/send/email in browser
This will send email and display Email sent successfully on browser.
Additional Usage
IF want to pass others parameters of Pepipost SendEmail, you have to update the mailable template. Add parameters as per your requirement. You can use multiple to's,cc's,bcc's with this method. Please refer the official Netcore api doc for more details on adavanced parameters.
This will be under app/Mail/TestEmail.php that we created.
Announcements
v3.0.0 has been released! Please see the release notes for details.
All updates to this library are documented in our releases. For any queries, feel free to reach out us at [email protected]
Roadmap
If you are interested in the future direction of this project, please take a look at our open issues and pull requests. We would love to hear your feedback.
About
pepipost-laravel library is guided and supported by the Pepipost Developer Experience Team . This pepipost library is maintained and funded by Pepipost Ltd. The names and logos for pepipost gem are trademarks of Pepipost Ltd.