Commit 33f631ba authored by Nickilo's avatar Nickilo

Compatibilité des mails avec HotMail lorsqu'il n'y a pas de reply-to

parent 960e2a92
......@@ -377,16 +377,6 @@ void appli (char *login,char *pass, char *from, char *to, char *reply, char *sub
toone=strtok(NULL,";");
}
sendsmtp("DATA\n");
// le sujet
writen(to_server_socket,"Subject: ",strlen("Subject: "));
writen(to_server_socket,subject,strlen(subject));
writen(to_server_socket,"\r\n",strlen("\r\n"));
// envoi du reply
if (strlen(reply) > 5) {
writen(to_server_socket,"Reply-To: ",strlen("Reply-To: "));
writen(to_server_socket,reply,strlen(reply));
writen(to_server_socket,"\r\n",strlen("\r\n"));
}
if (! INI_BOOL("mail_php.enable_headers")) {
// le from
......@@ -397,6 +387,26 @@ void appli (char *login,char *pass, char *from, char *to, char *reply, char *sub
writen(to_server_socket,"To: ",strlen("To: "));
writen(to_server_socket,to,strlen(to));
writen(to_server_socket,"\r\n",strlen("\r\n"));
//writen(to_server_socket,"Date: 26 juillet 2010 22:08:31 HAEC\r\n",strlen("Date: 26 juillet 2010 22:08:31 HAEC\r\n"));
// le sujet
writen(to_server_socket,"Subject: ",strlen("Subject: "));
writen(to_server_socket,subject,strlen(subject));
writen(to_server_socket,"\r\n",strlen("\r\n"));
// envoi du reply
if (strlen(reply) > 5) {
writen(to_server_socket,"Reply-To: ",strlen("Reply-To: "));
writen(to_server_socket,reply,strlen(reply));
writen(to_server_socket,"\r\n",strlen("\r\n"));
// Pour HOTMAIL il faut envoyer dans tous les cas un Return Path
writen(to_server_socket,"Return-Path: ",strlen("Return-Path: "));
writen(to_server_socket,reply,strlen(reply));
writen(to_server_socket,"\r\n",strlen("\r\n"));
} else {
// Pour HOTMAIL il faut envoyer dans tous les cas un Return Path
writen(to_server_socket,"Return-Path: ",strlen("Return-Path: "));
writen(to_server_socket,from,strlen(from));
writen(to_server_socket,"\r\n",strlen("\r\n"));
}
//FERMETURE HEADER
writen(to_server_socket,"\r\n",strlen("\r\n"));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment