diff --git a/sender.php b/sender.php index 2a1dba6..b6ac45b 100644 --- a/sender.php +++ b/sender.php @@ -1,6 +1,8 @@ SMTPDebug = 3; // Enable verbose debug output @@ -42,6 +52,8 @@ while(!feof($file)){ $token = getToken(); $link = generateLink($mlrollmember_url, $token, $ml, $sanitized_mail); $mail->AltBody = $def_body.$link; + + if(!$mail->send()) { echo 'Message could not be sent.';