Hi,
I'm able to send emails using the mail component but they are all sent with
no subject.
This is part of my code:
...
_subject = "THIS IS THE SUBJECT";
System.out.println(">>> Mail subject is: " + _subject);
outMessage.setProperty("org.apache.servicemix.mail.subject", _subject);
...
And this is what the mail component does:
...
2009-10-26 18:19:11,268 INFO [STDOUT] >>> Mail subject is: THIS IS THE
SUBJECT
...
2009-10-26 18:19:11,438 INFO [STDOUT] 235 2.7.0 Authentication successful.
2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: use8bit false
2009-10-26 18:19:11,438 INFO [STDOUT] MAIL FROM:<[email protected]>
2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.0
[email protected] OK
2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<[email protected]>
2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 [email protected]
2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<[email protected]>
2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 [email protected]
2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<[email protected]>
2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 [email protected]
2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: Verified Addresses
2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: [email protected]
2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: [email protected]
2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP:
[email protected]
2009-10-26 18:19:11,438 INFO [STDOUT] DATA
2009-10-26 18:19:11,438 INFO [STDOUT] 354 Start mail input; end with
<CRLF>.<CRLF>
2009-10-26 18:19:11,438 INFO [STDOUT]
hello this is a test2
.
2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.6.0 <[email protected]>
Queued mail for delivery
2009-10-26 18:19:11,438 INFO [STDOUT] QUIT
2009-10-26 18:19:11,438 INFO [STDOUT] 221 2.0.0 mail.server.com Service
closing transmission channel
In this log I can see the recipients, the senders and the mail body are all
set. But, as may be able to see there's no line saying the subject has been
set.
Does anybody know what could be the problem?
BTW, I'm using mail component ver. 2009.01.
Thanks,
Angel
--
View this message in context:
http://www.nabble.com/ServiceMix-Mail---No-subject-problem-tp26069070p26069070.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.