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 <[email protected]>: >> >> >> 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 <[email protected]>: >>>> >>>> >>>> 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. >>>> >>>> >>> >>> >>> >>> -- >>> 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.
