RE: [PHP-DB] mail server

2001-03-07 Thread Michael J. Upchurch

The function ini.set() should be the one to use, but it doesn't set all
options for security reasons.  See
http://www.php.net/manual/en/function.ini-set.php for details.  You should
also check the annotations for email functions for other options.

Michael J. Upchurch
Partner2Partner Communications, LLC

-Original Message-
From: Free Beachler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 11:48 AM
To: [EMAIL PROTECTED]
Subject: [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]




Re: [PHP-DB] mail server

2001-03-07 Thread JJeffman

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 maro 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]




Re: [PHP-DB] mail server

2001-03-07 Thread Miles Thompson

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 maro 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]