-
Notifications
You must be signed in to change notification settings - Fork 0
/
mail.php
28 lines (23 loc) · 977 Bytes
/
mail.php
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
<?php
$us = [ "[email protected]", "[email protected]" ];
$mail = $_GET['mail'];
if( $mail != '' ){
$headers = 'From: ' . 'The Nalyze Team' . ' <' . '[email protected]' . '>' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
$message = "Hi !
Thank you for your interest in the Nalyze team, we hope you are as interested as us in entrepreneurship, startups and technology.
We will come back to you very soon !
Kind regards from the Nalyze team.";
$filename = "mail.txt";
$mail_file = fopen( $filename, "a");
// mail ( $mail , "We'll be in touch soon!" , $message, $headers );
$txt = $mail."\n";
fwrite($mail_file, $txt);
fclose($mail_file);
$mail_contents = file_get_contents ( $filename );
foreach( $us as $to ){
mail ( $to , "Somebody new!" , "A new member signed up on nalyze.net !
Here is the list for now :
" . $mail_contents, $headers );
}
}
?>