FacturaScripts

NewMail
in package

Description of NewMail

Tags
author

Carlos Garcia Gomez [email protected]

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

$verificode

public string $verificode

$lowsecure

protected bool $lowsecure

Methods

__construct()

public __construct() : mixed
Tags
throws
Exception
Return values
mixed

addAddress()

public addAddress(string $email[, string $name = '' ]) : mixed
Parameters
$email : string
$name : string = ''
Tags
throws
Exception
Return values
mixed

addAttachment()

Add attachments to the email.

public addAttachment(string $path, string $name) : mixed
Parameters
$path : string
$name : string
Tags
throws
Exception
Return values
mixed

addBCC()

public addBCC(string $email[, string $name = '' ]) : mixed
Parameters
$email : string
$name : string = ''
Tags
throws
Exception
Return values
mixed

addCC()

public addCC(string $email[, string $name = '' ]) : mixed
Parameters
$email : string
$name : string = ''
Tags
throws
Exception
Return values
mixed

addReplyTo()

public addReplyTo(string $address[, string $name = '' ]) : mixed
Parameters
$address : string
$name : string = ''
Tags
throws
Exception
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
throws
Exception
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
throws
Exception
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>

Search results