Author |
|
sbirrigui Newbie
Joined: 10 March 2009 Location: Uruguay
Online Status: Offline Posts: 1
|
Posted: 10 March 2009 at 7:38am | IP Logged
|
|
|
I wrote this code...
Dim smtp As MailBee.SmtpMail.Smtp = New Smtp
smtp.Message.Subject = "Cursos: Mandos Medios, Logística, RRHH, Comercialización, Producción, Comercio Exterior"
smtp.Message.EncodeAllHeaders(Encoding.GetEncoding("ISO-8859 -1"), HeaderEncodingOptions.None)
The results is:
=?iso-8859-1?Q?A=F1o_2009_-_Avi=F3n_Boing_707_-_This_is_a_te st_of_a_large_subject_with_NON_ASCII_chars.?=
but in Outlook the some subject is...
=?iso-8859-1?Q?A=F1o_2009_-_Avi=F3n_Boing_707_-_This_is_a_te st_of_a_large?=
=?iso-8859-1?Q?_subject_with_N ON_ASCII_chars.?=
The second encode subject is the correct.
The length of the case should not be coded more than 76.
Is not it?
Thanks
José
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 11 March 2009 at 5:58am | IP Logged
|
|
|
It's not vitally to be not more than 76 chars length. It just shouldn't be too long (e.g. 2KB of text in a single line). MailBee.NET Objects doesn't split the lines in the middle of words because we encountered some mailers which don't like that and insert spaces in the middle of the words on joining the line parts. It's the lesser of two evils from our point of view.
Best regards,
Andrew
|
Back to Top |
|
|