WPPizza – A Restaurant Plugin for WordPress › Support › General Support › SMTP not working, Error 503
- AuthorPosts
- 27 February, 2018 at 9:55 am #35325
Hi there, I think the SMTP password is not being saved. So I can send with my mail client thunderbird through this email with the right authentication email to all receivers, but with wppizza it won’t work, so this have to be a plugin error. “Error 503 this server requires Authentication” occures by trying that. Do you have any idea?
27 February, 2018 at 1:36 pm #35328sounds more like it’s not set to use SMTP in the first place (i can assure you the password does get saved)
27 February, 2018 at 1:38 pm #35330“Use SMTP” is checked. So what could that else be?
27 February, 2018 at 1:40 pm #35332have you used/run the test there (i assume we are talking about the smtp settings section in the wppizza plugin) ?
what does the output give you ?27 February, 2018 at 1:41 pm #35333and also (just checking) are you using another SMTP plugin by any chance ?
27 February, 2018 at 1:44 pm #35334Of course I run the test at the wppizza plugin, this is the output:
Array ( [error] => FAIL - check details below [error-info] => Array ( [last-error] => Array ( [type] => 2 [message] => mail(): SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server. [file] => C:\Inetpub\vhosts\XXXXXcensoredXXXXX\wp-includes\class-phpmailer.php [line] => 698 ) [phpmailer] => Could not instantiate mail function. ) [debug] => )
I am not using another plugin related with SMTP.
27 February, 2018 at 2:12 pm #35337did you “verify that the domain or address is defined for this server.”
test smtp emails simply use the default wp_mail from address (something like [email protected])
whereas “live” emails so to speak use the settings in wppizza->settings ->emailsi guess i should probably change this to be used for test emails too at some point.
as it is what it is at the moment, have you tried doing a test email with an actual test order ?PS: when you test it, it does not even use any saved parameters but directly what you have typed into the formfields
27 February, 2018 at 2:25 pm #35339As normal test order this is the error:
EMAIL TO SHOP FAILED: Could not instantiate mail function. | Array ( [type] => 2 [message] => mail(): SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server. [file] => C:\Inetpub\vhosts\XXXcensoredXXX\wp-includes\class-phpmailer.php [line] => 698 ) | Recipients: [email protected] | Subject: [Pizza XXX] - ORDER TEXT 27. February 2018 15:19 | Headers: Array ( [0] => Content-Type: text/html; charset=UTF-8 [1] => From: Pizza XXX <[email protected]> [2] => Reply-To: [email protected] [3] => Cc: [email protected] )
What do you mean with “verify that the domain or address is defined for this server.”?
The wordpress installation runs at subdomain.MY-DOMAIN.com and the email is [email protected]27 February, 2018 at 2:43 pm #35343>What do you mean with “verify that the domain or address is defined for this server.”?
lol, *I* don’t mean anything by that. it’s the phpmailer script that says thiscan you check with your host/server admin first of all if From: Pizza XXX
is allowed to send in the first place to a non-local address (and/or have a look at your mail (error) log) 27 February, 2018 at 2:48 pm #35344you could also try to disable the wppizza smtp functionality and see if you have more luck with another 3rd party smtp plugin
wppizza is of course not really a smtp plugin as such. i just added that option to perhaps be useful and i know it works on many/most servers (not to mention that i noticed that many smtp plugin store their smtp passwords in plaintext which – in my book – is far from ideal)
27 February, 2018 at 3:04 pm #35345Okay, with another SMTP plugin this works not, too. So the error must be in my configuration, but why can I send with thunderbird from this email account?
27 February, 2018 at 3:34 pm #35352because using a server to send is quite different from using an email client
you’ll have to speak to your mail administrator27 February, 2018 at 3:41 pm #35353I am the mail administrator… hosted with plesk.
28 February, 2018 at 7:01 am #35385But the normal contact form like Contact Form 7 is working without a problem? Could that be nessessary?
28 February, 2018 at 8:56 am #35386All I can suggest is to look at your mail(error)logs and speak to your host
I know absolutely nothing about your server / server setup and if it’s not only the wppizza smtp settings but also other smtp plugins that throw errors then there’s clearly something wrong in your setup/credentials somewhere
28 February, 2018 at 8:58 am #35387Ok I solved it. Just change in the file /wp-includes/class-phpmailer.php the paragraph
public $SMTPAutoTLS = true;
topublic $SMTPAutoTLS = false;
28 February, 2018 at 9:03 am #35388hacking core files is a VERY VERY bad idea (you will have the same problem every time wordpress updates)
28 February, 2018 at 9:04 am #35389Okay, so do you know how to solve this without changing core files?
28 February, 2018 at 9:09 am #35390i just found somthing here
https://wordpress.org/support/topic/smtpautotls-overrides-smtpsecure-no-tlsssl-in-php-56/
(filter at the end of page)other than that, google is your friend
28 February, 2018 at 9:15 am #35391seems to me that perhaps your certificate on your server is the problem or ssl is not enabled but it’s just a guess
- AuthorPosts
- The topic ‘SMTP not working, Error 503’ is closed to new replies.