How to create a mail form need help

Author Message

sangib das

Thursday 12 October 2006 10:11:29 pm

Hi All
I want to create a mail from to user site. The form must be consist of
1.Name(textbox)
2.Address(textbox)
3Mail(user will enter his or her mail)
4.Submit button.
After pressing sumit button that information will comes to this mail root@gmail.com.
plese help me..................................

Marius Eliassen

Friday 13 October 2006 6:19:25 am

Create a new class

Specify a name for the collection form, call it name, should be a textfield, this should NOT be an information collector.

First field should be textfield, call it form_name, also check the checkbox "Information collector".
Second field should be textfield, call it form_address, also check "information collector".
Same for third field, only this could be a form_email field, also check "information collector".

Create a new object of this class, this will allow users to fill out the form.
Note that when you create this object, leave the "collection information" fields empty.

In your ini settings, under site.ini, you can change the email you want to use with collectionforms:

[InformationCollectionSettings]
EmailReceiver=root@gmail.com

Good luck

Abdul Rehman

Friday 13 October 2006 1:56:34 pm

Hi Eliassen,
I want to attach a file with this e-mail. How I can handle with this approach, since file attribute is not an information collector. Plz, help me regarding this. It will be great for me. So for I am struck.

Thanks in advance.
Waiting

Marius Eliassen

Saturday 14 October 2006 6:43:00 am

Abdul i think you have to create your own module and use eZ publish mail classes to send your email.

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

eZ debug

Timing: Jan 31 2025 05:33:11
Script start
Timing: Jan 31 2025 05:33:11
Module start 'layout'
Timing: Jan 31 2025 05:33:11
Module start 'content'
Timing: Jan 31 2025 05:33:12
Module end 'content'
Timing: Jan 31 2025 05:33:12
Script end

Main resources:

Total runtime0.0166 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.1563151.2109
Module start 'layout' 0.00590.0032 739.367236.6484
Module start 'content' 0.00920.0058 776.015690.0469
Module end 'content' 0.01500.0015 866.062533.9922
Script end 0.0165  900.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002514.8845140.0002
Check MTime0.00116.5802140.0001
Mysql Total
Database connection0.00105.915810.0010
Mysqli_queries0.003118.787230.0010
Looping result0.00000.132310.0000
Template Total0.00116.910.0011
Template load0.00095.222710.0009
Template processing0.00031.663710.0003
Override
Cache load0.00063.642410.0006
General
dbfile0.00116.455180.0001
String conversion0.00000.059040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs