Skip to content

pittica/post-sendgrid

Repository files navigation

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

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