You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Does V9 support connecting to SMTP mail servers using SSL (TLS). It uses port 587.
I'm getting this error when I try and connect to the server: An error was encountered sending the mail message. Error Information: Invalid response code received from server
Thanks!
Simon
Offline
Yes, you should have no problem doing this, and I assume your config is off somewhat, causing the error. The best tip I can give you is to take a look at a remote gmail setup and use that as a basis:
https://kryptronic.com/blog/2014/05/sit … mail-smtp/
Offline
Thanks for the link. I've tried with and without ssl:// but still can't get it to work.
The details I'm using are:
Hostname: ssl://smtp.office365.com
Port: 587 or 25
I've checked the login, so that's correct, plus I can send using a different PHP script and the same details.
Could it be the TLS causing issues?
Offline
No, you've got to authenticate. I was just checking with another script that I could connect to the server with a similar script. I'm not trying to link that to your system, just use the in-built connection.
Have you tested the connection to Office365 mail servers before?
Offline
Another K9 client is using Microsoft's online service (Office365 is the name, I think) for mail, and it was a huge pain to set up regarding DNS, etc. but they're using sendmail in K9 to send the mail. For the script that is working, can you turn on a debug and see how it's connecting? The K9 mail program is leveraging {private}/private/pear/Mail2/smtp.php to send the mail via SMTP. You can enable debugging in there if you like.
Offline
Thanks Nick, all fixed now. I turned on the debug to find it was trying to send from the wrong address - it uses the licence email in the config file rather than the site owner email address I think.
For reference the settings to use Office 365 are:
server: smtp.office365.com (No ssl:// prefix)
port: 587
Offline
Hi could you tell what error is that and how to resolve it? this happened at step 9 of installation process
Script Execution Error
count(): Parameter must be an array or an object that implements Countable
File: /core-private/pear/Mail/MimePart2.php Line: 301 Error Number: 2
Offline
Malindo wrote:
Hi could you tell what error is that and how to resolve it? this happened at step 9 of installation process
Script Execution Error
count(): Parameter must be an array or an object that implements Countable
File: /core-private/pear/Mail/MimePart2.php Line: 301 Error Number: 2
Odd error. Which PHP version are you running? Anything odd with the email address or mail server you're using during registration? Is this a K9 install?
Offline