Changes - Minor - Je remet la partie "mail" de php... suivant les usages... ça évitera de chercher. Elle est commentée.
This commit is contained in:
parent
f26c38fa5e
commit
3478af8776
1 changed files with 7 additions and 1 deletions
8
form.php
8
form.php
|
@ -104,12 +104,18 @@ if ($action === 'submit_form' && $try === 'send') {
|
||||||
$subject_prefix = $config['subject_prefix'];
|
$subject_prefix = $config['subject_prefix'];
|
||||||
$subjectreal = "$subject_prefix : $subject";
|
$subjectreal = "$subject_prefix : $subject";
|
||||||
$headers = "From: $name <$email>";
|
$headers = "From: $name <$email>";
|
||||||
|
// Usage de msmtp
|
||||||
if (msmtp_send($to, $subjectreal, $message, $headers, $account)) {
|
if (msmtp_send($to, $subjectreal, $message, $headers, $account)) {
|
||||||
echo $txt['email_success'];
|
echo $txt['email_success'];
|
||||||
} else {
|
} else {
|
||||||
echo $txt['email_error'];
|
echo $txt['email_error'];
|
||||||
}
|
}
|
||||||
|
// Sinon commentez au dessus et décommenter ici pour utiliser la fonction mail de php
|
||||||
|
/*if (mail($to, $subjectreal, $message, $headers)) {
|
||||||
|
echo $txt['email_success'];
|
||||||
|
} else {
|
||||||
|
echo $txt['email_error'];
|
||||||
|
}*/
|
||||||
} else {
|
} else {
|
||||||
echo "<span class=\"spam\">" . $txt['bad_answer'] . "</span>";
|
echo "<span class=\"spam\">" . $txt['bad_answer'] . "</span>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue