previousMail (Previous) (Next) Mail::factory()next

View this page in Last updated: Sun, 28 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Introduction

Introduction – How to send a mail and the mailer backends

How To send a mail

Mail supports different types of backends to send email. So two steps are necessary to send an email.

  • Step 1

    Create a new instance of a specific Mail-Backend with the factory() method.

  • Step 2

    Send the mail using the send() method.

The mailer backends

Mail supports three types of backends:

  • mail

    Sends a mail using PHP's built-in mail() function.

  • sendmail

    Sends a mail using a sendmail program.

  • smtp

    Sends a mail directly connecting to a smtp server.

previousMail (Previous) (Next) Mail::factory()next

Download Documentation Last updated: Sun, 28 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: jace
See http://email.about.com/od/emailprogrammingtips/qt/et073006.htm

for a useful example of sending mail with SMTP authentication.