U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ MT-multithreading and servers » How to use TLS over SMTP
Re: How to use TLS over SMTP [message #48049 is a reply to message #48045] Sat, 13 May 2017 10:13 Go to previous messageGo to previous message
Tom1
Messages: 1319
Registered: March 2007
Ultimate Contributor
Hi,

Wow, that was fast Oblivion! Thanks!!

However, sending with STARTTLS failed with an error:

503 5.5.1 Error: send HELO/EHLO first


when processing:

String ans = SendRecv("AUTH LOGIN\r\n");


I fixed it by removing the 'else' after initializing STARTTLS and allowing new HELO inside STARTTLS mode. I think I read somewhere that after going into STARTTLS makes server drop all prior information and therefore requires starting over with new HELO:

	throw Exc("Server does not provide SMTP service information.");
}
//else
	SendRecvOK("HELO " + org + "\r\n");
if(!IsNull(auth_user)) {
	String ans = SendRecv("AUTH LOGIN\r\n");
...


Can you confirm if this is correct? It seems to work fine on my ISP's SMTP server.

Thanks and best regards,

Tom
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Send/receive files with SCP and launch commands with SSH
Next Topic: Code before Thread.Run() nor executed
Goto Forum:
  


Current Time: Sun May 31 18:33:34 GMT+2 2026

Total time taken to generate the page: 0.00547 seconds