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
[email protected]
[email protected]
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) "[email protected]"
}

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