Add of mailing script for contact form
This commit is contained in:
1 parent
a1c679b60a
commit
904f75c8de
7 files changed
+7637
-11
No files matched your search
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
/**
|
||||
* SMTP settings for the portfolio contact form.
|
||||
*
|
||||
* 1. Copy this file to smtp-config.php (same folder).
|
||||
* 2. Fill in the values below.
|
||||
* 3. chmod 640 smtp-config.php && chown root:www-data smtp-config.php
|
||||
*
|
||||
* This folder must stay OUTSIDE the web root: nobody should be able to
|
||||
* download it from a browser.
|
||||
*/
|
||||
return [
|
||||
// Custom-domain address linked to your Proton SMTP token
|
||||
// (Proton: Settings > All settings > Proton Mail > IMAP/SMTP > SMTP tokens).
|
||||
// A @proton.me / @pm.me address will NOT work here: Proton only issues
|
||||
// SMTP tokens for custom-domain addresses.
|
||||
'smtp_user' => 'contact@nelson-thomas.fr',
|
||||
|
||||
// The token itself (not your Proton password).
|
||||
'smtp_token' => 'PASTE_YOUR_SMTP_TOKEN_HERE',
|
||||
|
||||
// Where the messages are delivered. Can be any of your addresses.
|
||||
'to' => 'nelson.thomas.contact@pm.me',
|
||||
|
||||
// Only these sites may post to the form (scheme + host, no trailing slash).
|
||||
'allowed_origins' => [
|
||||
'https://nelson-thomas.fr',
|
||||
'https://www.nelson-thomas.fr',
|
||||
],
|
||||
|
||||
// Anti-spam: messages allowed per visitor IP per hour.
|
||||
'max_per_hour' => 5,
|
||||
|
||||
// Random string used to anonymise IPs in the rate-limit files.
|
||||
// Generate one with: openssl rand -hex 16
|
||||
'rate_salt' => 'CHANGE_ME_RANDOM_STRING',
|
||||
];
|
||||
Reference in new issue
Block a user