I am just getting started with Contour and ran into first problem with a "Tip-a-friend" form with name, email and a message that send an email with the current page URL to the given email.
To go this:
[done] Create a form with input fields for friends name, friends email, senders name and a message
[done] Add regex validation for a corerct email for the friend email input field and make it a mandatory field
[???] Set up workflow that will send a mail to the mailaddress in the friend email input field...
I also need to send the current pages URL in the bodytext in the email, but I guess that should be possible if I can just get the problem solved with sending an email to an address written in an input field.
Did you read the developer's doc, especially on 'Adding a workflow type to Umbraco Contour' (page 11) (i'm not sure whether this is already public as I can 't find a public link to the guide)? Basically, you'll need to build a new class which inherits from 'WorkflowType' and implement the Execute() method. Method is fed with the record which is being submitted, so you should be able get the email field from there.
No, I haven't really gone through the manual. Do have the link, as inserted here above. But sine I cannot do any C# programming myself then the developer docs are tough reading.
I hoped that I could reference an input field out-of-the-box e.g. using the unique ID and send a mail to it. Otherwise a workaround could be to post form to an URL and send mail using XSLT on that page...
Send mail to input field
Hello
I am just getting started with Contour and ran into first problem with a "Tip-a-friend" form with name, email and a message that send an email with the current page URL to the given email.
To go this:
I also need to send the current pages URL in the bodytext in the email, but I guess that should be possible if I can just get the problem solved with sending an email to an address written in an input field.
BR. Anders
Hi Anders,
Did you read the developer's doc, especially on 'Adding a workflow type to Umbraco Contour' (page 11) (i'm not sure whether this is already public as I can 't find a public link to the guide)? Basically, you'll need to build a new class which inherits from 'WorkflowType' and implement the Execute() method. Method is fed with the record which is being submitted, so you should be able get the email field from there.
Hope this helps.
Regards,
/Dirk
http://umbraco.org/pro-downloads/Contour%20Developer%20Docs.pdf
No, I haven't really gone through the manual. Do have the link, as inserted here above. But sine I cannot do any C# programming myself then the developer docs are tough reading.
I hoped that I could reference an input field out-of-the-box e.g. using the unique ID and send a mail to it. Otherwise a workaround could be to post form to an URL and send mail using XSLT on that page...
Br. Anders
is working on a reply...