Form settings, How to send 'Thank you' mail with attachment ?

Author Message

J-A Eberhard

Sunday 03 April 2005 3:19:51 am

Hi,
I created a new Class for contact form that should allow an anonymous user to fill some info and his email address.
Once it's done, the admin get an email and the anonymous user receive a mail (at his email address) that include a special message and an attachment (PDF).
The problem is that with default behavior, the admin get the email but the anonymous user get nothing. So the questions are:
- How to setup (the template? the workflow?) to trigger a 'Thank you' email?
- How to attach a file (or more than one file) to this email (With the Object relation list?).
Thanks in advance for your help.
Jacques-André

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Łukasz Serwatka

Sunday 03 April 2005 11:51:44 pm

Hi,

You will have to create your own module which simply send out the email with attachment. Create form, and after submit pass variables to custom module and send it via e-mail.

Here you find document about how to create custom module
http://ez.no/ez_publish/documentation/development/extensions/module/hello_world

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 20 2025 20:00:11
Script start
Timing: Jan 20 2025 20:00:11
Module start 'layout'
Timing: Jan 20 2025 20:00:11
Module start 'content'
Timing: Jan 20 2025 20:00:12
Module end 'content'
Timing: Jan 20 2025 20:00:12
Script end

Main resources:

Total runtime1.1666 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.1719151.2422
Module start 'layout' 0.00560.0030 739.414136.7109
Module start 'content' 0.00861.1571 776.1250559.5938
Module end 'content' 1.16570.0009 1,335.71887.7813
Script end 1.1666  1,343.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2514160.0002
Check MTime0.00120.1038160.0001
Mysql Total
Database connection0.00080.069610.0008
Mysqli_queries1.126796.5806540.0209
Looping result0.00050.0437520.0000
Template Total1.123796.320.5619
Template load0.00210.178120.0010
Template processing1.121696.145820.5608
Template load and register function0.00010.006710.0001
states
state_id_array0.00210.180410.0021
state_identifier_array0.00230.194420.0011
Override
Cache load0.00170.1436180.0001
Sytem overhead
Fetch class attribute can translate value0.00040.037820.0002
Fetch class attribute name0.00080.070840.0002
XML
Image XML parsing0.00080.072520.0004
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00280.2413230.0001
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs