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 [email protected].
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]
[email protected]

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.