Tip a friend : problem with sender email

Author Message

Anthony M.

Friday 21 November 2008 2:16:14 am

Hi,

i would like to modify the sender email when i send the form 'tip a friend'.
i modified the file 'design/mysiteaccess/templates/content/tipafriendmail.tpl' like this :

{set-block scope=root variable=email_receiver}{ezini('receiver','mail_contact', 'myconfig.ini')}{/set-block}
{set-block scope=root variable=subject}test subject{/set-block}
{set-block scope=root variable=email_sender}{ezini('sender','mail_sender', 'myconfig')}{/set-block}

but it's always the email sender which is sent with the form...

Can you help me please ?

Thanks a lot

Anthony

Stéphane Bullier

Friday 21 November 2008 10:43:17 am

Hello,

You have to use the field "ReceiversEmail" into the form :

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

<div class="block">
<label>{"Your name"|i18n("design/ezwebin/content/tipafriend")}</label><div class="labelbreak"></div>
<input class="box" type="text" size="40" name="YourName" value="{$your_name|wash}" />
</div>

<div class="block">
<label>{"Your email address"|i18n("design/ezwebin/content/tipafriend")}</label><div class="labelbreak"></div>
<input class="box" type="text" size="40" name="YourEmail" value="{$your_email|wash}" />
</div>

<div class="block">
<label>{"Recipient's email address"|i18n("design/ezwebin/content/tipafriend")}</label><div class="labelbreak"></div>
<input class="box" type="text" size="40" name="ReceiversEmail" value="{$receivers_email|wash}" />
</div>

<div class="block">
<label>{"Comment"|i18n("design/ezwebin/content/tipafriend")}</label><div class="labelbreak"></div>
<textarea class="box" cols="40" rows="10" name="Comment">{$comment|wash}</textarea>
</div>

<div class="buttonblock">
<input class="button" type="submit" name="SendButton" value="{'Send'|i18n('design/ezwebin/content/tipafriend')}" />
<input class="button" type="submit" name="CancelButton" value="{'Cancel'|i18n('design/ezwebin/content/tipafriend')}" />
</div>

<input type="hidden" name="NodeID" value="{$node_id}" />

</form>

Stéphane

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 18 2025 15:54:43
Script start
Timing: Jan 18 2025 15:54:43
Module start 'layout'
Timing: Jan 18 2025 15:54:43
Module start 'content'
Timing: Jan 18 2025 15:54:43
Module end 'content'
Timing: Jan 18 2025 15:54:43
Script end

Main resources:

Total runtime0.7567 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.0055 588.0313152.6406
Module start 'layout' 0.00550.0028 740.671939.4609
Module start 'content' 0.00830.7470 780.1328527.3203
Module end 'content' 0.75530.0013 1,307.453112.1406
Script end 0.7566  1,319.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4703160.0002
Check MTime0.00180.2361160.0001
Mysql Total
Database connection0.00080.104910.0008
Mysqli_queries0.712894.1974540.0132
Looping result0.00060.0776520.0000
Template Total0.724895.820.3624
Template load0.00200.266920.0010
Template processing0.722895.523620.3614
Template load and register function0.00020.028710.0002
states
state_id_array0.00100.130010.0010
state_identifier_array0.00080.099920.0004
Override
Cache load0.00170.2206150.0001
Sytem overhead
Fetch class attribute can translate value0.00070.096620.0004
Fetch class attribute name0.00110.145930.0004
XML
Image XML parsing0.00150.192720.0007
class_abstraction
Instantiating content class attribute0.00000.001430.0000
General
dbfile0.00230.3010160.0001
String conversion0.00000.000940.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs