NewMail
in package
Description of NewMail
Tags
Table of Contents
- DEFAULT_TEMPLATE = 'NewTemplate.html.twig'
- $empresa : Empresa
- $fromEmail : string
- $fromName : string
- $fromNick : string
- $signature : string
- $template : string
- $text : string
- $title : string
- $verificode : string
- $footerBlocks : array<string|int, BaseBlock>
- $lowsecure : bool
- $mail : PHPMailer
- $mainBlocks : array<string|int, BaseBlock>
- __construct() : mixed
- addAddress() : mixed
- addAttachment() : mixed
- Add attachments to the email.
- addBCC() : mixed
- addCC() : mixed
- addFooterBlock() : mixed
- addMainBlock() : mixed
- addReplyTo() : mixed
- canSendMail() : bool
- Check if the email is configured
- getAttachmentNames() : array<string|int, mixed>
- getAvailableMailboxes() : array<string|int, mixed>
- Returns an array with available email trays
- getBCCAddresses() : array<string|int, mixed>
- getCCAddresses() : array<string|int, mixed>
- getToAddresses() : array<string|int, mixed>
- send() : bool
- setMailbox() : mixed
- setUser() : mixed
- splitEmails() : array<string|int, mixed>
- test() : bool
- Test the PHPMailer connection. Return the result of the connection.
- getFooterBlocks() : array<string|int, mixed>
- getMainBlocks() : array<string|int, mixed>
- renderHTML() : string
- saveMailSent() : mixed
- smtpOptions() : array<string|int, mixed>
- Returns the SMTP Options.
- toolBox() : ToolBox
Constants
DEFAULT_TEMPLATE
public
mixed
DEFAULT_TEMPLATE
= 'NewTemplate.html.twig'
Properties
$empresa
public
Empresa
$empresa
$fromEmail
public
string
$fromEmail
$fromName
public
string
$fromName
$fromNick
public
string
$fromNick
$signature
public
string
$signature
$template
public
string
$template
$text
public
string
$text
$title
public
string
$title
$verificode
public
string
$verificode
$footerBlocks
protected
array<string|int, BaseBlock>
$footerBlocks
= []
$lowsecure
protected
bool
$lowsecure
protected
PHPMailer
$mail
$mainBlocks
protected
array<string|int, BaseBlock>
$mainBlocks
= []
Methods
__construct()
public
__construct() : mixed
Tags
Return values
mixed —addAddress()
public
addAddress(string $email[, string $name = '' ]) : mixed
Parameters
- $email : string
- $name : string = ''
Tags
Return values
mixed —addAttachment()
Add attachments to the email.
public
addAttachment(string $path, string $name) : mixed
Parameters
- $path : string
- $name : string
Tags
Return values
mixed —addBCC()
public
addBCC(string $email[, string $name = '' ]) : mixed
Parameters
- $email : string
- $name : string = ''
Tags
Return values
mixed —addCC()
public
addCC(string $email[, string $name = '' ]) : mixed
Parameters
- $email : string
- $name : string = ''
Tags
Return values
mixed —addFooterBlock()
public
addFooterBlock(BaseBlock $block) : mixed
Parameters
- $block : BaseBlock
Return values
mixed —addMainBlock()
public
addMainBlock(BaseBlock $block) : mixed
Parameters
- $block : BaseBlock
Return values
mixed —addReplyTo()
public
addReplyTo(string $address[, string $name = '' ]) : mixed
Parameters
- $address : string
- $name : string = ''
Tags
Return values
mixed —canSendMail()
Check if the email is configured
public
canSendMail() : bool
Return values
bool —getAttachmentNames()
public
getAttachmentNames() : array<string|int, mixed>
Return values
array<string|int, mixed> —getAvailableMailboxes()
Returns an array with available email trays
public
getAvailableMailboxes() : array<string|int, mixed>
Return values
array<string|int, mixed> —getBCCAddresses()
public
getBCCAddresses() : array<string|int, mixed>
Return values
array<string|int, mixed> —getCCAddresses()
public
getCCAddresses() : array<string|int, mixed>
Return values
array<string|int, mixed> —getToAddresses()
public
getToAddresses() : array<string|int, mixed>
Return values
array<string|int, mixed> —send()
public
send() : bool
Tags
Return values
bool —setMailbox()
public
setMailbox(string $emailFrom) : mixed
Parameters
- $emailFrom : string
Return values
mixed —setUser()
public
setUser(User $user) : mixed
Parameters
- $user : User
Return values
mixed —splitEmails()
public
static splitEmails(string $emails) : array<string|int, mixed>
Parameters
- $emails : string
Return values
array<string|int, mixed> —test()
Test the PHPMailer connection. Return the result of the connection.
public
test() : bool
Tags
Return values
bool —getFooterBlocks()
protected
getFooterBlocks() : array<string|int, mixed>
Return values
array<string|int, mixed> —getMainBlocks()
protected
getMainBlocks() : array<string|int, mixed>
Return values
array<string|int, mixed> —renderHTML()
protected
renderHTML() : string
Return values
string —saveMailSent()
protected
saveMailSent() : mixed
Return values
mixed —smtpOptions()
Returns the SMTP Options.
protected
smtpOptions() : array<string|int, mixed>
Return values
array<string|int, mixed> —toolBox()
protected
toolBox() : ToolBox