pittica/post-sendgrid

Send e-mails using SendGrid from HTTP POST

1.0.0 2020-02-13 00:24 UTC

This package is auto-updated.

Last update: 2024-04-19 21:34:19 UTC


README

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

(c) 2020-2021, Pittica S.r.l.s..