PHP 클래스 Jyxo\Mail\Sender

Based on PhpMailer class (C) Copyright 2001-2003 Brent R. Matzelle
저자: Jaroslav Hanslík
파일 보기 프로젝트 열기: jyxo/php

공개 메소드들

메소드 설명
getCharset ( ) : string Returns charset.
getEmail ( ) : Email | null Returns the email to be sent.
getEncoding ( ) : string Returns encoding.
getHostname ( ) : string Returns hostname.
getXmailer ( ) : string Returns X-Mailer header value.
send ( string $mode ) : Result Sends an email using the given mode.
setCharset ( string $charset ) : self Sets charset.
setEmail ( Email $email ) : self Sets the email to be sent.
setEncoding ( string $encoding ) : self Sets encoding.
setHostname ( string $hostname ) : self Sets hostname.
setSmtp ( string $host, integer $port = 25, string $helo = '', string $user = '', string $password = '', integer $timeout = 5 ) : self Sets SMTP parameters.
setXmailer ( string $xmailer ) : self Sets X-Mailer header value.

비공개 메소드들

메소드 설명
addHeaderLine ( string $name, string $value ) Adds a header line.
attachAll ( ) : string Adds all attachments to the email.
changeCharset ( string $string ) : string Converts a string from UTF-8 into the email encoding.
clearHeaderValue ( string $string ) : string Clears headers from line endings.
create ( ) Creates an email.
createBody ( ) Creates body.
createHeader ( ) Creates header.
encodeHeader ( string $string ) : string Encodes headers.
encodeString ( string $string, string $encoding, integer $lineLength = self::LINE_LENGTH ) : string Encodes a string using the given encoding.
formatAddress ( Address $address ) : string Formats an email address.
formatAddressList ( array $addressList ) : string Formats a list of addresses.
getBoundaryEnd ( string $boundary ) : string Returns an end of an email part.
getBoundaryStart ( string $boundary, string $contentType, string $charset, string $encoding ) : string Returns a beginning of an email part.
getHeader ( array $except = [] ) : string Returns headers except given lines.
sendByMail ( ) Sends an email using the mail() function.
sendBySmtp ( ) Sends an email using a SMTP server.

메소드 상세

getCharset() 공개 메소드

Returns charset.
public getCharset ( ) : string
리턴 string

getEmail() 공개 메소드

Returns the email to be sent.
public getEmail ( ) : Email | null
리턴 Email | null

getEncoding() 공개 메소드

Returns encoding.
public getEncoding ( ) : string
리턴 string

getHostname() 공개 메소드

Returns hostname.
public getHostname ( ) : string
리턴 string

getXmailer() 공개 메소드

Returns X-Mailer header value.
public getXmailer ( ) : string
리턴 string

send() 공개 메소드

Sends an email using the given mode.
public send ( string $mode ) : Result
$mode string Sending mode
리턴 Jyxo\Mail\Sender\Result

setCharset() 공개 메소드

Sets charset.
public setCharset ( string $charset ) : self
$charset string Final charset
리턴 self

setEmail() 공개 메소드

Sets the email to be sent.
public setEmail ( Email $email ) : self
$email Email Email instance
리턴 self

setEncoding() 공개 메소드

Sets encoding.
public setEncoding ( string $encoding ) : self
$encoding string Encoding
리턴 self

setHostname() 공개 메소드

Sets hostname.
public setHostname ( string $hostname ) : self
$hostname string Hostname
리턴 self

setSmtp() 공개 메소드

Sets SMTP parameters.
public setSmtp ( string $host, integer $port = 25, string $helo = '', string $user = '', string $password = '', integer $timeout = 5 ) : self
$host string Hostname
$port integer Port
$helo string HELO value
$user string Username
$password string Password
$timeout integer Connection timeout
리턴 self

setXmailer() 공개 메소드

Sets X-Mailer header value.
public setXmailer ( string $xmailer ) : self
$xmailer string X-Mailer header value
리턴 self