|
Hi all,
Im using the SendMail action,
everything works properly what I would like to do is to add to the body of the
e-mail or in one attachment some info that are generated dinamically. I mean, I
got a form where the user put the data to get registered in the website, I want
that that information are the body (or the attachment) of the messagge that I
get. I copy a snippet of the code of the sitemap:
<map:match pattern="mail">
<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="blabla"/>
<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="src"
value="context://mf/mail/message.xml"/>-->
<!--<map:parameter
name="body" value="Un nuovo utente si � registrato!!"/>-->
<map:parameter name="attachments" value="uploaded_file1 context://mf/mail/message.xml"/>
<map:generate src="mail/{status}.xml"/>
<map:transform src="context://mf/xsl/mail/{status}.xsl"/>
<map:serialize type="html"/>
</map:act>
</map:match>
What happen is that I got the
message as xml file, of course I would like to use an xslt to transform that
file but I cannot.
Any suggestion?
Regards,
Roberto
|
