Copied to clipboard

Flag this post as spam?

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


  • Maxim 50 posts 69 karma points
    Jun 01, 2014 @ 15:10
    Maxim
    0

    I've been looking through the code but i can't find it somewhere. I want to change the mailadress so it gets send to my mail address. Maxim

  • Jan Skovgaard 11264 posts 23592 karma points MVP 8x admin c-trib
    Jun 01, 2014 @ 18:22
    Jan Skovgaard
    0

    Hi Maxim

    You should be able to add the "MailFrom" parameter to the macro and then specify the e-mail you want to be the receiving e-mail. It also states that on the package page here http://our.umbraco.org/projects/website-utilities/cultiv-razor-contact-form

    Does that help?

    /Jan

  • Maxim 50 posts 69 karma points
    Jun 02, 2014 @ 18:18
    Maxim
    0

    Hi jan,

    When i put to code into the template i get this 'error':
     

    When i put the file in a macro and put the macro into my template it works well but then i can't change the mailfrom.

    this is how i implemented it: 

     

     

  • Maxim 50 posts 69 karma points
    Jun 03, 2014 @ 14:46
    Maxim
    0

    It just ignored my lay-out. Now i implemented it like this:

    <p>@Umbraco.Field("bodyText")</p>
            @Umbraco.RenderMacro("Contactform")
            </section>  

    Yet i don't know where i can change the Mailfrom. Also if I look into the macro i can't find the mailfrom

  • Jan Skovgaard 11264 posts 23592 karma points MVP 8x admin c-trib
    Jun 03, 2014 @ 21:21
    Jan Skovgaard
    0

    Hi Maxim

    Ok, according to the package page MailFrom="[email protected]" should be added as a parameter. But the example provided is using an older way of doing it. If I'm not mistaken I think you could add the parameter like this...

    @Umbraco.RenderMacro("Contactform", MailFrom: [email protected])
    

    Does that work?

    /Jan

  • Maxim 50 posts 69 karma points
    Jun 04, 2014 @ 16:03
    Maxim
    0

    No, it doesn't work.
    Even if i set the mail adress like this:

    @Umbraco.RenderMacro("Contactform",MailFrom: "[email protected].com")

    Also when i add MailFrom: it stays black the text tho

  • Maxim 50 posts 69 karma points
    Jun 04, 2014 @ 16:05
    Maxim
    0

  • Jan Skovgaard 11264 posts 23592 karma points MVP 8x admin c-trib
    Jun 04, 2014 @ 16:12
    Jan Skovgaard
    0

    Hi Maxim

    Sorry, think I got the Razor syntaxes and possibilities mixed up. I'm not sure how you can make it work. But hopefully some of the other bright minds in here can.

    /Jan

  • Maxim 50 posts 69 karma points
    Jun 04, 2014 @ 16:47
    Maxim
    0

    i hope so cus i need to get it fixed by tomorrow morning, Do you know how i can restore my migration from sql CE to server SQL? I tried it but it went wrong, now i can't login on umbraco anymore

  • Maxim 50 posts 69 karma points
    Jun 08, 2014 @ 18:28
    Maxim
    0

    hi,

    I isn't solved yet. Because the macro is written in DynamicNode razor. And umbraco 7 doesn't support that. You know how i can solve this?

Please Sign in or register to post replies

Write your reply to:

Draft