Author |
|
tim Newbie
Joined: 01 June 2007 Location: Denmark
Online Status: Offline Posts: 31
|
Posted: 08 April 2008 at 5:55am | IP Logged
|
|
|
I'm doing a oMSG.EncodeHeaderText(HeaderName, HeaderText, 'iso-8859-1', 2) on the FROM field.
If I encode this:
"C.Travel (Customer DEB0062) cw@cronustravel.com"<accounting@matriks.com>
I get this:
From: =?iso-8859-1?Q?"Cronus_Travel__(Customer_DEB0062)_c?=
=?iso-8859-1?Q?w@cronustravel. com"?=<accounting@matriks.com>
and it does not display correctly in outlook 2007.
If I encode this (removing the "):
C.Travel (Customer DEB0062) cw@cronustravel.com<accounting@matriks.com>
I get this:
From: =?iso-8859-1?Q?C.Travel__(Customer_DEB0062)_cw@cron?=
=?iso-8859-1?Q?ustravel.com?=& lt;accounting@matriks.com>
and it displays correctly in outlook 2007
I'm using 5.5.0.121.
Any ideas? Are the "'s safe to omit?
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 08 April 2008 at 6:09am | IP Logged
|
|
|
Yes, it's safe to omit quotes. Moreover, we recommend you to reduce friendly name length because some mail clients may process lengthy friendly names incorrectly.
Best regards,
Andrew
|
Back to Top |
|
|
tim Newbie
Joined: 01 June 2007 Location: Denmark
Online Status: Offline Posts: 31
|
Posted: 08 April 2008 at 6:27am | IP Logged
|
|
|
Andrew wrote:
Yes, it's safe to omit quotes. Moreover, we recommend you to reduce friendly name length because some mail clients may process lengthy friendly names incorrectly.
Best regards,
Andrew |
|
|
However,
I put a , in the name like
"Cronus Travel, Inc. (Customer DEB0062) cw@cronustravel.com" the " is NOT safe to omit. Then the friendly name is omitted completely.
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 08 April 2008 at 6:37am | IP Logged
|
|
|
Of course if a friendly name contains a comma, omitting quotes is not safe. In such case you should use a short friendly name with quotes. If you use a long friendly name, the resulting string may be longer than 76 chars and so it'll be split to some lines according to MIME standard, but some mailers would have troubles with this.
Best regards,
Andrew
|
Back to Top |
|
|
tim Newbie
Joined: 01 June 2007 Location: Denmark
Online Status: Offline Posts: 31
|
Posted: 08 April 2008 at 6:49am | IP Logged
|
|
|
Hmm. Dont know what to do then. Currently I cannot determine if it is your encode or outlook 2007's presentation that is flawed. Sometimes it works. Sometimes it fails. Very annoying.
|
Back to Top |
|
|
iconbill Valued Community Member
Joined: 07 March 2007 Location: Netherlands
Online Status: Offline Posts: 76
|
Posted: 08 April 2008 at 7:08am | IP Logged
|
|
|
Hi Tim,
I advise you to receive your test messages in different emailprograms because sometimes they have indeed problems with messages. (Outlook POP, G-Mail, Hotmail, Thunderbird).
ps Outlook 2003 IMAP is not working at all with international mails here
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 08 April 2008 at 10:34am | IP Logged
|
|
|
We made another fix to the logic so that it can now produce lines with more than 76 characters. Although this is violation of MIME, it seems to be less evil than Outlook limitations.
You can get the update from http://www.afterlogic.com/updates/mailbee.zip
Regards,
Alex
|
Back to Top |
|
|
tim Newbie
Joined: 01 June 2007 Location: Denmark
Online Status: Offline Posts: 31
|
Posted: 09 April 2008 at 1:07am | IP Logged
|
|
|
Alex wrote:
We made another fix to the logic so that it can now produce lines with more than 76 characters. Although this is violation of MIME, it seems to be less evil than Outlook limitations.
You can get the update from http://www.afterlogic.com/updates/mailbee.zip
Regards,
Alex |
|
|
Great stuff!
I'll take it for a spin ;-)
|
Back to Top |
|
|
tim Newbie
Joined: 01 June 2007 Location: Denmark
Online Status: Offline Posts: 31
|
Posted: 09 April 2008 at 1:34am | IP Logged
|
|
|
iconbill wrote:
Hi Tim,
I advise you to receive your test messages in different emailprograms because sometimes they have indeed problems with messages. (Outlook POP, G-Mail, Hotmail, Thunderbird).
ps Outlook 2003 IMAP is not working at all with international mails here |
|
|
Yes, I normally test with outlook 2007 and gmail, and gmail seems to be the most compliant/forgiving of the 2.
However, our product (http://www.matriks.com/docs/ENU-Matriks-Mail-110-Fact-Sheet .pdf) typically needs to work with outlook since this is what this particular userbase employs. *sigh*
|
Back to Top |
|
|
tim Newbie
Joined: 01 June 2007 Location: Denmark
Online Status: Offline Posts: 31
|
Posted: 09 April 2008 at 1:35am | IP Logged
|
|
|
Sorry, fixed link
|
Back to Top |
|
|
tim Newbie
Joined: 01 June 2007 Location: Denmark
Online Status: Offline Posts: 31
|
Posted: 09 April 2008 at 2:10am | IP Logged
|
|
|
Btw, I cannoit regsvr32 this build. Gives me an DLLRegisterserver initialize error
|
Back to Top |
|
|
tim Newbie
Joined: 01 June 2007 Location: Denmark
Online Status: Offline Posts: 31
|
Posted: 09 April 2008 at 2:25am | IP Logged
|
|
|
Ok,
I gmail it shows ok:
From: =?iso-8859-1?Q?"Cronus_Travel,_Inc.__(Customer_DEB0062)_cw@c ronustravel.com"?=<accounting@matriks.com>
I outlook 2007 it does not:
From: =?iso-8859-1?Q?"Cronus_Travel,_Inc.__(Customer_DEB0062)_cw@c ronustravel.com"?=<accounting@matriks.com>
But at least the string looks a lot simpler now, even though the result is the same.
Suppose I just have to shorten string somehow. This seems to be the only way to make outlook 2007 perform ok.
|
Back to Top |
|
|
tim Newbie
Joined: 01 June 2007 Location: Denmark
Online Status: Offline Posts: 31
|
Posted: 09 April 2008 at 2:43am | IP Logged
|
|
|
I think I cracked it. Outlook 2007 is not sensitive to the friendly name lenghts I've been throwing at it.
It is sensitive to commas in long strings.
And it is sensitive to @'s even in short friendly names.
So no commas and @ it is then.
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 09 April 2008 at 5:58am | IP Logged
|
|
|
Quote:
Btw, I cannoit regsvr32 this build. Gives me an DLLRegisterserver initialize error |
|
|
Were you able to resolve this? We've just successfully registered the new .dll again on several machines.
Best regards,
Andrew
|
Back to Top |
|
|
tim Newbie
Joined: 01 June 2007 Location: Denmark
Online Status: Offline Posts: 31
|
Posted: 10 April 2008 at 2:26am | IP Logged
|
|
|
Andrew wrote:
Quote:
Btw, I cannoit regsvr32 this build. Gives me an DLLRegisterserver initialize error |
|
|
Were you able to resolve this? We've just successfully registered the new .dll again on several machines.
Best regards,
Andrew |
|
|
I just re-built my setup.exe with the new dll and installed it that way.
|
Back to Top |
|
|