Re: mail server

From: Date: Thu, 08 Mar 2001 03:14:02 +0000
Subject: Re: mail server
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-7178@lists.php.net to get a copy of this message
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 // php@paulschreiber.com // 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
//                    "foo@foobar.com",         // sender's email
//                    array("paul@foobar.com", "foo@bar.com"), // To: recipients
//                    "paul@whereever.com"      // 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 <bfree1@uswest.net> Para: <php-db@lists.php.net> 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('bfree1@uswest.net', '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: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.db (#7178) next »