Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

UserForms SS3 Custom E-Mail Template

Go to End

3 Posts   1750 Views


Community Member, 22 Posts

15 February 2013 at 1:56am


I'm using the awesome UserForms Module, it works perfect but the E-Mail Template looks terrible :D

I tried to edit the but i got some problems.

1. Even if I delete $Body, the standard html tags were included. ( <!doctype html ... <html><head> ...<body> )
2. Is there a way to get the created forms by Variable? For example like this: $Field01, $Field02 or <% control Fields.First %>
<% control Fields.Second %> or something like this.
3. Have someone a modified, simple, template where i can have a look at?

thx for your help

- hobenni


Forum Moderator, 5523 Posts

16 February 2013 at 4:03pm

1) The <html> tag is probably included by the SilverStripe mailer internally ( Make sure your new email goes into the Email templates folder and you do a ?flush=1

2) You can use <% control Fields %><% if Pos == 1 %>..<% if Pos == 2.. etc.


Community Member, 22 Posts

18 February 2013 at 10:13pm

1)can i delete the code out of the mailer.php without messing up with some other functions in ss?

2)thx i'll do it like this :)