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:
Zatalyz 2024-11-18 10:55:28 +01:00
parent f26c38fa5e
commit 3478af8776

View file

@ -104,12 +104,18 @@ if ($action === 'submit_form' && $try === 'send') {
$subject_prefix = $config['subject_prefix'];
$subjectreal = "$subject_prefix : $subject";
$headers = "From: $name <$email>";
// Usage de msmtp
if (msmtp_send($to, $subjectreal, $message, $headers, $account)) {
echo $txt['email_success'];
} else {
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 {
echo "<span class=\"spam\">" . $txt['bad_answer'] . "</span>";
}