Re: [twsocket] Datetime in mail headers
Hello! Do I need the MIME-Version, Content-Type and Content-Transfer-Encoding also or can it be left out ? There will be only plain text and never an attach. AFAIR if you won't put them in header, the default values should be assumed (respectively: 1.0, text/plain; charset=US-ASCII, 7bit) by the message parser. MailBody := 'Delivered-To: ' + EMail + #13#10 + 'Subject: ' + Subject + #13#10 + 'Date: ' + DT + #13#10 + 'MIME-Version: 1.0'#13#10 + 'Content-Type: text/plain; charset=us-ascii'#13#10 + 'Content-Transfer-Encoding: quoted-printable'#13#10 + 'From: ' + From + #13#10 + 'To: ' + DestName + #13#10#13#10 + Data; If you're using US-ASCII, consider using Content-Transfer-Encoding: 7bit. -- Piotr Hellrayzer Dalek Author of ICS-Based Hellcore Mailer - an Outlook Express killer http://www.hcm.prv.pl [EMAIL PROTECTED] -- Znajdz swoja milosc na wiosne... http://link.interia.pl/f187a -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re[2]: [twsocket] Datetime in mail headers
Hello Piotr, If you're using US-ASCII, consider using Content-Transfer-Encoding: 7bit. Yes at the moment. But later there will be mails with French and maybe German characters in it. So I assume I need the: 'Content-Transfer-Encoding: quoted-printable' Am I right here ? --- Rgds, Wilfried http://www.mestdagh.biz Wednesday, May 11, 2005, 01:01, Piotr Hellrayzer Da³ek wrote: Hello! Do I need the MIME-Version, Content-Type and Content-Transfer-Encoding also or can it be left out ? There will be only plain text and never an attach. AFAIR if you won't put them in header, the default values should be assumed (respectively: 1.0, text/plain; charset=US-ASCII, 7bit) by the message parser. MailBody := 'Delivered-To: ' + EMail + #13#10 + 'Subject: ' + Subject + #13#10 + 'Date: ' + DT + #13#10 + 'MIME-Version: 1.0'#13#10 + 'Content-Type: text/plain; charset=us-ascii'#13#10 + 'Content-Transfer-Encoding: quoted-printable'#13#10 + 'From: ' + From + #13#10 + 'To: ' + DestName + #13#10#13#10 + Data; If you're using US-ASCII, consider using Content-Transfer-Encoding: 7bit. -- Piotr Hellrayzer Dalek Author of ICS-Based Hellcore Mailer - an Outlook Express killer http://www.hcm.prv.pl [EMAIL PROTECTED] -- Znajdz swoja milosc na wiosne... http://link.interia.pl/f187a -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] Datetime in mail headers
Received: (qmail 31614 invoked from network); 6 May 2005 08:41:49 - Date: Fri, 6 May 2005 10:41:42 +0200 it is always in english (I mean the day and month). I need to make email headers but using the normal DateTimeToStr functions, depending on the country settings of the machine the day-name and month-name could be in other languages. Is this a problem for email readers ? If it is can I get the english names out of a windows call or should I make an array for it ? These headers are not supposed to be seen by the receiver. they're just control headers to trace all the SMTP servers it has been through. So the date and time format of these headers should not be modified nor seen, except as they are. I think, if it is to show the email date, you have a 'Date' header. HTH, Guillaume MAISON - Guillaume MAISON - [EMAIL PROTECTED] 83, Cours Victor Hugo 47000 AGEN Tél : 05 53 87 91 48 - Fax : 05 53 68 73 50 e-mail : [EMAIL PROTECTED] - Web : http://nauteus.com -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re[2]: [twsocket] Datetime in mail headers
Hello Guillaume, they're just control headers to trace I think, if it is to show the email date, you have a 'Date' header. You right, I dont need them. Only the 'Date:' header to let display the datetime in mail reader. I want to make the headers as minimal as possible. Do I need the MIME-Version, Content-Type and Content-Transfer-Encoding also or can it be left out ? There will be only plain text and never an attach. MailBody := 'Delivered-To: ' + EMail + #13#10 + 'Subject: ' + Subject + #13#10 + 'Date: ' + DT + #13#10 + 'MIME-Version: 1.0'#13#10 + 'Content-Type: text/plain; charset=us-ascii'#13#10 + 'Content-Transfer-Encoding: quoted-printable'#13#10 + 'From: ' + From + #13#10 + 'To: ' + DestName + #13#10#13#10 + Data; --- Rgds, Wilfried http://www.mestdagh.biz Monday, May 9, 2005, 09:45, Guillaume MAISON wrote: Received: (qmail 31614 invoked from network); 6 May 2005 08:41:49 - Date: Fri, 6 May 2005 10:41:42 +0200 it is always in english (I mean the day and month). I need to make email headers but using the normal DateTimeToStr functions, depending on the country settings of the machine the day-name and month-name could be in other languages. Is this a problem for email readers ? If it is can I get the english names out of a windows call or should I make an array for it ? These headers are not supposed to be seen by the receiver. they're just control headers to trace all the SMTP servers it has been through. So the date and time format of these headers should not be modified nor seen, except as they are. I think, if it is to show the email date, you have a 'Date' header. HTH, Guillaume MAISON - Guillaume MAISON - [EMAIL PROTECTED] 83, Cours Victor Hugo 47000 AGEN Tél : 05 53 87 91 48 - Fax : 05 53 68 73 50 e-mail : [EMAIL PROTECTED] - Web : http://nauteus.com -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be