Class mime_mail

Description

Classe para envio de E-mail

Located in /email.classe.php (line 23)


	
			
Variable Summary
mixed $body
mixed $charset
mixed $from
mixed $headers
mixed $parts
mixed $subject
mixed $to
Method Summary
mime_mail mime_mail (string $this->parts;, string $this->to;, string $this->from;, string $this->headers;, string $this->subject;, string $this->body;, string $this->charset)
void add_attachment ( $message, [ $name = ""], [ $ctype = "application/octet-stream"], string $message;, string $name;, string $ctype;)
void build_message ( $part, string $part;)
void build_multipart ()
void send ()
void setCharset (string $pCharset)
Variables
mixed $body (line 29)
  • access: public
mixed $charset (line 30)
  • access: public
mixed $from (line 26)
  • access: public
mixed $headers (line 27)
  • access: public
mixed $parts (line 24)
  • access: public
mixed $subject (line 28)
  • access: public
mixed $to (line 25)
  • access: public
Methods
Constructor mime_mail (line 54)

Construtor da Classe.

  1.     $mail new mime_mail();
  2.     $mail->from "foo@bar.com";
  3.     $mail->headers "Errors-To: foo@bar.com";
  4.     $mail->to "bar@foo.com";
  5.     $mail->subject "Testing...";
  6.     $mail->body "This is just a test.";
  7.     $mail->add_attachment("$attachment""test.jpg""image/jpeg");
  8.     $mail->send();

mime_mail mime_mail (string $this->parts;, string $this->to;, string $this->from;, string $this->headers;, string $this->subject;, string $this->body;, string $this->charset)
  • string $this->parts;: = partes da mensagem, imagens CID, anexos e body
  • string $this->to;: = para quem a mensagem se destina formato de email �nico
  • string $this->from;: = de quem
  • string $this->headers;: = todos os cabecalhos de tipo mime... setado automaticamente.
  • string $this->subject;: = assunto
  • string $this->body;: = conteudo da mensagem
  • string $this->charset: = tipo de formata��o (Valor Default iso-8859-1)
add_attachment (line 94)

Attach Arquivos.

  1.      $mail new mime_mail();
  2.     $mail->from "foo@bar.com";
  3.     $mail->headers "Errors-To: foo@bar.com";
  4.     $mail->to "bar@foo.com";
  5.     $mail->subject "Testing...";
  6.   $mail->body "This is just a test.";
  7.     $mail->add_attachment("$attachment""test.jpg""image/jpeg");
  8.     $mail->send();

  • return: add_attachment(string message, [string name], [string ctype])
void add_attachment ( $message, [ $name = ""], [ $ctype = "application/octet-stream"], string $message;, string $name;, string $ctype;)
  • string $message;: = partes da mensagem, imagens CID, anexos e body
  • string $name;: = para quem a mensagem se destina formato de email �nico
  • string $ctype;: = de quem
  • $message
  • $name
  • $ctype
build_message (line 113)

Build message parts of an multipart mail.

  1.  $this->build_message();

  • return: build_message(array part)
void build_message ( $part, string $part;)
  • string $part;: = Mensagem
  • $part
build_multipart (line 156)

Build a multipart mail.

  1.  $this->build_multipart();

void build_multipart ()
send (line 187)

Send the mail (last class-function to be called).

  1.      $mail new mime_mail();
  2.     $mail->from "foo@bar.com";
  3.     $mail->headers "Errors-To: foo@bar.com";
  4.     $mail->to "bar@foo.com";
  5.     $mail->subject "Testing...";
  6.   $mail->body "This is just a test.";
  7.     $mail->add_attachment("$attachment""test.jpg""image/jpeg");
  8.     $mail->send();

void send ()
setCharset (line 72)

Seta a propriedade Charset

  1.  $this->setCharset("utf-8");

void setCharset (string $pCharset)
  • string $pCharset: = tipo de codificação da mensagem

Documentation generated on Sun, 09 Mar 2008 23:51:40 -0300 by phpDocumentor 1.4.0

SourceForge.net Logo Support This Project