Re: mail - sendmail
| From: | Richard Lynch | Date: | Fri, 03 Aug 2001 02:57:22 +0000 |
| Subject: | Re: mail - sendmail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61060@lists.php.net to get a copy of this message | ||
> I wanted to use the full SMTP-Protocol including "MAIL FROM:" and "RCPT
> TO:", and therefore I can't use mail().
Okay.
> I have written a perl-script, I call from PHP, that connects to the
You could have done this from PHP you know...
http://php.net/fsockopen
Using PHP to fire up Perl is not real efficient.
Also, there are innumerable PHP SMTP scripts out there you could just steal
instead of writing your own...
Manuel Lemos' UppderDesign.com class object repository has one that's
popular.
Even does attachments for you.
> SMTP-server directly and this worked fine - until a server went down, and
my
> ISP's-SMTP-Server told my perl-script, that the emailaddress is not
routable.
> If the mail had been in a mailqueue, no problem - after a few hours it
would
> be up again!
I think there's some command you can send to SMTP just like MAIL FROM: and
RCPT TO: that tells it to queue stuff instead of doing it now. I have no
idea what it is that you have to send though... If you find out, tell me.
I need it to. :-)
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm