Código PHP:
<?php
$email = $_POST['email'] ;
$file = 'variable1.txt';
$variable1 = file_get_contents($file);
$file2 = 'variable2.txt';
$variable2 = file_get_contents($file2);
$f=fopen("enviarMail.php","w+");
fwrite($f,"$variable1 $email $variable2 ");
fclose($f); ?>
Código PHP:
<?php
$to = "
Código PHP:
";
$subject = "Hi!";
$body = "Hi,nnHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
Código PHP:
<?php
$to = " , , ";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>