diff --git a/form.php b/form.php index 09aaed3..05163b3 100644 --- a/form.php +++ b/form.php @@ -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 "" . $txt['bad_answer'] . ""; }