Skip to content

Form2Mail

form2mail takes formular data of an application form and generates a Mail.

Requirements

Install

1
2
3
git clone https://github.com/yawik/Form2Mail.git
cd Form2Mail 
composer install

CORS

you can configure cors

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

declare(strict_types=1);

namespace Form2Mail;

/*
 * List of allowed origins
 * Needed for CORS;
 */
$options['allowedOrigins'] = [
     'https://form.yawik.org',
];

/*
 * Allowed methods for above origins.
 * Map route names to request methods
 * Multiple methods are specified as a comma separated string.
 */
//$options['allowedMethods'] = [
//    'sendmail' => 'POST',
//    'details' => 'GET',
//];


/*
 * Do not change below
 */
return ['options' => [Options\ModuleOptions::class => ['options' => $options]]];

Comments