Hi Roberto,
Thank you much for your response. One thing I wanted to know is, i am creating a zip file on-fly.So I am not storing that zip output stream to any storage. so I have only that stream. Now I wanted to know, using your exmaple script, how can I pass my stream? Any ideas or links will be greatful.
If not possible using cocoon, using Javamail, how can I pass my stream to MimeBody in my java code? Do you have any idea about this? I am trying to search for this type of solution also.
Thanks & Regards,
Murthy
| "Roberto Marra"
<[EMAIL PROTECTED]>
04/28/2005 03:58 PM
|
|
Hi Murthy,
actually I don't the difference from Sendmail Action & Sendmail Transformer, because I didn't know about Sendmail Transformer until 20min. ago when Aur�lien DEHAY (who's I say thanx) told me that, maybe he or somebody else can answer that question.
To send an attachment file I did simply that: (my pipeline)
<map:match pattern="sendMail">
<map:act type="sendmail">
<map:parameter name="smtp-host" value="smtp.ticino.com"/>
<map:parameter name="smtp-user" value="[EMAIL PROTECTED]"/>
<map:parameter name="smtp-password" value="pippo"/>
<map:parameter name="from" value="[EMAIL PROTECTED]"/>
<map:parameter name="to" value="[EMAIL PROTECTED]"/>
<map:parameter name="subject" value="Nuovo utente registrato"/>
<map:parameter name="body" value="I dettagli nell'allegato"/>
<map:parameter name="attachments" value="uploaded_file1 context://mf/mail/message.html"/>
<map:parameter name="charset" value="ISO-8859-1"/>
<map:generate src="mail/{status}.xml"/>
<map:transform src="context://mf/xsl/mail/{status}.xsl"/>
<map:serialize type="html"/>
</map:act>
</map:match>
And that's it.
Hope can help you.
Cheers
Roberto
----- Original Message -----
From: [EMAIL PROTECTED]
To: [email protected]
Sent: Thursday, April 28, 2005 11:26 AM
Subject: Re: SendMail
Hi Roberto,
I am planning to use cocoon's sedmail action. In my email, I need to send a zipoutputstream as an attachment.
How can I do this?
Could you please share your code?
what is the difference between Sendmail Action, Sendmail Transformer.
I am little bit confused.
Thanks & Regards,
Murthy
| "Roberto Marra"
<[EMAIL PROTECTED]>
04/28/2005 02:50 PM
|
|
Hi all,
seems that nobody use SendMail action...anyway I got another question about it, maybe somebody can help me:
The sendmail action take different parameter as "subject", "from", "cc" etc. Of course there is the body parameter too.
What I would like to do is put in the body parameter some form field that user puted in the form, should be something like that:
<map:parameter name="body" value="Nome:{request-param:ragSoc} Indirizzo:{request-param:indirizzo} citta:{request-param:citta} telefono:{request-param:tel}...."/>
Let be that I got 10 field that
I want to pass as part of the body in the e-mail. It works very well the
problem is the layout. I would like to have a new line for every field.
Do you know what I mean? Insted of having the layout like that
Nome:Roberto Indirizzo:blablabla citta:Lugano telefono:849384943
I would like to have
Nome:Roberto
Indirizzo:blablabla
citta:Lugano
telefono:9849348
Any suggestion?
Regards
Roberto
ForwardSourceID:NT00006852
| Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you |
ForwardSourceID:NT00006886
| Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you |
