models/Mailer.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Mailer

Package: Models
Mailer model

Methods

methodpublicaddToLog(integer $proj_id, integer $sf_id, string $email, string $sendType = "send", string $sendSubtype = "all", string $sendResult = "1") : void
static

Add email to log

Parameters
NameTypeDescription
$proj_idinteger
$sf_idinteger
$emailstring
$sendTypestring
$sendSubtypestring
$sendResultstring
methodpubliccheckInLog(integer $proj_id, string $email) : integer
static

check it email exist in log

Parameters
NameTypeDescription
$proj_idinteger
$emailstring
Returns
TypeDescription
integer
methodpublicgetLog(integer $proj_id) : array
static

Get email log for project

Parameters
NameTypeDescription
$proj_idinteger
Returns
TypeDescription
array
methodpublicsendEmail(string $email, string $subj, string $sender, string $template, string $sendername = "") : boolean
static

send email methed

Parameters
NameTypeDescription
$emailstring
$subjstring
$senderstring
$templatestring
$sendernamestring
Returns
TypeDescription
boolean
methodpublicsendEmailMailgun(string $email, string $subj, string $sender, string $template, string $sendername = "") : boolean
static

Send email via mailgun

Parameters
NameTypeDescription
$emailstring
$subjstring
$senderstring
$templatestring
$sendernamestring
Returns
TypeDescription
boolean
Documentation was generated by phpDocumentor 2.8.5.