You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Gert Vanthienen <ge...@skynet.be> on 2007/07/17 10:59:21 UTC
Re: LW MAIL SENDER: add more then one email address in "cc"
propertyname
L.S.,
Looking at the code, I think you can specify it as a comma-delimited
list of email adresses.
Gert
Sm0k3rz wrote:
> Hi to all,
>
> i made a simple question:
> i have a lw container that send one mail on the cc property and one mail to
> "to" property.
>
> I want send a lot of mail in "cc " how to made this configuration in
> servicemix.xml ?
>
> this is my:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!--
>
> Licensed to the Apache Software Foundation (ASF) under one or more
> contributor license agreements. See the NOTICE file distributed with
> this work for additional information regarding copyright ownership.
> The ASF licenses this file to You under the Apache License, Version 2.0
> (the "License"); you may not use this file except in compliance with
> the License. You may obtain a copy of the License at
>
> http://www.apache.org/licenses/LICENSE-2.0
>
> Unless required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> See the License for the specific language governing permissions and
> limitations under the License.
>
> -->
> <beans xmlns:sm="http://servicemix.apache.org/config/1.0"
> xmlns:cisHealth="http://servicemix.apache.org/cisHealth">
>
> <sm:serviceunit id="jbi">
> <sm:activationSpecs>
>
>
>
>
> <sm:activationSpec componentName="mailSender"
> service="cisHealth:mailSender">
> <sm:component>
> <bean
> class="org.apache.servicemix.components.email.SimpleMailSender">
> <property name="sender">
> <bean
> class="org.springframework.mail.javamail.JavaMailSenderImpl">
> <property name="host" value="smtp.net"/>
> <property name="username" value="username"/>
> <property name="password" value="password"/>
> </bean>
> </property>
>
> <property name="marshaler">
> <bean
> class="org.apache.servicemix.components.email.SimpleMailMarshaler">
> <property name="to">
> <bean
> class="org.apache.servicemix.expression.ConstantExpression">
> <constructor-argvalue="to@foobar.com"/>
> </bean>
> </property>
>
> <property name="cc">
> <bean
> class="org.apache.servicemix.expression.ConstantExpression">
> <constructor-arg value="cc@foobar.com"/>
>
>
> </bean>
> </property>
>
>
>
>
>
>
>
> <property name="from">
> <bean
> class="org.apache.servicemix.expression.ConstantExpression">
> <constructor-arg value="cis@foo.bar"/>
> </bean>
> </property>
> <property name="subject">
> <bean
> class="org.apache.servicemix.expression.ConstantExpression">
> <constructor-arg value="Mail "/>
> </bean>
> </property>
> <!-- <property name="text">
> <bean
> class="org.apache.servicemix.expression.ConstantExpression">
> <constructor-arg value="testing one two three"/>
> </bean>
> </property> -->
> </bean>
> </property>
> </bean>
> </sm:component>
> </sm:activationSpec>
>
>
>
>
>
>
>
>
> </sm:activationSpecs>
> </sm:serviceunit>
>
> </beans>
>