Forums / Setup & design / tip a friend error

tip a friend error

Author Message

Lance Leger

Tuesday 14 December 2004 1:21:30 pm

When I attempt to use the tip a friend option, I get the following error with 3.5.0rc2:

Error sending SMTP mail: No sender yet given

I confirmed that I have EmailSender= configured in settings/siteaccess/plain/site.ini.append.php and the SMTP server is configured in settings/override/site.ini.append.php

The feedback form appears to be sending e-mail correctly, however, this is the first time I attempt to use the tip a friend option. Is there more configuration required for this feature?

Balazs Halasy

Wednesday 15 December 2004 12:39:03 am

Hi,

I just tested this through an SMTP server and it seems to be working fine. I just did a "/content/tipafriend/<node_id>", filled in the necessery e-mail addresses and hit "Send". The sender should be set to the email address that is specified in the "Your email address" field. This is strange, there was another guy reporting a similar problem: http://ez.no/community/forum/setup_design/sending_form - too bad we're unable to reproduce this. Can you please reveal the exact environment that you're using (version numbers, SMTP server specs too please)?

Balazs

Lance Leger

Thursday 16 December 2004 6:30:16 pm

Mail server is Exim 3.36-2. Here is the eZ publish system information.

Site:
http://<your site here>/
Version:
3.5.0rc2 (3.5.0rc2)
SVN revision:
9998
Extensions:
ezpaypal
PHP
Version:
4.3.4
Extensions:
yp, xml, wddx, tokenizer, sysvshm, sysvsem, standard, sockets, shmop, session, posix, pcre, overload, mbstring, iconv, gettext, ftp, filepro, exif, dba, ctype, calendar, bz2, bcmath, zlib, openssl, apache, mysql, Zend Optimizer
Miscellaneous:
Safe mode is off.
Basedir restriction is off.
Global variable registration is on.
File uploading is enabled.
Maximum size of post data (text and files) is 15M.
Script memory limit is 42M.
Maximum execution time is 2000 seconds.

PHP Accelerator
A known and active PHP accelerator could not be found.
Webserver (software)
Name:
Apache
Version:
Apache/1.3.31 (Debian GNU/Linux) mod_perl/1.29 mod_ssl/2.8.18 OpenSSL/0.9.7d PHP/4.3.4
Modules:
The modules of the webserver could not be detected.
Webserver (hardware)
CPU:
Celeron (Mendocino) 534.557 MHz
Memory:
500.75 MB
Database
Type:
mysql
Server:
localhost
Socket path:
Not in use.
Database name:
<your database here>
Connection retry count:
0
Character set:
iso-8859-1 (Internal)
Slave database (read only)
There is no slave database in use.

Norman Leutner

Thursday 20 January 2005 10:52:06 am

Error sending SMTP mail: No sender yet given
is returned within the ezsmtp class from the SMTP Server.

I`m currently having the same problem, seems like authentification with the SMTP Server is not correct, maybe a parameter within the send function is missing.

I`m currently testing with a SMTP Server from 1&1 which needs authentification to send mail.

[MailSettings]
Transport=SMTP
TransportServer=smtp.1und1.com
TransportPort=25
TransportUser=MAILBOX
TransportPassword=PASSWORD
AdminEmail=xxx@xxx.com
EmailSender=xxx@xxx.com
AllowedCharsets[]
AllowedCharsets[]=us-ascii
AllowedCharsets[]=utf-8
AllowedCharsets[]=iso-8859-1
AllowedCharsets[]=iso-8859-15
AllowedCharsets[]=cp1252
OutputCharset=utf-8
ContentType=text/plain
HeaderLineEnding=%0D%0A

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Norman Leutner

Thursday 20 January 2005 1:20:00 pm

Ok, I got it...

The problem is within the tipafriend.tpl, the

<input class="box" type="text" size="40" name="YourName" value="{$your_name|wash}" />
<input class="box" type="text" size="40" name="YourEmail" value="{$your_email|wash}" />

overrides the $mail->Sender(), which should be set to your mailbox data
to authentificate correctly with the SMTP Server.

array(2) {
  ["name"]=>
  string(14) ""
  ["email"]=>
  string(19) "admin@myezsite.com"
}

is overwritten to:

array(2) {
  ["name"]=>
  string(14) "$your_name"
  ["email"]=>
  string(19) "$email"
}

Therefore the SMTP Server returns:

SMTP<< 451 rejected: temporarily unable to verify sender address (try aga=
in later) <$email>
  SMTP<< 503 No sender yet given

The tipafriend.tpl should be modified to work correctly with SMTP Servers which need authentification.

Hint: The feedback package is not affected by that problem and works fine !

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

eZ debug

Timing: Jan 18 2025 11:24:01
Script start
Timing: Jan 18 2025 11:24:01
Module start 'content'
Timing: Jan 18 2025 11:24:02
Module end 'content'
Timing: Jan 18 2025 11:24:03
Script end

Main resources:

Total runtime1.1464 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.6094180.8438
Module start 'content' 0.00660.9663 768.4531632.1719
Module end 'content' 0.97280.1735 1,400.6250341.3984
Script end 1.1464  1,742.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3428210.0002
Check MTime0.00150.1299210.0001
Mysql Total
Database connection0.00100.085110.0010
Mysqli_queries1.036490.40572020.0051
Looping result0.00230.20212000.0000
Template Total1.110096.820.5550
Template load0.00210.179020.0010
Template processing1.108096.646220.5540
Template load and register function0.00020.015510.0002
states
state_id_array0.00170.144210.0017
state_identifier_array0.00140.121220.0007
Override
Cache load0.00190.16871030.0000
Sytem overhead
Fetch class attribute can translate value0.00080.072640.0002
Fetch class attribute name0.00100.088780.0001
XML
Image XML parsing0.00370.319240.0009
class_abstraction
Instantiating content class attribute0.00000.0016100.0000
General
dbfile0.00520.4505400.0001
String conversion0.00000.001530.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs