Forums / Developer / Form process problem to send email

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.

eZ debug

Timing: Jan 19 2025 06:24:36
Script start
Timing: Jan 19 2025 06:24:36
Module start 'content'
Timing: Jan 19 2025 06:24:36
Module end 'content'
Timing: Jan 19 2025 06:24:36
Script end

Main resources:

Total runtime0.8400 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.9766180.8281
Module start 'content' 0.00580.6920 769.8047548.2422
Module end 'content' 0.69770.1422 1,318.0469336.7422
Script end 0.8399  1,654.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4871210.0002
Check MTime0.00140.1620210.0001
Mysql Total
Database connection0.00060.077410.0006
Mysqli_queries0.763790.91721940.0039
Looping result0.00200.23421920.0000
Template Total0.812696.720.4063
Template load0.00200.236720.0010
Template processing0.810696.503520.4053
Template load and register function0.00020.023610.0002
states
state_id_array0.00140.169810.0014
state_identifier_array0.00110.136920.0006
Override
Cache load0.00170.2044610.0000
Sytem overhead
Fetch class attribute can translate value0.00110.129530.0004
Fetch class attribute name0.00100.122440.0003
XML
Image XML parsing0.00100.117830.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00170.2068270.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs