Home » U++ Library support » U++ MT-multithreading and servers » How to use TLS over SMTP
Re: How to use TLS over SMTP [message #48083 is a reply to message #48060] |
Mon, 15 May 2017 09:22 |
Tom1
Messages: 1212 Registered: March 2007
|
Senior Contributor |
|
|
Hi Oblivion,
It seems we need one more change in bool Smtp::Send(const String& msg_):
...
// receive initial message & send hello
do{
ans=SendRecv(Null);
}while(ans[3]=='-');
String org;
int pos = sender.Find('@');
...
That is, adding the do-while loop and checking the answer for the dash. My ISP (or rather their Postfix server) occasionally sends the greeting with a dash (220-...) indicating a multi-line response. and then on the next line will follow the final greeting. If that is not picked out from the queue, the EHLO will fail. After fixing the code as above, the trace from Smtp:: will show desired behavior with Postfix server:
SMTP send:
Reply: 220-relay.myisp.com ESMTP Postfix
SMTP send:
Reply: 220 relay.myisp.com ESMTP Postfix
SMTP send: EHLO mydomain.com
...
Best regards,
Tom
|
|
|
|
|
How to use TLS over SMTP
By: Shwetha on Sat, 06 February 2016 12:55
|
|
|
Re: How to use TLS over SMTP
By: mirek on Sun, 07 February 2016 07:08
|
|
|
Re: How to use TLS over SMTP
By: Tom1 on Fri, 12 May 2017 17:37
|
|
|
Re: How to use TLS over SMTP
|
|
|
Re: How to use TLS over SMTP
|
|
|
Re: How to use TLS over SMTP
By: Klugier on Fri, 12 May 2017 22:42
|
|
|
Re: How to use TLS over SMTP
By: Tom1 on Sat, 13 May 2017 10:13
|
|
|
Re: How to use TLS over SMTP
|
|
|
Re: How to use TLS over SMTP
By: Tom1 on Sat, 13 May 2017 20:55
|
|
|
Re: How to use TLS over SMTP
By: Tom1 on Mon, 15 May 2017 09:22
|
|
|
Re: How to use TLS over SMTP
|
|
|
Re: How to use TLS over SMTP
By: Tom1 on Mon, 15 May 2017 11:06
|
|
|
Re: How to use TLS over SMTP
|
|
|
Re: How to use TLS over SMTP
By: Tom1 on Wed, 17 May 2017 10:05
|
|
|
Re: How to use TLS over SMTP
|
|
|
Re: How to use TLS over SMTP
By: mirek on Wed, 05 July 2017 12:15
|
Goto Forum:
Current Time: Fri Apr 19 14:49:58 CEST 2024
Total time taken to generate the page: 0.02591 seconds
|