MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe PHPMailer

Membros públicos

 IsHTML ($bool)
 
 IsSMTP ()
 
 IsMail ()
 
 IsSendmail ()
 
 IsQmail ()
 
 AddAddress ($address, $name="")
 
 AddCC ($address, $name="")
 
 AddBCC ($address, $name="")
 
 AddReplyTo ($address, $name="")
 
 Send ()
 
 SendmailSend ($header, $body)
 
 MailSend ($header, $body)
 
 SmtpSend ($header, $body)
 
 SmtpConnect ()
 
 SmtpClose ()
 
 SetLanguage ($lang_type, $lang_path="")
 
 AddrAppend ($type, $addr)
 
 AddrFormat ($addr)
 
 WrapText ($message, $length, $qp_mode=false)
 
 SetWordWrap ()
 
 CreateHeader ()
 
 CreateBody ()
 
 GetBoundary ($boundary, $charSet, $contentType, $encoding)
 
 EndBoundary ($boundary)
 
 SetMessageType ()
 
 HeaderLine ($name, $value)
 
 TextLine ($value)
 
 AddAttachment ($path, $name="", $encoding="base64", $type="application/octet-stream")
 
 AttachAll ()
 
 EncodeFile ($path, $encoding="base64")
 
 EncodeString ($str, $encoding="base64")
 
 EncodeHeader ($str, $position='text')
 
 EncodeQP ($str)
 
 EncodeQ ($str, $position="text")
 
 AddStringAttachment ($string, $filename, $encoding="base64", $type="application/octet-stream")
 
 AddEmbeddedImage ($path, $cid, $name="", $encoding="base64", $type="application/octet-stream")
 
 InlineImageExists ()
 
 ClearAddresses ()
 
 ClearCCs ()
 
 ClearBCCs ()
 
 ClearReplyTos ()
 
 ClearAllRecipients ()
 
 ClearAttachments ()
 
 ClearCustomHeaders ()
 
 SetError ($msg)
 
 RFCDate ()
 
 Received ()
 
 ServerVar ($varName)
 
 ServerHostname ()
 
 Lang ($key)
 
 IsError ()
 
 FixEOL ($str)
 
 AddCustomHeader ($custom_header)
 

Campos de Dados

 $Priority = 3
 
 $CharSet = "iso-8859-1"
 
 $ContentType = "text/plain"
 
 $Encoding = "8bit"
 
 $ErrorInfo = ""
 
 $From = "root@localhost"
 
 $FromName = "Root User"
 
 $Sender = ""
 
 $Subject = ""
 
 $Body = ""
 
 $AltBody = ""
 
 $WordWrap = 0
 
 $Mailer = "mail"
 
 $Sendmail = "/usr/sbin/sendmail"
 
 $PluginDir = ""
 
 $Version = "1.71"
 
 $ConfirmReadingTo = ""
 
 $Hostname = ""
 
 $Host = "localhost"
 
 $Port = 25
 
 $Helo = ""
 
 $SMTPAuth = false
 
 $Username = ""
 
 $Password = ""
 
 $Timeout = 10
 
 $SMTPDebug = false
 
 $SMTPKeepAlive = false
 
 $smtp = NULL
 
 $to
 
 $cc
 
 $bcc
 
 $ReplyTo
 
 $attachment
 
 $CustomHeader
 
 $message_type = ""
 
 $boundary
 
 $language
 
 $error_count = 0
 
 $LE = "\n"
 

Descrição detalhada

Definido na linha 20 do ficheiro class.phpmailer.php.

Documentação das funções

◆ AddAddress()

AddAddress ( $address,
$name = "" )

Adds a "To" address.

Parâmetros
string$address
string$name
Retorna
void

Definido na linha 306 do ficheiro class.phpmailer.php.

◆ AddAttachment()

AddAttachment ( $path,
$name = "",
$encoding = "base64",
$type = "application/octet-stream" )

Adds an attachment from a path on the filesystem. Returns false if the file could not be found or accessed.

Parâmetros
string$pathPath to the attachment.
string$nameOverrides the attachment name.
string$encodingFile encoding (see $Encoding).
string$typeFile extension (MIME) type.
Retorna
bool

Definido na linha 1111 do ficheiro class.phpmailer.php.

◆ AddBCC()

AddBCC ( $address,
$name = "" )

Adds a "Bcc" address. Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.

Parâmetros
string$address
string$name
Retorna
void

Definido na linha 336 do ficheiro class.phpmailer.php.

◆ AddCC()

AddCC ( $address,
$name = "" )

Adds a "Cc" address. Note: this function works with the SMTP mailer on win32, not with the "mail" mailer.

Parâmetros
string$address
string$name
Retorna
void

Definido na linha 321 do ficheiro class.phpmailer.php.

◆ AddCustomHeader()

AddCustomHeader ( $custom_header)

Adds a custom header.

Retorna
void

Definido na linha 1716 do ficheiro class.phpmailer.php.

◆ AddEmbeddedImage()

AddEmbeddedImage ( $path,
$cid,
$name = "",
$encoding = "base64",
$type = "application/octet-stream" )

Adds an embedded attachment. This can include images, sounds, and just about any other document. Make sure to set the $type to an image type. For JPEG images use "image/jpeg" and for GIF images use "image/gif".

Parâmetros
string$pathPath to the attachment.
string$cidContent ID of the attachment. Use this to identify the Id for accessing the image in an HTML form.
string$nameOverrides the attachment name.
string$encodingFile encoding (see $Encoding).
string$typeFile extension (MIME) type.
Retorna
bool

Definido na linha 1434 do ficheiro class.phpmailer.php.

◆ AddrAppend()

AddrAppend ( $type,
$addr )

Creates recipient headers.
@access private

Retorna
string

Definido na linha 678 do ficheiro class.phpmailer.php.

◆ AddReplyTo()

AddReplyTo ( $address,
$name = "" )

Adds a "Reply-to" address.

Parâmetros
string$address
string$name
Retorna
void

Definido na linha 349 do ficheiro class.phpmailer.php.

◆ AddrFormat()

AddrFormat ( $addr)

Formats an address correctly. @access private

Retorna
string

Definido na linha 699 do ficheiro class.phpmailer.php.

◆ AddStringAttachment()

AddStringAttachment ( $string,
$filename,
$encoding = "base64",
$type = "application/octet-stream" )

Adds a string or binary attachment (non-filesystem) to the list. This method can be used to attach ascii or binary data, such as a BLOB record from a database.

Parâmetros
string$stringString attachment data.
string$filenameName of the attachment.
string$encodingFile encoding (see $Encoding).
string$typeFile extension (MIME) type.
Retorna
void

Definido na linha 1407 do ficheiro class.phpmailer.php.

◆ AttachAll()

AttachAll ( )

Attaches all fs, string, and binary attachments to the message. Returns an empty string on failure. @access private

Retorna
string

Definido na linha 1143 do ficheiro class.phpmailer.php.

◆ ClearAddresses()

ClearAddresses ( )

Clears all recipients assigned in the TO array. Returns void.

Retorna
void

Definido na linha 1490 do ficheiro class.phpmailer.php.

◆ ClearAllRecipients()

ClearAllRecipients ( )

Clears all recipients assigned in the TO, CC and BCC array. Returns void.

Retorna
void

Definido na linha 1531 do ficheiro class.phpmailer.php.

◆ ClearAttachments()

ClearAttachments ( )

Clears all previously set filesystem, string, and binary attachments. Returns void.

Retorna
void

Definido na linha 1548 do ficheiro class.phpmailer.php.

◆ ClearBCCs()

ClearBCCs ( )

Clears all recipients assigned in the BCC array. Returns void.

Retorna
void

Definido na linha 1510 do ficheiro class.phpmailer.php.

◆ ClearCCs()

ClearCCs ( )

Clears all recipients assigned in the CC array. Returns void.

Retorna
void

Definido na linha 1500 do ficheiro class.phpmailer.php.

◆ ClearCustomHeaders()

ClearCustomHeaders ( )

Clears all custom headers. Returns void.

Retorna
void

Definido na linha 1558 do ficheiro class.phpmailer.php.

◆ ClearReplyTos()

ClearReplyTos ( )

Clears all recipients assigned in the ReplyTo array. Returns void.

Retorna
void

Definido na linha 1520 do ficheiro class.phpmailer.php.

◆ CreateBody()

CreateBody ( )

Assembles the message body. Returns an empty string on failure. @access private

Retorna
string

Definido na linha 949 do ficheiro class.phpmailer.php.

◆ CreateHeader()

CreateHeader ( )

Assembles message header.
@access private

Retorna
string

Definido na linha 837 do ficheiro class.phpmailer.php.

◆ EncodeFile()

EncodeFile ( $path,
$encoding = "base64" )

Encodes attachment in requested format. Returns an empty string on failure. @access private

Retorna
string

Definido na linha 1212 do ficheiro class.phpmailer.php.

◆ EncodeHeader()

EncodeHeader ( $str,
$position = 'text' )

Encode a header string to best of Q, B, quoted or none.
@access private

Retorna
string

Definido na linha 1278 do ficheiro class.phpmailer.php.

◆ EncodeQ()

EncodeQ ( $str,
$position = "text" )

Encode string to q encoding.
@access private

Retorna
string

Definido na linha 1367 do ficheiro class.phpmailer.php.

◆ EncodeQP()

EncodeQP ( $str)

Encode string to quoted-printable.
@access private

Retorna
string

Definido na linha 1341 do ficheiro class.phpmailer.php.

◆ EncodeString()

EncodeString ( $str,
$encoding = "base64" )

Encodes string to requested format. Returns an empty string on failure. @access private

Retorna
string

Definido na linha 1233 do ficheiro class.phpmailer.php.

◆ EndBoundary()

EndBoundary ( $boundary)

Returns the end of a message boundary. @access private

Definido na linha 1050 do ficheiro class.phpmailer.php.

◆ FixEOL()

FixEOL ( $str)

Changes every end of line from CR or LF to CRLF.
@access private

Retorna
string

Definido na linha 1704 do ficheiro class.phpmailer.php.

◆ GetBoundary()

GetBoundary ( $boundary,
$charSet,
$contentType,
$encoding )

Returns the start of a message boundary. @access private

Definido na linha 1018 do ficheiro class.phpmailer.php.

◆ HeaderLine()

HeaderLine ( $name,
$value )

Returns a formatted header line. @access private

Retorna
string

Definido na linha 1082 do ficheiro class.phpmailer.php.

◆ InlineImageExists()

InlineImageExists ( )

Returns true if an inline attachment is present. @access private

Retorna
bool

Definido na linha 1466 do ficheiro class.phpmailer.php.

◆ IsError()

IsError ( )

Returns true if an error occurred.

Retorna
bool

Definido na linha 1694 do ficheiro class.phpmailer.php.

◆ IsHTML()

IsHTML ( $bool)

#- Sets message type to HTML.

Parâmetros
bool$bool
Retorna
void

Definido na linha 251 do ficheiro class.phpmailer.php.

◆ IsMail()

IsMail ( )

Sets Mailer to send message using PHP mail() function.

Retorna
void

Definido na linha 272 do ficheiro class.phpmailer.php.

◆ IsQmail()

IsQmail ( )

Sets Mailer to send message using the qmail MTA.

Retorna
void

Definido na linha 290 do ficheiro class.phpmailer.php.

◆ IsSendmail()

IsSendmail ( )

Sets Mailer to send message using the $Sendmail program.

Retorna
void

Definido na linha 281 do ficheiro class.phpmailer.php.

◆ IsSMTP()

IsSMTP ( )

Sets Mailer to send message using SMTP.

Retorna
void

Definido na linha 263 do ficheiro class.phpmailer.php.

◆ Lang()

Lang ( $key)

Returns a message in the appropriate language. @access private

Retorna
string

Definido na linha 1679 do ficheiro class.phpmailer.php.

◆ MailSend()

MailSend ( $header,
$body )

Sends mail using the PHP mail() function.
@access private

Retorna
bool

Definido na linha 452 do ficheiro class.phpmailer.php.

◆ Received()

Received ( )

Returns Received header for message tracing. @access private

Retorna
string

Definido na linha 1601 do ficheiro class.phpmailer.php.

◆ RFCDate()

RFCDate ( )

Returns the proper RFC 822 formatted date. @access private

Retorna
string

Definido na linha 1585 do ficheiro class.phpmailer.php.

◆ Send()

Send ( )

Creates message and assigns Mailer. If the message is not sent successfully then it returns false. Use the ErrorInfo variable to view description of the error.

Retorna
bool

Definido na linha 366 do ficheiro class.phpmailer.php.

◆ SendmailSend()

SendmailSend ( $header,
$body )

Sends mail using the $Sendmail program.
@access private

Retorna
bool

Definido na linha 420 do ficheiro class.phpmailer.php.

◆ ServerHostname()

ServerHostname ( )

Returns the server hostname or 'localhost.localdomain' if unknown. @access private

Retorna
string

Definido na linha 1660 do ficheiro class.phpmailer.php.

◆ ServerVar()

ServerVar ( $varName)

Returns the appropriate server variable. Should work with both PHP 4.1.0+ as well as older versions. Returns an empty string if nothing is found. @access private

Retorna
mixed

Definido na linha 1636 do ficheiro class.phpmailer.php.

◆ SetError()

SetError ( $msg)

Adds the error message to the error container. Returns void. @access private

Retorna
void

Definido na linha 1574 do ficheiro class.phpmailer.php.

◆ SetLanguage()

SetLanguage ( $lang_type,
$lang_path = "" )

Sets the language for all class error messages. Returns false if it cannot load the language file. The default language type is English.

Parâmetros
string$lang_typeType of language (e.g. Portuguese: "br")
string$lang_pathPath to the language file directory @access public
Retorna
bool

Definido na linha 650 do ficheiro class.phpmailer.php.

◆ SetMessageType()

SetMessageType ( )

Sets the message type. @access private

Retorna
void

Definido na linha 1060 do ficheiro class.phpmailer.php.

◆ SetWordWrap()

SetWordWrap ( )

Set the body wrapping. @access private

Retorna
void

Definido na linha 811 do ficheiro class.phpmailer.php.

◆ SmtpClose()

SmtpClose ( )

Closes the active SMTP session if one exists.

Retorna
void

Definido na linha 629 do ficheiro class.phpmailer.php.

◆ SmtpConnect()

SmtpConnect ( )

Initiates a connection to an SMTP server. Returns false if the operation failed. @access private

Retorna
bool

Definido na linha 573 do ficheiro class.phpmailer.php.

◆ SmtpSend()

SmtpSend ( $header,
$body )

Sends mail via SMTP using PhpSMTP (Author: Chris Ryan). Returns bool. Returns false if there is a bad MAIL FROM, RCPT, or DATA input. @access private

Retorna
bool

Definido na linha 495 do ficheiro class.phpmailer.php.

◆ TextLine()

TextLine ( $value)

Returns a formatted mail line. @access private

Retorna
string

Definido na linha 1092 do ficheiro class.phpmailer.php.

◆ WrapText()

WrapText ( $message,
$length,
$qp_mode = false )

Wraps message for use with mailers that do not automatically perform wrapping and for quoted-printable. Original written by philippe.
@access private

Retorna
string

Definido na linha 718 do ficheiro class.phpmailer.php.

Documentação dos campos e atributos

◆ $AltBody

$AltBody = ""

Definido na linha 96 do ficheiro class.phpmailer.php.

◆ $attachment

$attachment
Valor inicial:
= array(
)

Definido na linha 225 do ficheiro class.phpmailer.php.

◆ $bcc

$bcc
Valor inicial:
= array(
)

Definido na linha 219 do ficheiro class.phpmailer.php.

◆ $Body

$Body = ""

Definido na linha 87 do ficheiro class.phpmailer.php.

◆ $boundary

$boundary
Valor inicial:
= array(
)

Definido na linha 232 do ficheiro class.phpmailer.php.

◆ $cc

$cc
Valor inicial:
= array(
)

Definido na linha 216 do ficheiro class.phpmailer.php.

◆ $CharSet

$CharSet = "iso-8859-1"

Definido na linha 36 do ficheiro class.phpmailer.php.

◆ $ConfirmReadingTo

$ConfirmReadingTo = ""

Definido na linha 134 do ficheiro class.phpmailer.php.

◆ $ContentType

$ContentType = "text/plain"

Definido na linha 42 do ficheiro class.phpmailer.php.

◆ $CustomHeader

$CustomHeader
Valor inicial:
= array(
)

Definido na linha 228 do ficheiro class.phpmailer.php.

◆ $Encoding

$Encoding = "8bit"

Definido na linha 49 do ficheiro class.phpmailer.php.

◆ $error_count

$error_count = 0

Definido na linha 238 do ficheiro class.phpmailer.php.

◆ $ErrorInfo

$ErrorInfo = ""

Definido na linha 55 do ficheiro class.phpmailer.php.

◆ $From

$From = "root@localhost"

Definido na linha 61 do ficheiro class.phpmailer.php.

◆ $FromName

$FromName = "Root User"

Definido na linha 67 do ficheiro class.phpmailer.php.

◆ $Helo

$Helo = ""

Definido na linha 168 do ficheiro class.phpmailer.php.

◆ $Host

$Host = "localhost"

Definido na linha 156 do ficheiro class.phpmailer.php.

◆ $Hostname

$Hostname = ""

Definido na linha 142 do ficheiro class.phpmailer.php.

◆ $language

$language
Valor inicial:
= array(
)

Definido na linha 235 do ficheiro class.phpmailer.php.

◆ $LE

$LE = "\n"

Definido na linha 239 do ficheiro class.phpmailer.php.

◆ $Mailer

$Mailer = "mail"

Definido na linha 109 do ficheiro class.phpmailer.php.

◆ $message_type

$message_type = ""

Definido na linha 231 do ficheiro class.phpmailer.php.

◆ $Password

$Password = ""

Definido na linha 186 do ficheiro class.phpmailer.php.

◆ $PluginDir

$PluginDir = ""

Definido na linha 122 do ficheiro class.phpmailer.php.

◆ $Port

$Port = 25

Definido na linha 162 do ficheiro class.phpmailer.php.

◆ $Priority

$Priority = 3

Definido na linha 30 do ficheiro class.phpmailer.php.

◆ $ReplyTo

$ReplyTo
Valor inicial:
= array(
)

Definido na linha 222 do ficheiro class.phpmailer.php.

◆ $Sender

$Sender = ""

Definido na linha 74 do ficheiro class.phpmailer.php.

◆ $Sendmail

$Sendmail = "/usr/sbin/sendmail"

Definido na linha 115 do ficheiro class.phpmailer.php.

◆ $smtp

$smtp = NULL

#+ @access private

Definido na linha 212 do ficheiro class.phpmailer.php.

◆ $SMTPAuth

$SMTPAuth = false

Definido na linha 174 do ficheiro class.phpmailer.php.

◆ $SMTPDebug

$SMTPDebug = false

Definido na linha 199 do ficheiro class.phpmailer.php.

◆ $SMTPKeepAlive

$SMTPKeepAlive = false

Definido na linha 207 do ficheiro class.phpmailer.php.

◆ $Subject

$Subject = ""

Definido na linha 80 do ficheiro class.phpmailer.php.

◆ $Timeout

$Timeout = 10

Definido na linha 193 do ficheiro class.phpmailer.php.

◆ $to

$to
Valor inicial:
= array(
)

Definido na linha 213 do ficheiro class.phpmailer.php.

◆ $Username

$Username = ""

Definido na linha 180 do ficheiro class.phpmailer.php.

◆ $Version

$Version = "1.71"

Definido na linha 128 do ficheiro class.phpmailer.php.

◆ $WordWrap

$WordWrap = 0

Definido na linha 103 do ficheiro class.phpmailer.php.


A documentação para esta classe foi gerada a partir do seguinte ficheiro: