pittica / post-sendgrid
Send e-mails using SendGrid from HTTP POST
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 2
Type:project
Requires
- php: ^7.1
- ext-curl: *
- ext-json: *
- google/recaptcha: ^1.2
- guzzlehttp/guzzle: ^6.5.2
- sendgrid/sendgrid: ^7.0
This package is auto-updated.
Last update: 2024-10-19 22:29:39 UTC
README
This project uses SendGrid to send data from contact forms.
Installation
You can install post-sendgrid using Composer.
composer create-project --prefer-dist pittica/post-sendgrid
Configuration
Create and edit a config/app.php file.
Example
<?php return [ 'fields' => [ 'whitelisted' => [ 'message' ], 'email' => 'email', 'subject' => 'subject', 'name' => 'name', 'labels' => [ 'message' => 'Message', 'email' => 'E-Mail', 'subject' => 'Subject' ] ], 'sender' => [ 'address' => 'YOUR@EMAIL.ADDRESS', 'name' => 'YOUR NAME' ], 'api' => [ 'key' => 'SendGrid API KEY' ], 'recaptcha' => [ 'key' => 'RECAPTCHA KEY', 'field' => 'g-recaptcha' ] ];
Copyright
(c) 2020-2021, Pittica S.r.l.s..