Dec
1
2006

PHP send email using authenticated smtp server in real time

PHP has mail() function to send an email to users. However this mail() will not work:

=> If sendmail (or compatible binary) is not installed

=> If Apache Web server / Lighttpd running in chrooted jail

=> And your smtp server needs an authentication before sending an email

In all these cases you need to use PHP PEAR’s Mail:: interface. It defines the interface for implementing mailers under the PEAR hierarchy, and provides supporting functions which are useful in multiple mailer backends. In this tip you will learn about how to send an e-mail directly to client smtp server in real time.

[More in this Article...]

PHP send email using authenticated smtp server in real time

Originally from nixCraft by nixcraft

3 Responses so far

  1. sfondi sport April 11, 2007 3:28 am

    sfondi sport

    news

  2. rai sport April 11, 2007 3:28 am

    rai sport

    news

  3. sport attivita sportiva April 11, 2007 3:28 am

    sport attivita sportiva

    news

Leave a Comment

Name (required)

Email (required)

Website

Comments

2006 (c) Tech Tips, Using the ReviewSaurus Theme : Powered by WordPress