Moving discussion to the "formats" mail list.
I documented the bug, and a proposed solution:
http://framework.zend.com/issues/browse/ZF-455
As always, comments, reviews, patches, documentation, and unit tests are
needed.
If you only have time for one of these, your contribution is still
welcomed :)
http://framework.zend.com/wiki/x/GgE
Cheers,
Gavin
Manu Goel wrote:
Hi André,
I am so sorry for providing incomplete details. And thanx for your
feedback.
I think we dont have to use connect() till the time we are not sending
multiple mails using the same transport. And in my case I am going to
use multiple transports.
Actually, it was taking port 25 as the default, even after setting the
"smtp_port " in php.ini. This was the Warning shown
*Warning*: stream_socket_client() [function.stream-socket-client
<http://v1-6/view/function.stream-socket-client>]: unable to connect
to tcp://mail.value-one.com:25 <http://one.com:25> (A connection
attempt failed because the connected party did not properly respond
after a period of time, or established connection failed because
connected host has failed to respond. ) in
*c:\wamp\www\library\Zend\Mail\Transport\Smtp.php* on line *97*
So, as a result i was not getting any mails. I looked at the class
definition for a while and then found the following simple solution.
instead of using this:
$tr = new Zend_Mail_Transport_Smtp( ' mail.value-one.com
<http://mail.value-one.com/>' );
use this:
$tr = new Zend_Mail_Transport_Smtp( ' mail.value-one.com
<http://mail.value-one.com/>', '521' );
This works just fine, although I have not tried it with attachments as
yet. Now, my question is, is this the only way?? How can I make this a
global setting so that I dont have to mention it everytime.
regards,
Manu Goel
On 10/18/06, *André Hoffmann* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:
Don't you have to _connect() when using SMTP?
It might also be useful to hear what is not working, from your
mail I'm guessing you don't receive the mail you send. Is there
any Exception thrown?
On 10/18/06, *Manu Goel* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Hi,
I needed to use the Zend Mail API from the Zend Framework. I
have done the following configuration but it is not working
1) PHP.INI
SMTP = " mail.e11online.com <http://mail.e11online.com>"
smtp_port = 521
sendmail_from = [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
--
Cheers,
Gavin
Which ZF List?
=================
Everything, except the topics below: [email protected]
Authorization, Authentication, ACL, Access Control, Session Management
[EMAIL PROTECTED]
Tests, Caching, Configuration, Environment, Logging
[EMAIL PROTECTED]
All things related to databases
[EMAIL PROTECTED]
Documentation, Translations, Wiki Manual / Tutorials
[EMAIL PROTECTED]
Internationalization & Localization, Dates, Calendar, Currency, Measure
[EMAIL PROTECTED]
Mail, MIME, PDF, Search, data formats (JSON, ...)
[EMAIL PROTECTED]
MVC, Controller, Router, Views, Zend_Request*
[EMAIL PROTECTED]
Community Servers/Services (shell account, PEAR channel, Jabber)
[EMAIL PROTECTED]
Web Services & Servers (HTTP, SOAP, Feeds, XMLRPC, REST)
[EMAIL PROTECTED]
How to un/subscribe: http://framework.zend.com/wiki/x/GgE