Invalid tmp dir hangs website during mail send
-
I migrate production (linux) to localhost (WAMP) often to do test & dev work. That requires remember to change the
Temporary DirectoryinPost SMTP > Settings > Advancedto a valid Windows path. I forgot to do that today before invoking the send_message() functionality and the website just hanged with the following log:PHP Warning: mail(): SMTP server response: 530-5.7.0 Authentication Required. Learn more at 530 5.7.0 https://support.google.com/mail/?p=WantAuthError o21sm2812138ljg.71 - gsmtp in plugins\post-smtp\Postman\Extensions\Core\Notifications\PostmanMailNotify.php on line 12 ERROR PostmanWpMail: Exception code=0 message=Could not create lockfile /tmp/.postman.lockTo make the backend operational once again, had to comment out the line 12 of the error above to become able to fix the path in the UI backend:
//mail( $to_email, "{$domain}: " . __( 'Post SMTP email error', 'post-smtp' ), $message , '', "-f{$to_email}" );Please consider adding a more gracefully way of checking/handling an incorrect path to tmp directory.
Thanks.
The topic ‘Invalid tmp dir hangs website during mail send’ is closed to new replies.