MIME/SMTP deleting text
- From: "Earl Grieda" <egriedaNOT@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 03:26:11 GMT
I am using the MIME/SMTP packages in, if not the latest, a very recent
version of tcllib. For some reason it appears to be deleting text. I am
sending a line with embedded HTML but I do not want it encoded as HTML. It
is just text. The receiving program will take care of encoding the HTML.
The problem is that either MIME or SMTP is deleting the text, see the before
and after examples below. If I just use sendmail to mail the file then it
is correctly received. This is on RH Linux 8.0 and tcl 8.4.5.
Granted this is probably user error since the documentation for these
packages is as clear as mud, but other than this area the packages seem to
work fine. I also use these packages to encode the finished report as HTML
and that also seems to work fine.
File to be mailed:
# Header definitions
AI_HDR1_1 <B>Bold Header</B>
AI_HDR3_2 <B>Header <a href="http://www.Some-web-site.com"> Without a
tab</A></B>
AI_HDR4_3 Header <a href="http://www.Some-web-site.com"> Without a tab</A>
File at Linux inbox (/var/spool/mail/guest)
# Header definitions
AI_HDR1_1 <B>Bold Header</B>
AI_HDR3_2 <B>Header <a hreftab</A></B>
AI_HDR4_3 Header <a href</A>
Email proc, with some editing for clarity
proc SendEmail {fileName to} {
catch {
set token [mime::initialize -canonical text/plain -file $fileName]
smtp::sendmessage $token \
-header [list To $to] \
-header [list From $::WEB_TESTER] \
-header [list Bcc $::ADMIN] \
-header [list Subject "Header Info"]
}
mime::finalize $token
} catchResult
Log "$P CATCH: $catchResult"
}
.
- Follow-Ups:
- Re: MIME/SMTP deleting text
- From: Gerald W. Lester
- Re: MIME/SMTP deleting text
- Prev by Date: Re: Understanding TkTreeCtrl
- Next by Date: Re: Commercial/Shareware and Extensions ?
- Previous by thread: Eolas Muse beta test
- Next by thread: Re: MIME/SMTP deleting text
- Index(es):
Relevant Pages
|