tags:

views:

70

answers:

4

what is best way to send email from PHP using server authantication.

Userid & Password & outgoing mail server...

Thanks

+3  A: 

Use the PEAR Mail module. See the PHP: mail documentation.

mtwstudios
Note that the link is to a specific comment on the page, about the PEAR module `Mail::`, which provides the functionality about which the question asked.
Isaac
+2  A: 

The simple answer is to use a library like one of the following:

  • SwiftMailer
  • phpMailer
  • Zend_Mail
prodigitalson
+3  A: 

Zend_Mail supports SMTP authentication

raspi
+2  A: 

One of many ways, it really depends how your scripts works. More info would be helpful. But you could just create a method that accepts the userid and password, validate the user against your database, and, if true send the email.

gnome
Hes probably trying to send specifically with a certain SMTP account so i dont think this is really a potential solution.
prodigitalson