Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Philip 2 posts 22 karma points
    Jun 19, 2012 @ 15:58
    Philip
    0

    From email...api

    How can I get this email:
    <xsl:value-of select="umbraco.library:Request('email')" />
    to be the fromemail? 
    <xsl:value-of select="umbraco.library:SendMail(email, $toemail, 'Test',$mailbody, 0)"/>
    Can't get it to work ... ?

    and by the way is there a framework/api or someting where I can lookup stuff :)

     

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Jun 19, 2012 @ 16:09
    Tom Fulton
    0

    Hi,

    You'd need to nest the Request function or store it in a variable, here are some examples:

    <xsl:variable name="emailFrom" select="umbraco.library:Request('email')"/>
    <xsl:value-of select="umbraco.library:SendMail($emailFrom, $toemail, 'Test',$mailbody, 0)"/> 

    or the slightly harder to read version:

    <xsl:value-of select="umbraco.library:SendMail(umbraco.library:Request('email'), $toemail, 'Test',$mailbody, 0)"/> 

    Regarding the framework/api, you can always pull down the source from Codeplex and dig around.  These XSLT helper functions are in umbraco.presentation.library.cs

    HTH,
    Tom 

  • Philip 2 posts 22 karma points
    Jun 19, 2012 @ 20:05
    Philip
    0

    Great, thanks for the reply Tom.
    I know my C#, but not umbraco yet ;) 

     

Please Sign in or register to post replies

Write your reply to:

Draft