pittica/post-sendgrid

Send e-mails using SendGrid from HTTP POST


Keywords
email, post, sendgrid
License
MIT

Documentation

Post SendGrid

LICENSE packagist PHP from Packagist

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

© 2020 Pittica S.r.l.s.