프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
protected censorMessage ( Swift_Message $message ) : Swift_Message | ||
$message | Swift_Message | |
리턴 | Swift_Message |
protected directlySendMessage ( Swift_Message $message ) : boolean | ||
$message | Swift_Message | |
리턴 | boolean |
protected divertMessage ( Swift_Message $message ) : boolean | ||
$message | Swift_Message | |
리턴 | boolean |
protected getMailer ( ) : Swift_Mailer | ||
리턴 | Swift_Mailer |
protected getTransport ( ) : Transport | ||
리턴 | Transport | object |
public init ( ) |
public newMessage ( ) : Swift_Message | ||
리턴 | Swift_Message |
protected recipientForbidden ( Swift_Message $message ) : boolean | ||
$message | Swift_Message | |
리턴 | boolean |
public sendMessage ( Swift_Message $message ) : boolean | ||
$message | Swift_Message | |
리턴 | boolean |
public array $divert | ||
리턴 | array |
public string $mode | ||
리턴 | string |