Chuyển đến nội dung
Tài liệu

Tra cứu lớp và hàm

Mail

Danh sách các phương thức công khai của lớp Zittme\Framework\Mail. Tài liệu này được tạo tự động từ mã nguồn lõi Zittme.

Nguồn: common/framework/Mail.php

Phương thức công khai

  • static function setDefaultDriver(Drivers\MailInterface $driver)
  • Set the default driver.
  • static function getDefaultDriver()
  • Get the default driver.
  • static function addDriver(Drivers\MailInterface $driver)
  • Add a custom mail driver.
  • static function getSupportedDrivers()
  • Get the list of supported mail drivers.
  • function __construct()
  • The constructor.
  • function setFrom(string $email, ?string $name = null)
  • Set the sender (From:).
  • function getFrom()
  • Get the sender (From:).
  • function addTo(string $email, ?string $name = null)
  • Add a recipient (To:).
  • function addCc(string $email, ?string $name = null)
  • Add a recipient (CC:).
  • function addBcc(string $email, ?string $name = null)
  • Add a recipient (BCC:).
  • function getRecipients()
  • Get the list of recipients.
  • function setReplyTo(string $replyTo)
  • Set the Reply-To: address.
  • function setReturnPath(string $returnPath)
  • Set the Return-Path: address.
  • function setMessageID(string $message_id)
  • Set the Message ID.
  • function setInReplyTo(string $in_reply_to)
  • Set the In-Reply-To: header.
  • function setReferences(string $references)
  • Set the References: header.
  • function setSubject(string $subject)
  • Set the subject.
  • function getSubject()
  • Get the subject.
  • function setTitle(string $subject)
  • Set the subject (alias to setSubject).
  • function getTitle()
  • Get the subject (alias to getSubject).
  • function setBody(string $content, ?string $content_type = null)
  • Set the body content.
  • function getBody()
  • Get the body content.
  • function setContent(string $content, ?string $content_type = null)
  • Set the body content (alias to setBody).
  • function getContent()
  • Get the body content (alias to getBody).
  • function setContentType(string $type = 'text/html')
  • Set the content type.
  • function getContentType()
  • Get the content type.
  • function attach(string $local_filename, ?string $display_filename = null)
  • Attach a file.
  • function embed(string $local_filename, ?string $cid = null)
  • Embed a file.
  • function getAttachments()
  • Get the list of attachments to this message.
  • function send(bool $sync = false)
  • Send the email.
  • static function sendAsync(self $mail)
  • Send an email asynchronously (for Queue integration).
  • function isSent()
  • Check if the message was sent.
  • function getCaller()
  • Get caller information.
  • function getErrors()
  • Get errors.