Trouble with sendMail function in ezsmtptransport.php

Author Message

Graham Tillotson

Thursday 21 August 2003 3:47:49 pm

I'm trying to setup SMTP email in the Windows version of ezPublish 3.1 and I can't get a FROM value to show up in my messages. The mail is going out and everything looks fine except for the missing FROM value.

As a test, I stubbed out the values as shown in the sendMail function in ezsmtptransport.php:

$sendData = array();
// $sendData['from'] = $mail->senderText();
$sendData['from'] = 'graham.tillotson@savogroup.com';
$sendData["recipients"] = $mail->receiverTextList();
$sendData['headers'] = $mail->headerTextList();
//$sendData['body'] = $mail->body();
$sendData['body'] = 'test for stub message';

The test message for the body comes through, but I still get nothing for the FROM address. Any ideas on how to fix this? I have the default sender setup in site.ini.append:

# The address which will be set at the sender of the e-mail as default
EmailSender=graham.tillotson@savogroup.com

but this doesn't get picked up either. Safe mode is off and the view cache is disabled.

Thanks,
GRT

DUO : CONSULTING
Web content management experts
www.duoconsulting.com

Jan Borsodi

Tuesday 26 August 2003 8:14:50 am

It could be that the SMTP version on the server is not compatible with the SMTP class we have. Do you get some errors in the debug (must be turned on too se it).

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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 22:21:36
Script start
Timing: Jan 18 2025 22:21:36
Module start 'layout'
Timing: Jan 18 2025 22:21:36
Module start 'content'
Timing: Jan 18 2025 22:21:37
Module end 'content'
Timing: Jan 18 2025 22:21:37
Script end

Main resources:

Total runtime0.6033 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.0053 588.1641152.6563
Module start 'layout' 0.00530.0028 740.820339.5234
Module start 'content' 0.00810.5939 780.3438531.4609
Module end 'content' 0.60200.0013 1,311.804712.1094
Script end 0.6033  1,323.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.4812160.0002
Check MTime0.00120.2052160.0001
Mysql Total
Database connection0.00070.115510.0007
Mysqli_queries0.559492.7123540.0104
Looping result0.00040.0678520.0000
Template Total0.579196.020.2895
Template load0.00210.339920.0010
Template processing0.577095.637520.2885
Template load and register function0.00010.022910.0001
states
state_id_array0.00070.111410.0007
state_identifier_array0.00080.126520.0004
Override
Cache load0.00160.2702220.0001
Sytem overhead
Fetch class attribute can translate value0.00060.095620.0003
Fetch class attribute name0.00100.164940.0002
XML
Image XML parsing0.00120.197620.0006
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00090.1465230.0000
String conversion0.00000.001840.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs