[ Index ]
 

Code source de DokuWiki 2006-11-06

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/inc/ -> mail.php (sommaire)

Mail functions

Author: Andreas Gohr <andi@splitbrain.org>
License: GPL 2 (http://www.gnu.org/licenses/gpl.html)
Poids: 224 lignes (7 kb)
Inclus ou requis: 2 fois
Référencé: 0 fois
Nécessite: 1 fichier
 inc/utf8.php

Définit 4 fonctions

  mail_send()
  mail_encode_address()
  mail_isvalid()
  mail_quotedprintable_encode()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

mail_send($to, $subject, $body, $from='', $cc='', $bcc='', $headers=null, $params=null)   X-Ref
UTF-8 autoencoding replacement for PHPs mail function

Email address fields (To, From, Cc, Bcc can contain a textpart and an address
like this: 'Andreas Gohr <andi@splitbrain.org>' - the text part is encoded
automatically. You can seperate receivers by commas.

author: Andreas Gohr <andi@splitbrain.org>
param: string $to      Receiver of the mail (multiple seperated by commas)
param: string $subject Mailsubject
param: string $body    Messagebody
param: string $from    Sender address
param: string $cc      CarbonCopy receiver (multiple seperated by commas)
param: string $bcc     BlindCarbonCopy receiver (multiple seperated by commas)
param: string $headers Additional Headers (seperated by MAILHEADER_EOL
param: string $params  Additonal Sendmail params (passed to mail())

mail_encode_address($string,$header='',$names=true)   X-Ref
Encodes an email address header

Unicode characters will be deaccented and encoded
quoted_printable for headers.
Addresses may not contain Non-ASCII data!

Example:
mail_encode_address("föö <foo@bar.com>, me@somewhere.com","TBcc");

param: string  $string Multiple adresses separated by commas
param: string  $header Name of the header (To,Bcc,Cc,...)
param: boolean $names  Allow named Recipients?

mail_isvalid($email)   X-Ref
Uses a regular expresion to check if a given mail address is valid

May not be completly RFC conform!

param: string $email the address to check
return: bool          true if address is valid

mail_quotedprintable_encode($sText,$maxlen=74,$bEmulate_imap_8bit=true)   X-Ref
Quoted printable encoding

author: umu <umuAThrz.tu-chemnitz.de>



Généré le : Tue Apr 3 20:47:31 2007 par Balluche grâce à PHPXref 0.7