Page 1 of 1

EMail Multi-part MIME recently starts failing.

Posted: Thu Jun 22, 2006 4:34 am
by CoderGoblin
Hello all,

Performed a search on the forum but cannot find anything and have investigated on my own but cannot find anything wrong.

I have recently started looking at a problem reported with email sending. The php code for email has been used for ages without any change and only recently have we received notice that some users (I think, but can not confirm, using only Microsoft Outlook on Windows) now get email showing only "This is a multi-part message in MIME format". Using thunderbird and other mail clients seem to work with no problem. As this error has (to our knowlege) only recently started to occur so the real question I guess is...

QUESTION1 : Is there any Microsoft Update that modified Outlook Mail processing and possibly broke it according to what we use...

QUESTION2: does anyone know of an "MIME validator" or other debugging tool which I could pass mail messages through to see if they are correct and highlight potential problems when I get tasked with investigating this kind of problem ?

I have included the top of the MIME for informational use <!-- --> are used as placeholders only for display here. The actual mail is far longer and includes HTML, images etc.

Code: Select all

Return-Path: <!-- siteadmin -->
Received: from mail3.<!-- mailserver --> ([unix socket])
	 by mail3 (Cyrus v2.2.9) with LMTPA;
	 Wed, 21 Jun 2006 17:15:45 +0200
X-Sieve: CMU Sieve 2.2
Received: from <!-- mailserver --> (<!-- mailserver --> [<!-- ip_address -->])
	by <!-- mailserver --> (Postfix) with ESMTP id 4F323163BE
	for <<!-- mail_address -->>; Wed, 21 Jun 2006 17:15:45 +0200 (CEST)
Received: by <!-- mailserver --> (Postfix, from userid 480)
	id CE656288E3; Wed, 21 Jun 2006 17:15:32 +0200 (CEST)
To: <!-- mail_address -->
Subject: Testversand: Top-Thema: Fortschrittsbalken entwickeln und anzeigen
Date: Wed, 21 Jun 2006 17:15:32 +0200
From: <!-- Name --> <<!-- mail_address -->>
X-CMSID: 74202-125
X-CMSKID: 74465
Reply-To: Office-VBA intern <<!-- mail_address -->>
X-Mailer: <!-- Informational text -->
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="ALT_cms449962925e945"
Message-Id: <20060621151532.CE656288E3@<webserver>>

This is a multi-part message in MIME format.


--ALT_cms449962925e945
...
...
...

Posted: Thu Jun 22, 2006 6:29 am
by Chris Corbyn
Can you post the code that makes that message. I'm looking mostly for your use of LF and CRLF since they make a significant difference (in short, stick with CRLF).

Posted: Thu Jun 22, 2006 6:35 am
by CoderGoblin
Unfortunately I can't at the moment, I don't have access to the code at present. What suprises me is that the code has worked for over a year and only now seems to be causing problems. The actual message content is the same structure as previously used. Looking at the content of the Email it seems that \n is used.

Posted: Thu Jun 22, 2006 6:44 am
by Chris Corbyn
CoderGoblin wrote:Unfortunately I can't at the moment, I don't have access to the code at present. What suprises me is that the code has worked for over a year and only now seems to be causing problems. The actual message content is the same structure as previously used. Looking at the content of the Email it seems that \n is used.
Try \r\n and see what happens. It's most vital in the headers but LF by itself actually causes stoppage the SMTP end on qmail server which actively refuse emails formatted as such (they give you a URL to go to read up why the mail rejected though).