Eventually figured out the problem... basically there were multiple versions
of javax.mail.* on classpath. In my particular case,
apache-servicemix-web-3.3.1.war was including geronimo-javamail_1.4_spec in
its lib which was the culprit



Madesclair Vivian wrote:
> 
> Could you stop spamming please?
> 
> Hopefully for you, the smx team is very nice. But if I knew the answer, I
> would not be helping you.
> 
> -----Message d'origine-----
> De : AnandG [mailto:[email protected]] 
> Envoyé : mardi 28 juillet 2009 17:31
> À : [email protected]
> Objet : Re: Servicemix mail component not working as desired
> 
> 
> Same SA is working fine with standalone ServiceMix but with JBoss its
> giving the problem of not having Subject and To in the mail, can someone
> please guide me how to rectify it. 
> 
> 
> AnandG wrote:
>> 
>> servicemix-mail-2009.01
>> 
>> 
>> lhein wrote:
>>> 
>>> I would also like to know which version of servicemix-mail you are
>>> using.
>>> 
>>> Lars
>>> 
>>> 
>>> 2009/7/28 AnandG <[email protected]>:
>>>>
>>>> Hi,
>>>>
>>>> I am setting up mail properties using :
>>>>
>>>> NormalizedMessage normalizedMsg = exch.createMessage(); 
>>>> normalizedMsg.setProperty("org.apache.servicemix.mail.to", 
>>>> "[email protected]"); 
>>>> normalizedMsg.setProperty("org.apache.servicemix.mail.subject", 
>>>> "Some Subject");
>>>>
>>>> But the mail message which I am receiving from SMTP server doesnt 
>>>> have subject in it and even to field have "undisclosed-recipients:;" 
>>>> although getting the mail at correct place. Please point me if I am 
>>>> doing something wrong ....
>>>>
>>>> xbean config goes like this..
>>>>
>>>> <bean id="propertyConfigurer"
>>>> class="org.springframework.beans.factory.config.PropertyPlaceholderC
>>>> onfigurer">
>>>>      <property name="location" value="classpath:mail.properties" />
>>>>  </bean>
>>>>  <mail:sender service="canNotify:mailSenderService"
>>>>             endpoint="mailEndpoint"
>>>>             sender="${sender.email}"
>>>>             connection="${smtp.host}"
>>>>
>>>>             debugMode="true" >
>>>>
>>>>   </mail:sender>
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Servicemix-mail-component-not-working-as-desir
>>>> ed-tp24698040p24698040.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-component-not-working-as-desired-tp24698040p24701824.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Servicemix-mail-component-not-working-as-desired-tp24698040p24716139.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to