PHP 클래스 Mailer

부터: 5.0.0
저자: Al Brookbanks
상속: extends PHPMailer
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$divert array Addresses to which we should divert emails to. If empty then no diversion.
$host Configuration for SMTP.
$mode string Can be mail, smtp, sendmail. If empty then mail is disabled and messages are dropped silently.
$password
$port
$security SSL or TLS.
$sendmail_command
$username

보호된 프로퍼티들

프로퍼티 타입 설명
$_mailer
$_transport

공개 메소드들

메소드 설명
init ( ) Initialise the component by pulling in the appropriate SwiftMailer classes.
mail ( array $to, string $subject, string $body, array $from ) : boolean Mailer:mail is intended as a more robust simple replacement for php mail(),.
newMessage ( ) : Swift_Message Instantiate an appropriate SwiftMailer email message object.
sendMessage ( Swift_Message $message ) : boolean Send an email.

보호된 메소드들

메소드 설명
censorMessage ( Swift_Message $message ) : Swift_Message If we deem a mail address to be insecure, we should censor the message, otherwise returns intact.
directlySendMessage ( Swift_Message $message ) : boolean Sends a message to the recipient, censors if they are forbidden.
divertMessage ( Swift_Message $message ) : boolean Diverts an email from its original destination. Useful for testing things in nearlive.
getMailer ( ) : Swift_Mailer Get the SwiftMailer object with the configured transport.
getTransport ( ) : Transport return the transport object for the configured mail type.
recipientForbidden ( Swift_Message $message ) : boolean Checks the email recipients are in domains that are allowed.

메소드 상세

censorMessage() 보호된 메소드

If we deem a mail address to be insecure, we should censor the message, otherwise returns intact.
protected censorMessage ( Swift_Message $message ) : Swift_Message
$message Swift_Message
리턴 Swift_Message

directlySendMessage() 보호된 메소드

Sends a message to the recipient, censors if they are forbidden.
protected directlySendMessage ( Swift_Message $message ) : boolean
$message Swift_Message
리턴 boolean

divertMessage() 보호된 메소드

Diverts an email from its original destination. Useful for testing things in nearlive.
protected divertMessage ( Swift_Message $message ) : boolean
$message Swift_Message
리턴 boolean

getMailer() 보호된 메소드

Get the SwiftMailer object with the configured transport.
protected getMailer ( ) : Swift_Mailer
리턴 Swift_Mailer

getTransport() 보호된 메소드

return the transport object for the configured mail type.
protected getTransport ( ) : Transport
리턴 Transport object

init() 공개 메소드

Initialise the component by pulling in the appropriate SwiftMailer classes.
public init ( )

mail() 공개 정적인 메소드

Mailer:mail is intended as a more robust simple replacement for php mail(),.
public static mail ( array $to, string $subject, string $body, array $from ) : boolean
$to array address eg array('[email protected]'=>'OpenEyes')
$subject string
$body string
$from array address eg array('[email protected]'=>'OpenEyes')
리턴 boolean mail sent without error

newMessage() 공개 메소드

Instantiate an appropriate SwiftMailer email message object.
public newMessage ( ) : Swift_Message
리턴 Swift_Message

recipientForbidden() 보호된 메소드

Checks the email recipients are in domains that are allowed.
protected recipientForbidden ( Swift_Message $message ) : boolean
$message Swift_Message
리턴 boolean

sendMessage() 공개 메소드

Send an email.
public sendMessage ( Swift_Message $message ) : boolean
$message Swift_Message
리턴 boolean

프로퍼티 상세

$_mailer 보호되어 있는 프로퍼티

protected $_mailer

$_transport 보호되어 있는 프로퍼티

protected $_transport

$divert 공개적으로 프로퍼티

Addresses to which we should divert emails to. If empty then no diversion.
public array $divert
리턴 array

$host 공개적으로 프로퍼티

Configuration for SMTP.
public $host

$mode 공개적으로 프로퍼티

Can be mail, smtp, sendmail. If empty then mail is disabled and messages are dropped silently.
public string $mode
리턴 string

$password 공개적으로 프로퍼티

public $password

$port 공개적으로 프로퍼티

public $port

$security 공개적으로 프로퍼티

SSL or TLS.
public $security

$sendmail_command 공개적으로 프로퍼티

public $sendmail_command

$username 공개적으로 프로퍼티

public $username