Corrupt emails when using multipart content types

I am running Exchange 2003 with latest SPs and am running into a very 
strange problem.  When we receive certain emails, the contents of the 
messages have been corrupted.  Exclamation points (!) seem to appear 
randomly in the text (usually an exclamation point followed by a space).

The messages both contain HTML and TEXT content, the header is:

Content-Type: multipart/alternative;
 boundary="----=_NextPart_000_365D_01C59758.21CA9D10"

The text version content type is:

------=_NextPart_000_365D_01C59758.21CA9D10
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

The HTML version of the content type is:


------=_NextPart_000_365D_01C59758.21CA9D10
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

The corruption only occurs in the HTML part and can occur anywhere (e.g. in 
the middle of an HTML element name).  The emails are being sent from a .NET 
application on a remote host (from the Microsoft SMTP service directly to 
our Exchange server).

This only seems to be happening with our Exchange server.  I can send the 
exact same message to a colleague's Exchange server (different company) and 
it works fine.

Is there some strange encoding translation going on?   There's nothing 
special about the way we send the email as the application was built using 
the standard .NET mail classes (SmtpMail and MailMessage)



0
webview (4)
8/18/2005 6:28:48 PM
exchange.admin 57650 articles. 2 followers. Follow

4 Replies
339 Views

Similar Articles

[PageSpeed] 15

"Tim Mavers" <webview@hotmail.com> wrote:

>I am running Exchange 2003 with latest SPs and am running into a very 
>strange problem.  When we receive certain emails, the contents of the 
>messages have been corrupted.  Exclamation points (!) seem to appear 
>randomly in the text (usually an exclamation point followed by a space).
>
>The messages both contain HTML and TEXT content, the header is:
>
>Content-Type: multipart/alternative;
> boundary="----=_NextPart_000_365D_01C59758.21CA9D10"
>
>The text version content type is:
>
>------=_NextPart_000_365D_01C59758.21CA9D10
>Content-Type: text/plain;
> charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
>The HTML version of the content type is:
>
>
>------=_NextPart_000_365D_01C59758.21CA9D10
>Content-Type: text/html;
> charset="iso-8859-1"
>Content-Transfer-Encoding: 7bit
>
>The corruption only occurs in the HTML part 

Are you sure it doesn't appear in the original message? The text/html
is being sent in 7-bit format and shouldn't need any translation at
all.

You should be able to grab a copy of the message from the relay server
being used by the application.

>and can occur anywhere (e.g. in 
>the middle of an HTML element name).  The emails are being sent from a .NET 
>application on a remote host (from the Microsoft SMTP service directly to 
>our Exchange server).
>
>This only seems to be happening with our Exchange server.  I can send the 
>exact same message to a colleague's Exchange server (different company) and 
>it works fine.

Are there any other relays or proxies between you and that application
that aren't between the application and the other mail systems?

>Is there some strange encoding translation going on?   

Not with a MIME content-type of "text/plain". The "quoted/printable"
transfer type, maybe. :)

>There's nothing 
>special about the way we send the email as the application was built using 
>the standard .NET mail classes (SmtpMail and MailMessage)

Do you get the same results if you use some other e-mail client to
read the message? You should be able to see the raw message by just
using telnet on port 110 and RETR the message. If the funky stuff
isn't in the raw message then maybe it's the client and not the serer
that's got the problem.

-- 
Rich Matheisen
MCSE+I, Exchange MVP
MS Exchange FAQ at http://www.swinc.com/resource/exch_faq.htm
Don't send mail to this address mailto:h.pott@getronics.com
0
richnews (7316)
8/18/2005 8:26:06 PM
"Rich Matheisen [MVP]" <richnews@rmcons.com.NOSPAM.COM> wrote in message 
news:s5r9g1hfagd7i0mikfhor2pooqeoaj79s4@4ax.com...
> Are you sure it doesn't appear in the original message? The text/html
> is being sent in 7-bit format and shouldn't need any translation at
> all.

Yes, I am positive.  I have cc'd the email to multiple recipients (one on a 
different exchange server in a different company and one to a gmail account) 
and both look fine.  I also inspected the outgoing SMTP message itself and 
there aren't any weird symbols.

The weird characters always start with an exclamation point (!)   I wonder 
if something is thinking it is DBCS or something dealing with 
quoted-printable.

I don't know why the .NET SmtpMail class uses encoding: 7bit for HTML 
payloads.

> Are there any other relays or proxies between you and that application
> that aren't between the application and the other mail systems?

The only thing is anti-spam filtering of some sort (Intellireach for 
Exchange).  I don't have control over that and am still in the process of 
tracking down the details.



0
webview (4)
8/18/2005 9:28:10 PM
Actually I believe it is always exclamation point followed by a space.
"Tim Mavers" <webview@hotmail.com> wrote in message 
news:9_-dncfCGqX3YJneRVn-hw@giganews.com...
> "Rich Matheisen [MVP]" <richnews@rmcons.com.NOSPAM.COM> wrote in message 
> news:s5r9g1hfagd7i0mikfhor2pooqeoaj79s4@4ax.com...
>> Are you sure it doesn't appear in the original message? The text/html
>> is being sent in 7-bit format and shouldn't need any translation at
>> all.
>
> Yes, I am positive.  I have cc'd the email to multiple recipients (one on 
> a different exchange server in a different company and one to a gmail 
> account) and both look fine.  I also inspected the outgoing SMTP message 
> itself and there aren't any weird symbols.
>
> The weird characters always start with an exclamation point (!)   I wonder 
> if something is thinking it is DBCS or something dealing with 
> quoted-printable.
>
> I don't know why the .NET SmtpMail class uses encoding: 7bit for HTML 
> payloads.
>
>> Are there any other relays or proxies between you and that application
>> that aren't between the application and the other mail systems?
>
> The only thing is anti-spam filtering of some sort (Intellireach for 
> Exchange).  I don't have control over that and am still in the process of 
> tracking down the details.
>
>
> 


0
webview (4)
8/18/2005 9:34:10 PM
"Tim Mavers" <webview@hotmail.com> wrote:

>"Rich Matheisen [MVP]" <richnews@rmcons.com.NOSPAM.COM> wrote in message 
>news:s5r9g1hfagd7i0mikfhor2pooqeoaj79s4@4ax.com...
>> Are you sure it doesn't appear in the original message? The text/html
>> is being sent in 7-bit format and shouldn't need any translation at
>> all.
>
>Yes, I am positive.  I have cc'd the email to multiple recipients (one on a 
>different exchange server in a different company and one to a gmail account) 
>and both look fine.  I also inspected the outgoing SMTP message itself and 
>there aren't any weird symbols.

Then I guess it's time to inspect the contents of the message are it
arrives at the Eschange server. :) Time for a network monitor.

>The weird characters always start with an exclamation point (!)   I wonder 
>if something is thinking it is DBCS or something dealing with 
>quoted-printable.

The HTML portion of the message was in text/plain. The text portion
was in quoted/printable.

>I don't know why the .NET SmtpMail class uses encoding: 7bit for HTML 
>payloads.

Probably because that's all that's needed. Unless there's 8-bit
characters in the MIME body part there's no need to use anything else.

>> Are there any other relays or proxies between you and that application
>> that aren't between the application and the other mail systems?
>
>The only thing is anti-spam filtering of some sort (Intellireach for 
>Exchange).  I don't have control over that and am still in the process of 
>tracking down the details.

That's where the network monitor will come in handy. You already know
the message arrives there in a usable format. What you need to do is
verify that it leaves there the same way it went in!

-- 
Rich Matheisen
MCSE+I, Exchange MVP
MS Exchange FAQ at http://www.swinc.com/resource/exch_faq.htm
Don't send mail to this address mailto:h.pott@getronics.com
0
richnews (7316)
8/19/2005 12:53:14 AM
Reply:

Similar Artilces:

How can I email an excel file using my outlook contacts?
"cheflady" <cheflady@discussions.microsoft.com> wrote in message news:F9C13E60-150D-4F03-B519-A8769F08CD0F@microsoft.com... > > <sigh> Please use the big white space to write your question........ exactly the same way you email ANY file..... go to file\send\mail recipient( as attachment) "Gordon" wrote: > "cheflady" <cheflady@discussions.microsoft.com> wrote in message > news:F9C13E60-150D-4F03-B519-A8769F08CD0F@microsoft.com... > > > > > > > <sigh> Please use the big white space to write you...

"Registered File Types" "Opens with" What if a common type is not "registered?" Advanced?
I sent a family member as short MPG file (<1MB) as an attachment to an e-mail. He could not open it. I told him to search for some other MPG file that might be on his HD, and see if it opened. He said the found file opened with Real Player. But it seems that there is no obvious way to choose which app opens an attachment. He and I apparently have different MPG-2 decoders, and trying to walk him thru it with my having what must be different versions of apps and utilities and plug-ins was a failure. So I phoned him and thought that I would have him set Windows Media Player ...

Use crm?
I would like to know what Microsoft product(s) would be could used for the following results and what the price of the recommended product would be: I work for a small company that would like to keep track of the following: 1. the workload of each employee, 2. how many hours are assigned to each each employee for a project, 3. How many hours each employee have spent on each project, 4. A way to tell if an employee is on track for meeting the project deadlines, 5. A way to tell an employee how many hours they should be working on each project they are assigned to. 6. A way to...

Changing Function to use a Date Input
Hi. can anyone please advise me on how to change the function keys.. sa F10, F11 & F12 to use to input a date into a cell. EG. F10 to be 01/01/04 F11 to be 02/01/04 F12 to be 03/01/04 What I require is to go to any cell and press the relevant function ke to Input the associated date Any help would be greatly appreciate Many thank Rob PS using Excel 200 -- Message posted from http://www.ExcelForum.com First, I'm not sure if you entered Jan 1, 2004, Feb 1, 2004, and Mar 1, 2004 or Jan 1st-3rd, 2004. Here are a couple of macros. The first turns this on, the second turns it...

Can't send email. Error msg: can't connect to outgoing SMTP serve
Setting up existing email account on Outlook. I can receive but not send messages. I use IMAP but error msg says Outlook is unable to connect to outgoing SMTP server. "Scott" <Scott@discussions.microsoft.com> wrote in message news:84E21E60-359D-413B-95BF-F81BBBA248CE@microsoft.com... > Setting up existing email account on Outlook. I can receive but not send > messages. I use IMAP but error msg says Outlook is unable to connect to > outgoing SMTP server. Well, IMAP is only how you access your mailbox, not how you send email. that uses SMTP. Have you ever bee...

forwording email with only my email address
when forwording email-how can I send it with my email address only, when I get one that was forworded to me? On Wed, 31 Mar 2010 10:29:02 -0700, email wrote: > when forwording email-how can I send it with my email address only, when I > get one that was forworded to me? You have posted this question to the wrong newsgroup. The access in this groups title refers to Microsoft Access, a database program. Please repost to the correct newsgroup for the E-mail program you are using. I would suggest you include your Windows and Office version number in your message. It might m...

Inbound Email 01-15-07
Hello, I have created an Auto-Reply rule from when cases get created. If a user eplies to the email, I would like it to get recorded back into the CRM, I beleieve this is possible. As there any configurations that need to happen to do this? When I reply it goes to the case owner like a normal email but does not go to the CRM as well. Thank you, Ray Not my strongest area of CRM but I believe you need a rule that forwards your mail to the CRM Mailbox. -- Rgds Michael MCDBA 2000 | MCITP DBA 2005 "rhayward@isdweb.com" wrote: > Hello, > > I have created an Auto-Rep...

tender using outside gift card
Hi, does anyone know how to 'pass' the transaction total to an outside exe or dll? we are trying to process the transaction with a gift card (not an internal gift card, this GC is another company who wants to 'share' the gift card balance). basically RMS needs to pass the transaction total to the exe (or dll) which will query the balance of the gift card (over the internet and/or local DB). the exe/dll will query its database and return a yes or no to RMS any help would be appreciated. scott@kanesvending.com -- Walt You use what's called a "Hook" function t...

Logon with email address?
Hi all.. I have Exchange 2003 working with OWA etc but when people log into their accounts, they use some crazy username that I setup and a password. Is there a way for people to log into OWA with just their email address? I'm using Exchange to host my web hosting domains, not for corporate. So there are multiple domains on here. Any thoughts? Thanks Create a UPN alias that matches their email address. Nue "mikeyatsony" <mikeyatsony@gmail.com> wrote in message news:1148576206.147397.32140@j55g2000cwa.googlegroups.com... > Hi all.. > I have Exchange 2003 working...

Transferring data between worksheets using Sheet Command?
Hi for an assignment i have to enter grades for 200 students in 4 subjects. there is a front summary sheet that contains all the subjects and all the students and their overall grade GPA etc.. anyway this summary sheet has to be populated automatically from the individual math, english etc.. worksheets. The guide says to do it using the 'sheet command' any help greatly appreciated. Thanks ...

How can MAPI VB set the "From" Email addr in Outlook/Outlook
I have a VB5 Program that sends Emails to customers from various salespeople. If I change either Outlook or Outlook Express to have a different email address for each salesperson, how can I automatically insert the salesperson's Email address in the "From" Address in the Email automatically generated by my VB program. Currently the "From" email address is determined by whoever logged onto either Outlook/Outlook Express last. Also, I want Outlook to immediately send the Email without waiting for someone to log onto Outlook and click the Send/Receive bu...

user-defined data type capabilities
It seems I use Microsoft Visual Basic 6.5 from Microsoft Excel 2003. I've just introduced my first user-defined data type (UDT) to a module. I found it greatly simplified passing parameters. Private Type Journey Depart As String Arrive As String End Type What can I do with such UDTs? 1) Declare functions and scalar, array, and parameter variables. 2) Assign e.g. Dim A as UDT, B as UDT: A = B 3) Not compare variables. e.g. if UDT0 = UDT1 ... gets an error. What else can UDTs be used for? When, in the Visual Basic Editor (VBE), I hover over code referencing a v...

Using 'Add to Favourites' option on a shared calendar not working
In Outlook 2007 we have a few users who are unable to add a shared calendar to their Calendars->Other Calendars list. The steps that work on a mojority of computers are: 1. Go->Folder List. 2. Navigate to Public Folders->All Public Folders->...->Communal Calendar. 3. Right Click on Communal Calendar and select 'Add to Favourites'. 4. Click OK on 'Add to Favourites' dialog. 5. Go->Calendar and the calendar should have appeared under 'Other Calendars' list. However, in a few cases when OK is clicked in step 4 the calendar never appears in...

User-Defined type not defined
hello I use ACCESS 2000. I'd like to run the following code borrowed from one of the Access user sites, but compiling fails at the Dim statement. ("User-defined type not defined") Private Sub ListAvailPrinters() Dim prn As Printer For Each prn In Application.Printers Debug.Print prn.DeviceName & " on " & prn.Port Next prn End Sub I suspect a Reference Library is not installed, but I'm not sure which one I need. I currently have the following Reference Libraries: Visual Basic For Applications Microsoft Acce...

Winmail.Dat Being Created On Plain Text Emails
I am running Outlook 2003 with all the updates and I am having a winmail.dat file created on every email that I send even the ones in Plain Text. Are there other settings that I need to make in Outlook to stop this from happening? Thanks. Rick Bellefond RB Data Services www.rbdata.com Try turning off Word as your e-mail editor to see if it stops. (See Tool > Options > Mail Format tab) If Word is off, go to Tools > Options > Mail Format tab > Internet Options. Make sure the dropdown in the middle of the dialog is not set to Outlook Rich Text. Check the e-mail address...

MS Publisher 2003 wont let me send publication in email message.
I'm trying to send a document in the body of an email but all the tutorials I've tried aren't working. I've changed to TIFF, and pdf both unsuccessfully. I would just like to find a way to get to <File><Send email><Send E-Mail as Message>, instead of <Send E-mail as Attachment>. Any help is great Reference: Tips and troubleshooting for sending a publication page as an e-mail message: http://office.microsoft.com/en-us/publisher/HP010390591033.aspx?pid=CH062524821033 Attaching the publication as a PDF is usually the easiest and best way. DavidF ...

Forwarded Email
When I create a file in publisher and forward it to receipients, it works great! But when they forward it to someone else, it get jumbled. Is there any solution to this? Thanks! Are you sending as an attachment? If your recipients have Publisher, it will work "great." You have to have Publisher in order to open a Publisher file, otherwise it gets "jumbled." Might think about a PDF. -- Mary Sauer MSFT MVP http://office.microsoft.com/ http://msauer.mvps.org/ news://msnews.microsoft.com "Jdchouse" <Jdchouse@discussions.microsoft.com> wrote in message ne...

Outlook 2002 as default email
How do I change my setup for Outlook 2002 so it is the default email? I recently switched from Outlook Express to Outlook, but Express remains the default email. Change it in Control Panel | Internet Options | Programs tab. -- Jocelyn Fiorello MVP - Outlook *** Messages sent to my e-mail address will NOT be answered -- please reply only to the newsgroup to preserve the message thread. *** In news:110d01c3a89b$0559bbf0$a001280a@phx.gbl, Ron wrote: > How do I change my setup for Outlook 2002 so it is the > default email? I recently switched from Outlook Express > to Outlook, bu...

Outlook
We have a user that gets a ton of emails with atachments for his job (corp project manager) and we are having a devil of a time trying to help him. Within a few months, his PST will become so large (reaching the 2 GIG limit in Outlook 2000. We can't use Outlook 2003 because we have Exchange 5.5 and our exchange admin is not ready for Outlook 2003) that we have to try to archive out his PST and create a new one for him. The problem is that he has quite a number of folders that he LIKES to keep when we archive his PST. So we can't simply make a template PST as he modifies the fol...

Journal Entry Types
When I am working in a journal entry and go to select the Entry Type it seems that some of the types or missing. For example e-mail messge, note, document, or all not there anymore. Is there any way to add entry types? ...

How to use this DeleteEMFs() Macro
This macro was on the MicroSoft website as a work around for the .emf storage problem http://support.microsoft.com/default.aspx?scid=kb;en-us;299372 What exactly does this macro do and how should I use it? I want to remove all the .emf files from a particular Excel File. B/c the workbook creates hundreds or thousands of temp .emf files everytime it opens and it takes forever to open.. Thank you very much for any help! george Private Sub Workbook_Open() Call DeleteEMFs End Sub Private Sub DeleteEMFs() Dim fso As Variant Set fso = CreateObject("Scripting.FileSystemObject"...

CALCULATING DEPRECIATION USING ACCESS
HOW DO I DO IT? Why don't you ask the Access newsgroup instead of the Microsft CRM ng? -- Brandon IT Director Office Equipment & Supplies at http://www.presentationsdirect.com "PATRICK" <PATRICK@GLWHOLESALE.COM> wrote in message news:026d01c352d1$755a23b0$a101280a@phx.gbl... > HOW DO I DO IT? ...

Opening attachements from emails in outlook express
Outlook express is blocking access to all attachements on my emails even those that I know are 100% bona fide. I get the message "OE removed access to the following unsafe attachments" next to the paperclip icon. I only set this up to receive my emails recently so may have made a mistake in the set up. Any ideas??? Thanks David Deal "David Deal" <anonymous@discussions.microsoft.com> wrote in message news:022301c3b2bc$4c78b240$a401280a@phx.gbl... > Outlook express is blocking access to all attachements on > my emails even those that I know are 100% bo...

Email file does not retain same page content
The receiver of the email receives it with page 1 contents flowing onto page 2 . Page 2 picks up at end of the overflow and so on... Submitted via EggHeadCafe - Software Developer Portal of Choice BizTalk: Incorporating conditional If / Else Functoid Logic in a map. http://www.eggheadcafe.com/tutorials/aspnet/f6fc20ab-5c6a-4f04-8a0b-bba39e4bbcf0/biztalk-incorporating-co.aspx <Jetty donaldson> wrote in message news:2010416115618jetreal@cox.net... > The receiver of the email receives it with page 1 contents flowing onto page > 2 . Page 2 picks up > at end of t...

Email Id and Pass everytime I send/receive?
Everytime I send and receive email in Outlook it prompts me for my server id and password. I input my pass and then click remember pass but it does not remember the pass thus prompting me everytime I hit send and receive. I do not experience this issue with Outlook Express. Any thoughts on how I can resolve this issue with Outlook? ANY FEEDBACK WOULD BE GREATLY APPRECIATED :-) There have been several recent issues with passwords not being retained with Outlook. If you're running Outlook 2002, the SP1 solves many of these, so start there. If not, here are some other solutions:...