debugging rsvp-submit.php
This commit is contained in:
1 parent
37b11df74b
commit
9c7372f271
1 file changed
+5
@@ -210,7 +210,12 @@ EOD;
|
|||||||
$mail->Body = $body;
|
$mail->Body = $body;
|
||||||
|
|
||||||
file_put_contents('/tmp/rsvp-debug.log', "5\n", FILE_APPEND);
|
file_put_contents('/tmp/rsvp-debug.log', "5\n", FILE_APPEND);
|
||||||
|
$mail->SMTPDebug = 2;
|
||||||
|
$mail->Debugoutput = 'error_log';
|
||||||
|
$mail->Timeout = 10;
|
||||||
|
error_log("About to send mail");
|
||||||
$mail->send();
|
$mail->send();
|
||||||
|
error_log("Mail sent");
|
||||||
file_put_contents('/tmp/rsvp-debug.log', "6\n", FILE_APPEND);
|
file_put_contents('/tmp/rsvp-debug.log', "6\n", FILE_APPEND);
|
||||||
|
|
||||||
header('Location: /thank-you/');
|
header('Location: /thank-you/');
|
||||||
|
|||||||
Reference in new issue
Block a user