Paul Schreiber has written, in PHP, an email class. His opening comments 
are given below, but ii doesn't do what you want. He might be worth 
emailing however.

If you were on a Linux/Unix/etc box you could use exim, as it can be 
configured to be either it's own SMTP mailer or to use the ISP's. Aren't 
there any open source mail programs for NT?

I don't think this would be very fast, but Python has an SMTP module which 
is very easy to use, but then you'd be invoking Python and calling a script 
every time you wanted to send something. Not an optimum solution.

Miles Thompson



////////////////////////////////////////////////////////////
//   EmailClass 0.5
//   class for sending mail
//
//   Paul Schreiber
//   [EMAIL PROTECTED]
//   http://paulschreiber.com/
//
//   parameters
//   ----------
//   - subject, message, senderName, senderEmail and toList are required
//   - ccList, bccList and replyTo are optional
//   - toList, ccList and bccList can be strings or arrays of strings
//     (those strings should be valid email addresses
//
//   example
//   -------
//   $m = new email ( "hello there",            // subject
//                    "how are you?",           // message body
//                    "paul",                   // sender's name
//                    "[EMAIL PROTECTED]",         // sender's email
//                    array("[EMAIL PROTECTED]", "[EMAIL PROTECTED]"), // To: 
recipients
//                    "[EMAIL PROTECTED]"      // Cc: recipient
//                   );
//
//       print "mail sent, result was" . $m->send();



At 06:17 PM 3/7/01 -0300, JJeffman wrote:
>I'm not sure but I think you must have a smtp server program running to
>configure as your smtp server.
>
>HTH.
>
>Jayme.
>
>
>-----Mensagem Original-----
>De: Free Beachler <[EMAIL PROTECTED]>
>Para: <[EMAIL PROTECTED]>
>Enviada em: quarta-feira, 7 de março de 2001 14:48
>Assunto: [PHP-DB] mail server
>
>
> > hi all,
> >      is there any way i can specify my own smtp server and override the
> > php.ini file?  i want to use
> > the mail command on my host and i keep getting this error:
> >
> > Warning: Unknown error in
> > D:\inetpub\nextepmedia\www\nexteplaunch\test_email.php on line 2
> >
> > ------------
> >
> > i just have a simple php file with a mail command to mail to me, something
> > like:
> >
> > mail('[EMAIL PROTECTED]', 'test email', 'line1\nline2\line3');
> >
> > ------------
> >
> > anyway, i'm on this NT host and they're not that good.  instead of having
> > them go into their php.ini file and see what's wrong i want to set my own
> > server (in the script) to point to our host's SMTP server.
> >
> > -f
> >
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to