PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > Problem with attachments
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

Problem with attachments

Réponse
 
LinkBack Outils de la discussion
Vieux 15/09/2006, 13h43   #1
phiroc
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Problem with attachments

Hello,

I am currently using an RTE (Reliable Transaction Engine) to send
emails containing attachments to users. Although the emails get
displayed correctly in "heavy" mail clients such as Lotus Notes, Apple
Mail, etc., they don't in "light" mail clients such as Web mail
clients: the MIME types and subtypes and the attachments' bodies get
displayed as raw text in the body of the email, like this:

-----112222
Content-Disposition: attachment; filename="1222.txt"
Content-Transfer-Encoding: 7bit
Content-Type: Text/Plain


22 09 06;Ssdkedkdkd; MR. JOHNSON; AAA
22 09 06;XXXCCcccc; MRS. JOHES; BBB
....

If I "cat" a similar message containing an attachment to sendmail (cat
my_message.txt | /usr/sbin/sendmail -t -bm -v), my Web mail client
correctly displays the corresponding email; that is, the attachment is
shown as an icon, as one would expect.

So here's my questions: have any of you ever had this problem before?
How I can make sendmail keep a copy in a directory of the emails sent
by my RTE, for later debugging? If the attached file contained weird
characters which might cause the Web client to choke on the message,
would sendmail tell me so in the logs?

Many thanks.

phiroc

  Réponse avec citation
Vieux 20/09/2006, 12h35   #2
drfremove@nber.org
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problem with attachments

phiroc wrote:
> Hello,
>
> I am currently using an RTE (Reliable Transaction Engine) to send
> emails containing attachments to users. Although the emails get
> displayed correctly in "heavy" mail clients such as Lotus Notes, Apple
> Mail, etc., they don't in "light" mail clients such as Web mail
> clients: the MIME types and subtypes and the attachments' bodies get
> displayed as raw text in the body of the email, like this:
>
> -----112222
> Content-Disposition: attachment; filename="1222.txt"
> Content-Transfer-Encoding: 7bit
> Content-Type: Text/Plain
>
>
> 22 09 06;Ssdkedkdkd; MR. JOHNSON; AAA
> 22 09 06;XXXCCcccc; MRS. JOHES; BBB
> ...
>
> If I "cat" a similar message containing an attachment to sendmail (cat
> my_message.txt | /usr/sbin/sendmail -t -bm -v), my Web mail client
> correctly displays the corresponding email; that is, the attachment is
> shown as an icon, as one would expect.
>
> So here's my questions: have any of you ever had this problem before?
> How I can make sendmail keep a copy in a directory of the emails sent
> by my RTE, for later debugging? If the attached file contained weird


If you look on the client computer mail spool or inbox (possibly in the
/var/mail/ mbox file) you can see what the client sees, and compare it
to the result of the "cat" command. It is likely that the RTE isn't
creating a standard compliant attachment, but that some clients can
read it anyway. The heavy clients would be much older than the web
client, and might be more forgiving. Is the RTE failing to include a
"boundary" field in the "content-type" record?

Sendmail doesn't know about attachments, and just passes them through
as though they were part of a regular text message. It is up to the
client to interpret the content header and the message body.

Daniel Feenberg

> characters which might cause the Web client to choke on the message,
> would sendmail tell me so in the logs?
>
> Many thanks.
>
> phiroc


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h25.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07875 seconds with 10 queries