Browse Source

Small fixes

Pascal Peridont 18 years ago
parent
commit
4a54b9a4f2
2 changed files with 2 additions and 2 deletions
  1. 1 1
      std/mtwin/mail/Part.hx
  2. 1 1
      std/mtwin/mail/Smtp.hx

+ 1 - 1
std/mtwin/mail/Part.hx

@@ -140,7 +140,7 @@ class MetaPart<T> {
 
 	public function setDate( ?d : Date ){
 		if( d == null ) d = Date.now();
-		setHeader("Date",DateTools.format(d,"%a, %e %b %Y %H:%M:%S %z"));
+		setHeader("Date",DateTools.format(d,"%a, %d %b %Y %H:%M:%S %z"));
 	}
 
 	public function setContentId( ?cid : String ) : String {

+ 1 - 1
std/mtwin/mail/Smtp.hx

@@ -45,7 +45,7 @@ class Smtp {
 
 		// get server init line
 		var ret = StringTools.trim(cnx.input.readLine());
-		if ( StringTools.endsWith(ret, "ESMTP" ) ) { //if server support extensions
+		if ( ret.indexOf("ESMTP") != -1 )  { //if server support extensions
 			//EHLO
 			cnx.write( "EHLO " + Host.localhost() + "\r\n");
 			ret = "";