synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saminda Abeyruwan" <samin...@gmail.com>
Subject Re: Mail sending : how to configure mail subject and other details
Date Wed, 05 Dec 2007 09:29:29 GMT
Hi all,

I've started a mail thread in axis-dev regarding giving support to change
the subject and allowing BCC or CC. Prior one is pretty trivial but the
latter is complex as it has a reference to message exchange pattern.

Thank you

Saminda

On Dec 5, 2007 2:08 PM, Ruwan Linton <ruwan.linton@gmail.com> wrote:

> Hi Eric,
>
> I agree to the fact that your scenario is a valid use case for an ESB, but
> since we use the mail transport of the axis2 (for the moment) it has some
> limitations by the specification. Also, there will be issues in finding the
> right MEP when there are CC and BCC on the mail from axis2 (web services)
> point (ie: out-in, out-in-in like) as per Saminda. Even if we can get this
> done from the axis2 mail transport, it will take a considerable time since
> it has to be done with a change to the specification.
>
> Form my perspective, we have two options to support your scenario,
> 1) By providing a mediator to send mails with all the features you want.
> 2) By writing a synapse specific mail transport
>
> Option 1 can be used for the scenario you described, but it can not act as
> a transport (so that, you can not send a mail and wait for a response and so
> on - basically this case will be just a send mail).
> Option 2 might have limitations (not very sure, need to study about how
> can we handle multiple responses from CCed parties)
>
> I will be able to provide a send mail mediator soon, if that solves your
> problems...
>
> Thanks,
> Ruwan
>
>
> Yes,we have usecases where in it is needed to override the
> > subject/To/CC/BCC
> > fields and also specify the message text in the mail body.
> > For instance, when using Synapse to mediate a response for a webservice
> > endpoint, based on the value returned by say, a StockQuoteService , a
> > mail
> > would be sent to a set of people.It would be nice to be able to specify
> > the
> > recipients, and the subject heading and the message text in the synapse
> > configuration by way of parameters/properties (axis2/synapse/transport).
> >
> > Also, the mail body contains the soap body or the POX payload. Is it
> > possible to send only the text without the enclosing xml tags.
> >
> > I chanced to see that the default subject : " __ Axis2/Java Mail Message
> > __
> > " was hardcoded in org.apache.axis2.transport.mail.EMailSender class.
> > Can
> > that be modified to accept values for subject/mail text/ to/cc/bcc from
> > Synapse as Synapse or Axis2 message context properties.
> >
> > Thanks again,
> > Eric.
> >
> >
> >
> > >
> > >
> > >
> > > Thank you
> > >
> > > Saminda
> > >
> > > Thanks,
> > > Ruwan
> > >
> > > On Dec 3, 2007 4:51 PM, Eric Nygma < profoundmystery@gmail.com> wrote:
> > >
> > > > Hi,
> > > >
> > > > It was nice to see the support to send emails in Synapse1.1. I
> > followed
> > > > the
> > > > docs to enable mail transport.
> > > > I tried sample 255, which has a 'mail' address endpoint. One thing I
> > > > noticed
> > > > was that the mail is always sent with a default subject : " __
> > > Axis2/Java
> > > > Mail Message __ ".
> > > >
> > > > Is there some way I can override this default and put in a
> > user-supplied
> > > > value.
> > > >
> > > > Also, is there a way to specify the 'cc', 'bcc' fields when sending
> > > mails
> > > > ?
> > > >
> > > > Thanks in advance,
> > > > Eric.
> > > >
> > >
> > >
> > >
> > > --
> > > Ruwan Linton
> > > http://www.wso2.org - "Oxygenating the Web Services Platform"
> > >
> >
>
>
>
> --
>
> Ruwan Linton
> http://www.wso2.org - "Oxygenating the Web Services Platform"
>



-- 
Saminda Abeyruwan

Senior Software Engineer
WSO2 Inc. - www.wso2.org

Mime
View raw message