Forums / Setup & design / Setting from/reply-to address in e-mails sent to a field in objects or forms submitted

Setting from/reply-to address in e-mails sent to a field in objects or forms submitted

Author Message

Kjell Knudsen

Friday 27 August 2004 2:12:21 am

What file would I go to to find this?

I'd like to make it so that my users can just reply to e-mails they get through the site. Without having to replace my/system from e-mail address with the one found inside the message.

Is there a email_sender option just like email_receiver? How to use?

If not - where's the file in the kernel that communicates with sendmail?

-kjell

Kjell Knudsen
http://www.icbl.org

Ole Morten Halvorsen

Monday 30 August 2004 4:59:03 am

Kjell,

In site.ini:

[MailSettings]
# The address which will be set as the sender of the e-mail as default
EmailSender=

You can find the code for sending mails in lib/ezutils/classes/ezmail.php and lib/ezutils/classes/ezmailtransport.php

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Kjell Knudsen

Monday 30 August 2004 6:08:14 am

thanks Ole Morten,

so if I don't set that value in site.ini it will use some value in the form?

-kjell

Kjell Knudsen
http://www.icbl.org

Ole Morten Halvorsen

Monday 30 August 2004 7:15:04 am

If EmailSender is not set it will try AdminEmail instead.

From lib/ezutils/classes/ezsendmailtransport.php:
function sendMail( &$mail )
{
    $ini =& eZINI::instance();
    $emailSender = $ini->variable( 'MailSettings', 'EmailSender' );
    if ( !$emailSender )
        $emailSender = $ini->variable( 'MailSettings', 'AdminEmail' );
...

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Kjell Knudsen

Monday 30 August 2004 7:31:42 am

ok - had a look at this and see that it should be feasible to setup to use a field from the content class to specify the from address.
Ie I want to have it so that when users give feedback on a news article online or use online contact form they come up as the sender.

But am a bit at loss as to exactly how to use - is there an easy FAQ or something for this?

-kjell

Kjell Knudsen
http://www.icbl.org

eZ debug

Timing: Jan 31 2025 01:30:05
Script start
Timing: Jan 31 2025 01:30:05
Module start 'content'
Timing: Jan 31 2025 01:30:05
Module end 'content'
Timing: Jan 31 2025 01:30:06
Script end

Main resources:

Total runtime0.1742 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 588.5313370.2422
Module start 'content' 0.00760.0126 958.77341,005.8281
Module end 'content' 0.02020.1540 1,964.60163,893.9141
Script end 0.1742  5,858.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00442.5165200.0002
Check MTime0.00140.7840200.0001
Mysql Total
Database connection0.00100.590110.0010
Mysqli_queries0.085348.95641410.0006
Looping result0.00120.67901390.0000
Template Total0.153688.210.1536
Template load0.00070.376510.0007
Template processing0.153087.799510.1530
Override
Cache load0.00040.254310.0004
Sytem overhead
Fetch class attribute can translate value0.00201.145010.0020
XML
Image XML parsing0.00020.126310.0002
General
dbfile0.00693.9812200.0003
String conversion0.00000.014230.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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