Re: How to use the HeaderFilterStrategy on SMTP endpoint?

2009-06-09 Thread rohitbrai
this - can I make it - where myStrategy is a bean implementing HeaderFilterStrategy and declared in the Spring XML as - Regards, Rohit Claus Ibsen-2 wrote: > > On Tue, Jun 9, 2009 at 2:38 PM, rohitbrai wrote: >> >> Is this applicable to the Mail component also? >> >

Re: How to use the HeaderFilterStrategy on SMTP endpoint?

2009-06-09 Thread rohitbrai
Is this applicable to the Mail component also? http://issues.apache.org/activemq/browse/CAMEL-915 "You can do this in Camel 2.0 in the URI by using the # syntax for lookup in the registry." Regards, Rohit rohitbrai wrote: > > How do I use a custom HeaderFilterStrategy on a

How to use the HeaderFilterStrategy on SMTP endpoint?

2009-06-09 Thread rohitbrai
How do I use a custom HeaderFilterStrategy on a SMTP endpoint? I saw the code and I can see that SMTP component honors the HeaderFilterStrategy. But I am not able to figure out how do I set it for the endpoint? Thanks and Regards, Rohit -- View this message in context: http://www.nabble.com/Ho

Camel Mail SMTP component supports alternative body, but is not documented

2009-05-28 Thread rohitbrai
I need to set alternate PlainText body while sending mail, so the people who are using non html mail clients can see the PlainText message. For this I was going through the MailBinding component in a hope that I can edit it to get this one working and found that it is already supported. if you se

Set charset to utf-8 for sending emails using smtp endpoint

2009-05-25 Thread rohitbrai
I am trying to set the content type of the mail I send using the contentType header. That doesn't work, but it works if I put the contentType in the endpoint uri. i.e. - text/html Has no effect, while this works - smtp://roh...@xyzab.pramati

How can we handle and respond to SMTP Server errors/failures in mail component

2009-05-21 Thread rohitbrai
My quest to build the mail delivery system using camel is in the last mile. I want to implement delivery retries. The scenario is - The mail component tries to send a mail and couldn't cause either the SMTP server was down/rejected connection/quota there was over. So when the mailer gets this err

Re: Can Modify Mail/SMTP component to accept Sender Name along with Sender Email

2009-05-21 Thread rohitbrai
;other endpoint"); > > Spring > > > > class="org.apache.camel.component.mail.MailEndpoint"> > > > xmlns="http://activemq.apache.org/camel/schema/spring";> > > > > > > > > Willem >

Re: Can Modify Mail/SMTP component to accept Sender Name along with Sender Email

2009-05-21 Thread rohitbrai
Found a workaround, which satisfies the requirement - setHeader("from", constant("Dummy ")) Where Dummy is the sender name and du...@dumdum.com is the sender email. rohitbrai wrote: > > I have a requirement, which should I think should be standard, that when I &

Re: Can Modify Mail/SMTP component to accept Sender Name along with Sender Email

2009-05-21 Thread rohitbrai
)); else mimeMessage.setFrom(new InternetAddress(from)); } rohitbrai wrote: > > I have a requirement, which should I think should be standard, that when I > send the mail I should be able to set the sender name also along with the > sender email. > > I

Can Modify Mail/SMTP component to accept Sender Name along with Sender Email

2009-05-21 Thread rohitbrai
I have a requirement, which should I think should be standard, that when I send the mail I should be able to set the sender name also along with the sender email. Is there any way to do this??? Can I extend the MailBinding class, such that Camel reads my class to create binding for the the mail c

Re: Split using tokenize on header

2009-05-11 Thread rohitbrai
; Then we can check the List Object in the Splitter's >>>>>> createProcessorExchangePairsList() and >>>>>> createProcessorExchangePairsIterable(), if the object in the list is >>>>>> Message, we can set the Exchange's InMessage >>>

Re: Split using tokenize on header

2009-05-08 Thread rohitbrai
is it the right approach? Claus Ibsen-2 wrote: > > On Fri, May 8, 2009 at 2:58 PM, rohitbrai wrote: >> >> I have a message which has - >> Header >>    "To" - "a...@sdf.com,x...@dsfsdf.com,s...@serr.com" >> Body >>    Hello >>

Split using tokenize on header

2009-05-08 Thread rohitbrai
I have a message which has - Header "To" - "a...@sdf.com,x...@dsfsdf.com,s...@serr.com" Body Hello onthis message I tried - from("jms:queue:new.test1").splitter(header("To").tokenize(",")).to("jms:queue:new.test2"); and I was expecting 3 entries on test2 queue Header "To" - "a.