Hi Tim!
[22.06.2007 12:21] Tim Weyand wrote:
> [Zend_Mail_Transport_Smtp]
> I am missing the "connect()" and "disconnect()" function, which is
> described
> in the current manual. These funktions could solve some problems of
> mine.
What I've seen in the code you don't have to call connect() and
disconnect() any longer.
Simon is this correct? I'll update the docs.
> [Zend_Mail]
>
> first problem :
>
> If i send an email to a emailadress of our company the email body gets
> broken appart. For example freenet-ag.de breaks the message,
> freenet.ag or
> freenet.de does not break the message appart.
>
> Code Example:
> $Mail = new Zend_Mail;
> $transport = new Zend_Mail_Transport_Smtp(mailserver);
> Zend_Mail::setDefaultTransport($transport);
>
> $Mail->setFrom('
some.mailadress@...','Tim Weyand');
> $Mail->addTo('
another.mailadress@...','Tim Weyand');
> $Mail->setSubject('Test Mail'); $Mail->setBodyText('This is a test.
> The
> Email Adress will break this Message a part! It will only occure on
> longer
> Mails. HTML Mails are unviewable.'); $Mail->send();
That's the old newline problem. There's currently no fix, sorry - see
http://framework.zend.com/issues/browse/ZF-1041But there's at least a workaround. You can change the encoding in
setBodyText() and setBodyHtml() with the third parameter.
> second problem :
>
> International domains seem to not work. I get a exception "501
> 5.5.4 Invalid
> Adress", if i add a valid international email domain to the
> receipient list.
> The tested domain was "tüsten.de".
This error message is from your SMTP. One solution I could think of
is translating the IDN to punycode. But there's no such component in
ZF; maybe
http://pecl.php.net/package/idn helps.
> Feature "Wish" :
> Could "delTo", "delCc", "delBcc", "delSubject", "delFrom" methods
> be added
> to Zend_Mail?
Not in 1.0. I've created a new task
http://framework.zend.com/issues/
browse/ZF-1626 and will look into it. To you have a use-case so I can
understand why and when you need it?
> best regards,
> Tim Weyand
>
> Freenet AG
nico