https://github.com/itreza7/mailing
Larateam Mailing Assistant for laravel
https://github.com/itreza7/mailing
css html laravel laravel-framework mail mailing php php7 php8
Last synced: 7 months ago
JSON representation
Larateam Mailing Assistant for laravel
- Host: GitHub
- URL: https://github.com/itreza7/mailing
- Owner: itreza7
- Created: 2021-11-30T10:29:51.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-19T11:48:27.000Z (almost 4 years ago)
- Last Synced: 2025-01-29T20:19:03.514Z (8 months ago)
- Topics: css, html, laravel, laravel-framework, mail, mailing, php, php7, php8
- Language: CSS
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
![]()
## Larateam Mailing Assistant for laravel
### How to install
- Run this command for adding to composer
```bash
composer require itreza7/mailing
```
- Run this command for modify default language files
```bash
php artisan vendor:publish --provider="Larateam\Mailing\Providers\AppServiceProvider"
```
### Facade Methods
If you want this email to be transferred to the queue and sent using the cronjob, run this method
```phps
make_queue()
```
This command adds a bold line to the beginning of the email, you can use it to greet and ....
```php
greeting($greeting)
```
Use this command to add a line of text or HTML code to an email.
```php
line($line)
```
Use this command if you want to put a button in your email.
```php
action($text, $url, $color = 'primary', $add_to_footer = true)
```
Add this command to change the template. Template number 1 is set by default.
```php
template($template)
```
You can use this command to render the email, this returns an object of following class
```php
\Larateam\Mailing\Mails\LTMailable extends \Illuminate\Mail\Mailable
```
```php
render()
```
Of course, a method for sending emails have also been added to the mentioned class.
```php
confirm()
```
### Example
```php
(new LTMail())->greeting('Reza')
->line('Hi')
->action('Google', 'https://google.com', 'red')
->line('Hi')
->render()
->to('itreza7@gmail.com')
->subject('Hi Reza')
->confirm();
```