Yes. I tested two different servers actually. One of them is really basic so I 
dont care it that much but another server, SmarterMail is more professional 
edition and it sends it emails anyway as you said. I will look this in more 
deeply and inform you about if there is an alternative solution independent 
from cUrl.

Thanks for your quick answers all

> Date: Mon, 19 Dec 2011 13:11:34 +0100
> From: [email protected]
> To: [email protected]
> Subject: RE: Cancelling Mail Request
> 
> On Mon, 19 Dec 2011, Nazim Oztahtaci wrote:
> 
> > Actually when I read about this functionality on the previous 
> > implementations, I see that it is close to what we are doing. When I look 
> > the packages from Wireshark, I see that when we do not send any QUIT 
> > message 
> > to server, we close the connection in the middle and as I know if that 
> > happens Smtp server should skip this mail request. Am I right?
> 
> I wouldn't be surprised if there are servers who would send it off anyway, 
> but 
> the SMTP spec in RFC 2821 section 4.1.1.10 for QUIT is quite clear:
> 
>     The sender MUST NOT intentionally close the transmission
>     channel until it sends a QUIT command and SHOULD wait until it
>     receives the reply (even if there was an error response to a previous
>     command).  If the connection is closed prematurely due to violations
>     of the above or system or network failure, the server MUST cancel any
>     pending transaction
> 
> -- 
> 
>   / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette:  http://curl.haxx.se/mail/etiquette.html
                                          
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to