Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1212
Registered: March 2007
Senior 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: Sat Apr 20 04:26:46 CEST 2024

Total time taken to generate the page: 1.10119 seconds