Form process problem to send email

Author Message

Simon Caisse

Monday 21 November 2005 5:10:56 pm

I created a template for a form to be sent by email. I am able to display the form but I don’t receive any emails. Below is the code for the template.

 

I tried with the hidden field MailSendTo and without it but I never receive anything by mail….
I also changed the email address to mine for the administrator.
I also enabled the form process in site.ini

Would you know if there is anything else I should look at?

 

Thank you

 

Simon

 

 

<form action={"/form/process"|ezurl} method="post">

 

<table width="100%" border="1" cellpadding="2" cellspacing="0">

<tr>

<td>Name</td>

<td>Branch</td>

<td>Phone extension</td>

</tr>

<tr>

<td><input type="text" name="name" value="" /></td>

<td><input type="text" name="branch" value="" /></td>

<td><input type="text" name="ext" value="" /></td>

</tr>

</table>

 

<input type="hidden" name="MailSubject" value="Request for Payment" />

<input type="hidden" name="MailSendTo" value="my_address@intranet.com.au" />

<input type="hidden" name="RedirectTo" value="http://10.4.3.25/intranet" />

<input class="button" type="submit" value="Send" />

 

 

</form>

<input class="button" type="submit" value="Send" />

 

 

</form>

Nathan Kelly

Monday 21 November 2005 8:18:29 pm

Hi Simon, it looks like you are trying to create a static form, have you considered creating a new content class via "admin -> setup -> classes".

If you create your form as a content class you can then use eZpublish's built in information collection features.

If you are new to eZpublish you should have a look at the docs, there is a lot of info in there that will save some frustration.

I suggest you look at:

http://ez.no/doc
http://ez.no/doc/ez_publish/technical_manual/3_6/concepts_and_basics/content_management/class_attributes
http://ez.no/doc/ez_publish/technical_manual/3_6/concepts_and_basics/content_management/information_collection
http://ez.no/doc/ez_publish/technical_manual/3_6/reference/content_classes/content/feedback_form

Also look at some of the pre-made templates to see how they work, the main ones you should need to look at are lacated in:
<b>
"/design/base/override/templates/full/feedback_form.tpl"
"/design/base/override/templates/collectedinfomail/feedback_form.tpl"
</b>
Have a look at that, if you still have any questions I'll see what I can do.

Cheers!

Pardon me while I burst into flames...

Simon Caisse

Monday 21 November 2005 8:29:04 pm

Thanks for your answer, I will try information collector.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.