Mail
in package
Send mail with SMTP server
Table of Contents
Methods
- sanitizeMail() : mixed
- Filter mail input
- sendMail() : void
- Safe function to send mail with PHPMailer
Methods
sanitizeMail()
Filter mail input
public
static sanitizeMail(string $mail) : mixed
Parameters
- $mail : string
-
mail adress to filter
sendMail()
Safe function to send mail with PHPMailer
public
static sendMail(mixed $from, mixed $to, mixed $title, mixed $mailContent) : void
Parameters
- $from : mixed
-
the mail that send the content
- $to : mixed
-
the mail that receive the content
- $title : mixed
-
header of the content
- $mailContent : mixed
-
mail content