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 – Comment envoyer un email et les back-ends d'envoi de mails

Comment envoyer un email

Mail supporte differents types de back-end pour l'envoi d'email. En tout cas deux étapes sont nécéssaires pour l'envoi d'email.

  • Etape 1

    Créer une instance d'un back-end spécifique (Mail-back-end) avec la methode factory().

  • Etape 2

    Envoyer un email en utilisant la méthode send() .

Le back-end mailer

Mail supporte trois types de back-ends:

  • mail

    Envoie un mail en utilisant la fonction mail() interne à PHP.

  • sendmail

    Envoie un email en utilisant directement le programme sendmail.

  • smtp

    Envoie un email en se connectant directement à un serveur smtp.

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.