Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: SMTP Encode Headers Length Problem Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
sbirrigui
Newbie
Newbie
Avatar

Joined: 10 March 2009
Location: Uruguay
Online Status: Offline
Posts: 1
Posted: 10 March 2009 at 7:38am | IP Logged Quote sbirrigui

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 View sbirrigui's Profile Search for other posts by sbirrigui
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 11 March 2009 at 5:58am | IP Logged Quote Andrew

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 View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide