You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by "angel.ortiz" <ao...@gmail.com> on 2009/10/26 23:41:57 UTC
ServiceMix Mail - No subject problem
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:<ad...@mycompany.com>
2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.0
admin@mycompany.com....Sender OK
2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<an...@mycompany.com>
2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 angel@mycompany.com
2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<is...@mycompany.com>
2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 israel@mycompany.com
2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<an...@mycompany.com>
2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 angel.ortiz@mycompany.com
2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: Verified Addresses
2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: angel@mycompany.com
2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: israel@mycompany.com
2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP:
angel.ortiz@mycompany.com
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 <na...@mail.server.com>
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.
Re: ServiceMix Mail - No subject problem
Posted by Lars Heinemann <lh...@apache.org>.
Could you provide the SU/SA's as ready to build?
Lars
2009/10/27 angel.ortiz <ao...@gmail.com>:
>
>
> Thanks for your response,
>
> I have downloaded and installed the latest build of the 2009.02-SNAPSHOT
> mail component. Also I changed the mail-component version in my service unit
> as follows:
>
> <dependencies>
> <dependency>
> <groupId>org.apache.servicemix</groupId>
> <artifactId>servicemix-mail</artifactId>
> <version>2009.02-SNAPSHOT</version>
> </dependency>
> </dependencies>
>
> This, however, didn't solve my problem. I still get the emails with no
> subject.
>
> If anybody knows a solution or a workaround for this please share with me.
>
> Thanks
>
>
> lhein wrote:
>>
>> you should use 2009.02-SNAPSHOT for now. There were several probs in
>> that 01 version if I remember correctly.
>>
>> let me know the results.
>>
>> Lars
>>
>>
>> 2009/10/26 angel.ortiz <ao...@gmail.com>:
>>>
>>>
>>> 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:<ad...@mycompany.com>
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.0
>>> admin@mycompany.com....Sender OK
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<an...@mycompany.com>
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 angel@mycompany.com
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<is...@mycompany.com>
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 israel@mycompany.com
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT
>>> TO:<an...@mycompany.com>
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5
>>> angel.ortiz@mycompany.com
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: Verified Addresses
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: angel@mycompany.com
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: israel@mycompany.com
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP:
>>> angel.ortiz@mycompany.com
>>> 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 <na...@mail.server.com>
>>> 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.
>>>
>>>
>>
>>
>>
>> --
>> http://lhein.blogspot.com
>>
>>
>> -----
>> Regards
>> Lars
>>
>>
>> http://lhein.blogspot.com
>>
>>
>
> --
> View this message in context: http://www.nabble.com/ServiceMix-Mail---No-subject-problem-tp26069070p26082598.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
http://lhein.blogspot.com
Re: ServiceMix Mail - No subject problem
Posted by "angel.ortiz" <ao...@gmail.com>.
Hi,
I checked the source code and you're right. There's a default subject 'no
subject' that must be sent if I don't specify one. The problem doesn't seem
to be that I'm putting the subject in the wrong property, the problem is the
subject -default or not- is not being sent in the e-mail.
Could this be a bug?
Regards,
Angel
lhein wrote:
>
> Hi,
>
> I doubled checked what you said in the code of the component's trunk
> version (2009.02-SNAPSHOT).
> If there is no subject property in the incoming jbi message, then a
> dummy subject will be set anyway
> for the outgoing mail. This dummy subject is "no subject".
> The message property for the subject is:
> "org.apache.servicemix.mail.subject". As you have it correctly in your
> code snippet I would say the error is elsewhere.
>
> Lars
>
>
>
> 2009/10/27 angel.ortiz <ao...@gmail.com>:
>>
>>
>> Thanks for your response,
>>
>> I have downloaded and installed the latest build of the 2009.02-SNAPSHOT
>> mail component. Also I changed the mail-component version in my service
>> unit
>> as follows:
>>
>> <dependencies>
>> <dependency>
>> <groupId>org.apache.servicemix</groupId>
>> <artifactId>servicemix-mail</artifactId>
>> <version>2009.02-SNAPSHOT</version>
>> </dependency>
>> </dependencies>
>>
>> This, however, didn't solve my problem. I still get the emails with no
>> subject.
>>
>> If anybody knows a solution or a workaround for this please share with
>> me.
>>
>> Thanks
>>
>>
>> lhein wrote:
>>>
>>> you should use 2009.02-SNAPSHOT for now. There were several probs in
>>> that 01 version if I remember correctly.
>>>
>>> let me know the results.
>>>
>>> Lars
>>>
>>>
>>> 2009/10/26 angel.ortiz <ao...@gmail.com>:
>>>>
>>>>
>>>> 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:<ad...@mycompany.com>
>>>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.0
>>>> admin@mycompany.com....Sender OK
>>>> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<an...@mycompany.com>
>>>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 angel@mycompany.com
>>>> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<is...@mycompany.com>
>>>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 israel@mycompany.com
>>>> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT
>>>> TO:<an...@mycompany.com>
>>>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5
>>>> angel.ortiz@mycompany.com
>>>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: Verified Addresses
>>>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP:
>>>> angel@mycompany.com
>>>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP:
>>>> israel@mycompany.com
>>>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP:
>>>> angel.ortiz@mycompany.com
>>>> 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 <na...@mail.server.com>
>>>> 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.
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> http://lhein.blogspot.com
>>>
>>>
>>> -----
>>> Regards
>>> Lars
>>>
>>>
>>> http://lhein.blogspot.com
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/ServiceMix-Mail---No-subject-problem-tp26069070p26082598.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> http://lhein.blogspot.com
>
>
> -----
> Regards
> Lars
>
>
> http://lhein.blogspot.com
>
>
--
View this message in context: http://www.nabble.com/ServiceMix-Mail---No-subject-problem-tp26069070p26097827.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: ServiceMix Mail - No subject problem
Posted by Lars Heinemann <lh...@apache.org>.
Hi,
I doubled checked what you said in the code of the component's trunk
version (2009.02-SNAPSHOT).
If there is no subject property in the incoming jbi message, then a
dummy subject will be set anyway
for the outgoing mail. This dummy subject is "no subject".
The message property for the subject is:
"org.apache.servicemix.mail.subject". As you have it correctly in your
code snippet I would say the error is elsewhere.
Lars
2009/10/27 angel.ortiz <ao...@gmail.com>:
>
>
> Thanks for your response,
>
> I have downloaded and installed the latest build of the 2009.02-SNAPSHOT
> mail component. Also I changed the mail-component version in my service unit
> as follows:
>
> <dependencies>
> <dependency>
> <groupId>org.apache.servicemix</groupId>
> <artifactId>servicemix-mail</artifactId>
> <version>2009.02-SNAPSHOT</version>
> </dependency>
> </dependencies>
>
> This, however, didn't solve my problem. I still get the emails with no
> subject.
>
> If anybody knows a solution or a workaround for this please share with me.
>
> Thanks
>
>
> lhein wrote:
>>
>> you should use 2009.02-SNAPSHOT for now. There were several probs in
>> that 01 version if I remember correctly.
>>
>> let me know the results.
>>
>> Lars
>>
>>
>> 2009/10/26 angel.ortiz <ao...@gmail.com>:
>>>
>>>
>>> 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:<ad...@mycompany.com>
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.0
>>> admin@mycompany.com....Sender OK
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<an...@mycompany.com>
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 angel@mycompany.com
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<is...@mycompany.com>
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 israel@mycompany.com
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT
>>> TO:<an...@mycompany.com>
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5
>>> angel.ortiz@mycompany.com
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: Verified Addresses
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: angel@mycompany.com
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: israel@mycompany.com
>>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP:
>>> angel.ortiz@mycompany.com
>>> 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 <na...@mail.server.com>
>>> 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.
>>>
>>>
>>
>>
>>
>> --
>> http://lhein.blogspot.com
>>
>>
>> -----
>> Regards
>> Lars
>>
>>
>> http://lhein.blogspot.com
>>
>>
>
> --
> View this message in context: http://www.nabble.com/ServiceMix-Mail---No-subject-problem-tp26069070p26082598.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
http://lhein.blogspot.com
Re: ServiceMix Mail - No subject problem
Posted by "angel.ortiz" <ao...@gmail.com>.
Thanks for your response,
I have downloaded and installed the latest build of the 2009.02-SNAPSHOT
mail component. Also I changed the mail-component version in my service unit
as follows:
<dependencies>
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-mail</artifactId>
<version>2009.02-SNAPSHOT</version>
</dependency>
</dependencies>
This, however, didn't solve my problem. I still get the emails with no
subject.
If anybody knows a solution or a workaround for this please share with me.
Thanks
lhein wrote:
>
> you should use 2009.02-SNAPSHOT for now. There were several probs in
> that 01 version if I remember correctly.
>
> let me know the results.
>
> Lars
>
>
> 2009/10/26 angel.ortiz <ao...@gmail.com>:
>>
>>
>> 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:<ad...@mycompany.com>
>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.0
>> admin@mycompany.com....Sender OK
>> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<an...@mycompany.com>
>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 angel@mycompany.com
>> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<is...@mycompany.com>
>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 israel@mycompany.com
>> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT
>> TO:<an...@mycompany.com>
>> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5
>> angel.ortiz@mycompany.com
>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: Verified Addresses
>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: angel@mycompany.com
>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: israel@mycompany.com
>> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP:
>> angel.ortiz@mycompany.com
>> 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 <na...@mail.server.com>
>> 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.
>>
>>
>
>
>
> --
> http://lhein.blogspot.com
>
>
> -----
> Regards
> Lars
>
>
> http://lhein.blogspot.com
>
>
--
View this message in context: http://www.nabble.com/ServiceMix-Mail---No-subject-problem-tp26069070p26082598.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: ServiceMix Mail - No subject problem
Posted by Lars Heinemann <lh...@apache.org>.
you should use 2009.02-SNAPSHOT for now. There were several probs in
that 01 version if I remember correctly.
let me know the results.
Lars
2009/10/26 angel.ortiz <ao...@gmail.com>:
>
>
> 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:<ad...@mycompany.com>
> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.0
> admin@mycompany.com....Sender OK
> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<an...@mycompany.com>
> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 angel@mycompany.com
> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<is...@mycompany.com>
> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 israel@mycompany.com
> 2009-10-26 18:19:11,438 INFO [STDOUT] RCPT TO:<an...@mycompany.com>
> 2009-10-26 18:19:11,438 INFO [STDOUT] 250 2.1.5 angel.ortiz@mycompany.com
> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: Verified Addresses
> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: angel@mycompany.com
> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP: israel@mycompany.com
> 2009-10-26 18:19:11,438 INFO [STDOUT] DEBUG SMTP:
> angel.ortiz@mycompany.com
> 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 <na...@mail.server.com>
> 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.
>
>
--
http://lhein.blogspot.com