Hi,
It seems that sending the same email through different servers produces
different results.
I'm sending the same HtmlEmail through James and Exchange.
In both cases I'm using Outlook 2003 to read the emails.
For the James test, the result is correct: I see the HTML version of the email
For the Exchange test, the result is not correct: I see the text version of the
email and the HTML version is attached.
FYI:
james.txt: debug session between my app and James
exchange.txt: debug session between my app and Exchange.
james.png: result in Outlook of the James test
exchange.png: result in Outlook of the Exchange test
Is is a known issue? How to solve it?
I'm using commons-email-1.1.jar and the following java code:
-----------
HtmlEmail email = new HtmlEmail();
email.setDebug(true);
email.setHostName(KmetInit.getEmailServer());
email.setFrom(emailAddress);
email.addTo(emailAddress);
email.setCharset("UTF-8");
email.setSubject(document.getTitle());
email.setMsg(emailHtmlBody.toString());
email.setTextMsg(emailTextBody.toString());
email.send();
-----------
Thanks,
Benoit
Benoit Coppens • Senior Consultant
UCB <http://www.ucb-group.com/> - Global Medical Information Stream
Chemin du Foriest - 1420 Braine-l'Alleud - Belgium • ( +32 2 386 25 71 • 7
+32 2 386 32 44 • * [EMAIL PROTECTED]
All4IT <http://www.all4it.com/>
Drève Richelle 161 - 1410 Waterloo - Belgium • ( +32 2 609 51 20 • 7 +32 2
609 51 38 • * [EMAIL PROTECTED]
P Please consider your environmental responsibility before printing this email!
--------------------------------------------------------
Legal Notice: This electronic mail and its attachments are intended solely for
the person(s) to whom they are addressed and contain information which is
confidential or otherwise protected from disclosure, except for the purpose for
which they are intended. Dissemination, distribution, or reproduction by anyone
other than the intended recipients is prohibited and may be illegal. If you are
not an intended recipient, please immediately inform the sender and return the
electronic mail and its attachments and destroy any copies which may be in your
possession. UCB screens electronic mails for viruses but does not warrant that
this electronic mail is free of any viruses. UCB accepts no liability for any
damage caused by any virus transmitted by this electronic mail. (Ref: #*UG1107)
--------------------------------------------------------
DEBUG: JavaMail version 1.4ea
DEBUG: java.io.FileNotFoundException:
D:\Java\jre1.5.0_14\lib\javamail.providers (The system cannot find the file
specified)
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.providers
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name:
{com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
Microsystems, Inc],
com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc],
com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
Microsystems, Inc],
com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
Microsystems, Inc],
com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
Microsystems, Inc],
com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
Microsystems, Inc]}
DEBUG: Providers Listed By Protocol:
{imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
Microsystems, Inc],
imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
Microsystems, Inc],
smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
Microsystems, Inc],
pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
Microsystems, Inc],
pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
Microsystems, Inc],
smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.address.map
DEBUG: java.io.FileNotFoundException:
D:\Java\jre1.5.0_14\lib\javamail.address.map (The system cannot find the file
specified)
DEBUG: getProvider() returning
javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "smtpappbra.dir.ucb-group.com", port 25,
isSSL false
220 smtpappbra.dir.ucb-group.com Microsoft ESMTP MAIL Service, Version:
6.0.3790.1830 ready at Mon, 26 Nov 2007 14:27:26 +0100
DEBUG SMTP: connected to host "smtpappbra.dir.ucb-group.com", port: 25
EHLO cenauto801
250-smtpappbra.dir.ucb-group.com Hello [10.1.38.144]
250-TURN
250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS=LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK
DEBUG SMTP: Found extension "TURN", arg ""
DEBUG SMTP: Found extension "SIZE", arg ""
DEBUG SMTP: Found extension "ETRN", arg ""
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "8bitmime", arg ""
DEBUG SMTP: Found extension "BINARYMIME", arg ""
DEBUG SMTP: Found extension "CHUNKING", arg ""
DEBUG SMTP: Found extension "VRFY", arg ""
DEBUG SMTP: Found extension "X-EXPS", arg "GSSAPI NTLM LOGIN"
DEBUG SMTP: Found extension "X-EXPS=LOGIN", arg ""
DEBUG SMTP: Found extension "AUTH", arg "GSSAPI NTLM LOGIN"
DEBUG SMTP: Found extension "AUTH=LOGIN", arg ""
DEBUG SMTP: Found extension "X-LINK2STATE", arg ""
DEBUG SMTP: Found extension "XEXCH50", arg ""
DEBUG SMTP: Found extension "OK", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<[EMAIL PROTECTED]>
250 2.1.0 [EMAIL PROTECTED] OK
RCPT TO:<[EMAIL PROTECTED]>
250 2.1.5 [EMAIL PROTECTED]
DEBUG SMTP: Verified Addresses
DEBUG SMTP: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
DATA
354 Start mail input; end with <CRLF>.<CRLF>
Date: Mon, 26 Nov 2007 14:27:25 +0100 (CET)
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Subject: The efficacy and safety of venlafaxine in the prophylaxis of
migraine
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_Part_0_3413279.1196083645051"
------=_Part_0_3413279.1196083645051
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Document title:
The efficacy and safety of venlafaxine in the prophylaxis of migraine
Summary:
<FONT face=Arial size=2>OBJECTIVE: To evaluate the efficacy and safety of
venlafaxine in the prophylaxis of migraine. BACKGROUND: The efficacy of
venlafaxine, which is selectively effective on the serotonergic and
noradrenergic mechanisms, on various headaches and chronic pain syndromes has
been demonstrated. To our knowledge, this is the first placebo-controlled,
double-blind, randomized study of two different doses of venlafaxine for
migraine treatment. METHODS: In this prospective study, 60 migraine patients
without aura were randomly assigned to venlafaxine XR 75 mg, venlafaxine XR 150
mg, or placebo. The frequency of headache attacks, the severity and the
duration of attacks, and analgesic use were monitored every 2 weeks for 2
months. Adverse events and patient satisfaction were also evaluated during
these visits. At the end of the 2 months, global efficacy and tolerance were
investigated. RESULTS: A significant difference was observed between the
venlafaxine 150 mg and place
Authors:
Ozyalcin SN;Talu GK;Kiziltan E;Yucel B;Ertas M;Disci R;
Date:
26/02/2005
Link:
http://web.americas.ucb/medaffairs/mainfiles/Lacosamide\Ozyalcin_Headache_45(2)_(2005)_144-52.pdf?ID=20796
------=_Part_0_3413279.1196083645051
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html><body><pre><p><b>Document title:</b><br/>The efficacy and safety of v=
enlafaxine in the prophylaxis of migraine</p><p><b>Summary:</b><br/><FONT f=
ace=3DArial size=3D2>OBJECTIVE: To evaluate the efficacy and safety of venl=
afaxine in the prophylaxis of migraine. BACKGROUND: The efficacy of venlafa=
xine, which is selectively effective on the serotonergic and noradrenergic =
mechanisms, on various headaches and chronic pain syndromes has been demons=
trated. To our knowledge, this is the first placebo-controlled, double-blin=
d, randomized study of two different doses of venlafaxine for migraine trea=
tment. METHODS: In this prospective study, 60 migraine patients without aur=
a were randomly assigned to venlafaxine XR 75 mg, venlafaxine XR 150 mg, or=
placebo. The frequency of headache attacks, the severity and the duration =
of attacks, and analgesic use were monitored every 2 weeks for 2 months. Ad=
verse events and patient satisfaction were also evaluated during these visi=
ts. At the end of the 2 months, global efficacy and tolerance were investig=
ated. RESULTS: A significant difference was observed between the venlafaxin=
e 150 mg and place</p><p><b>Authors:</b><br/>Ozyalcin SN;Talu GK;Kiziltan E=
;Yucel B;Ertas M;Disci R;</p><p><b>Date:</b><br/>26/02/2005</p><p><b>Link:<=
/b><br/><a href=3D"http://web.americas.ucb/medaffairs/mainfiles/Lacosamide\=
Ozyalcin_Headache_45(2)_(2005)_144-52.pdf?ID=3D20796">http://web.americas.u=
cb/medaffairs/mainfiles/Lacosamide\Ozyalcin_Headache_45(2)_(2005)_144-52.pd=
f?ID=3D20796</a></p></pre></body></html>
------=_Part_0_3413279.1196083645051--
.
250 2.6.0 <[EMAIL PROTECTED]> Queued mail for delivery
QUIT
221 2.0.0 smtpappbra.dir.ucb-group.com Service closing transmission channelDEBUG: JavaMail version 1.4ea
DEBUG: java.io.FileNotFoundException:
C:\Programs\java\jdk1.5.0_12\jre\lib\javamail.providers (The system cannot find
the file specified)
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.providers
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name:
{com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
Microsystems, Inc],
com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc],
com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
Microsystems, Inc],
com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
Microsystems, Inc],
com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
Microsystems, Inc],
com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
Microsystems, Inc]}
DEBUG: Providers Listed By Protocol:
{imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
Microsystems, Inc],
imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
Microsystems, Inc],
smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
Microsystems, Inc],
pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
Microsystems, Inc],
pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
Microsystems, Inc],
smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.address.map
DEBUG: java.io.FileNotFoundException:
C:\Programs\java\jdk1.5.0_12\jre\lib\javamail.address.map (The system cannot
find the file specified)
DEBUG: getProvider() returning
javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "localhost", port 25, isSSL false
220 BEL001988 SMTP Server (JAMES SMTP Server 2.3.1) ready Mon, 26 Nov 2007
14:17:28 +0100 (CET)
DEBUG SMTP: connected to host "localhost", port: 25
EHLO BEL001988
250-BEL001988 Hello BEL001988 (localhost [127.0.0.1])
250-PIPELINING
250 ENHANCEDSTATUSCODES
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<[EMAIL PROTECTED]>
250 2.1.0 Sender <[EMAIL PROTECTED]> OK
RCPT TO:<[EMAIL PROTECTED]>
250 2.1.5 Recipient <[EMAIL PROTECTED]> OK
DEBUG SMTP: Verified Addresses
DEBUG SMTP: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
DATA
354 Ok Send data ending with <CRLF>.<CRLF>
Date: Mon, 26 Nov 2007 14:17:28 +0100 (CET)
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Subject: The efficacy and safety of venlafaxine in the prophylaxis of
migraine
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_Part_0_13196714.1196083048600"
------=_Part_0_13196714.1196083048600
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Document title:
The efficacy and safety of venlafaxine in the prophylaxis of migraine
Summary:
<FONT face=Arial size=2>OBJECTIVE: To evaluate the efficacy and safety of
venlafaxine in the prophylaxis of migraine. BACKGROUND: The efficacy of
venlafaxine, which is selectively effective on the serotonergic and
noradrenergic mechanisms, on various headaches and chronic pain syndromes has
been demonstrated. To our knowledge, this is the first placebo-controlled,
double-blind, randomized study of two different doses of venlafaxine for
migraine treatment. METHODS: In this prospective study, 60 migraine patients
without aura were randomly assigned to venlafaxine XR 75 mg, venlafaxine XR 150
mg, or placebo. The frequency of headache attacks, the severity and the
duration of attacks, and analgesic use were monitored every 2 weeks for 2
months. Adverse events and patient satisfaction were also evaluated during
these visits. At the end of the 2 months, global efficacy and tolerance were
investigated. RESULTS: A significant difference was observed between the
venlafaxine 150 mg and place
Authors:
Ozyalcin SN;Talu GK;Kiziltan E;Yucel B;Ertas M;Disci R;
Date:
26/02/2005
Link:
http://web.americas.ucb/medaffairs/mainfiles/Lacosamide\Ozyalcin_Headache_45(2)_(2005)_144-52.pdf?ID=20796
------=_Part_0_13196714.1196083048600
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<html><body><pre><p><b>Document title:</b><br/>The efficacy and safety of v=
enlafaxine in the prophylaxis of migraine</p><p><b>Summary:</b><br/><FONT f=
ace=3DArial size=3D2>OBJECTIVE: To evaluate the efficacy and safety of venl=
afaxine in the prophylaxis of migraine. BACKGROUND: The efficacy of venlafa=
xine, which is selectively effective on the serotonergic and noradrenergic =
mechanisms, on various headaches and chronic pain syndromes has been demons=
trated. To our knowledge, this is the first placebo-controlled, double-blin=
d, randomized study of two different doses of venlafaxine for migraine trea=
tment. METHODS: In this prospective study, 60 migraine patients without aur=
a were randomly assigned to venlafaxine XR 75 mg, venlafaxine XR 150 mg, or=
placebo. The frequency of headache attacks, the severity and the duration =
of attacks, and analgesic use were monitored every 2 weeks for 2 months. Ad=
verse events and patient satisfaction were also evaluated during these visi=
ts. At the end of the 2 months, global efficacy and tolerance were investig=
ated. RESULTS: A significant difference was observed between the venlafaxin=
e 150 mg and place</p><p><b>Authors:</b><br/>Ozyalcin SN;Talu GK;Kiziltan E=
;Yucel B;Ertas M;Disci R;</p><p><b>Date:</b><br/>26/02/2005</p><p><b>Link:<=
/b><br/><a href=3D"http://web.americas.ucb/medaffairs/mainfiles/Lacosamide\=
Ozyalcin_Headache_45(2)_(2005)_144-52.pdf?ID=3D20796">http://web.americas.u=
cb/medaffairs/mainfiles/Lacosamide\Ozyalcin_Headache_45(2)_(2005)_144-52.pd=
f?ID=3D20796</a></p></pre></body></html>
------=_Part_0_13196714.1196083048600--
.
250 2.6.0 Message received
QUIT
221 2.0.0 BEL001988 Service closing transmission channel---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]