I get no email content with or i get the line: either document or chunk couldnt be found for id
my snippet call is: [!eForm? &formid=`kontakt` &subject=`kontaktformulär` &sendirect=`1` &tpl=`kontaktformular` &thankyou=`formular_klar`!]
and my chunk is:
<div id=form1>
<p><span style="color:#900;">[+validationmessage+]</span></p>
<form id="kontakt" action="[~[*id*]~]" method="post" enctype="multipart/form-data">
<p>
<label>Ditt namn och företag: </label> </br>
<input class="field" type="text" name="fullName" size="40" maxlength="60" eform="Your Name:string:1:Ert namn och företag krävs" />
</p>
<p>
<label>Ditt telefonnummer eller epost: </label></br>
<input class="field" type="text" name="email" size="40" maxlength="40" eform="Email Address:email:1" />
</p>
<p><label>Dina frågor/synpunkter: </label></br>
<textarea class="field" name="article" eform="Article:html:1" rows="10" cols="40"></textarea></p>
<input type="submit" name="frmGo" value="Skicka" />
</form>
</div>
The man, the myth
-
☆ A M B ☆
- 24,524 Posts
the content for the email comes from the "&report=`chunk-name`" parameter, so you need to make another chunk using the placeholders to generate the body for your email.
Ok, i fixed that problem. Now my probem is that the email is sent to the email that is written in the form. I want it sent only to a specific adress.
My snippet call:
[!eForm? &formid=`kontakt` &subject=`kontaktformular` &sendirect=`1` &tpl=`kontaktformular` &report=`kontakt_mail` &thankyou=`formular_klar`!]
The man, the myth
-
☆ A M B ☆
- 24,524 Posts
The "senddirect" parameter is causing it to do that. Get rid of that and use the &to=`
[email protected]` parameter to send it wherever you want.
# &to (Optional)
Email address to send eForm information to For multiple recipients separate emails with a comma (,) If omitted the site settings email address will be used
# &sendirect (Optional)
This will use the form field called email to supply the email address to send the message to. Set to 1 to activate send direct. Defaults to 0
I tried that but it doesnt seem to work.
The man, the myth