class Mail
Properties
| $host | |||
| $port | |||
| $helo | |||
| $auth | |||
| $user | |||
| $password | |||
| $use_tls | |||
| $verify_ssl | |||
| $force_from_address | |||
| $force_from_name | |||
| array | $extract_html_options |
Methods
No description
Make relative links absolute to the current server
Creates an email and returns the mail object
Extracts all HTML Image Sources, changes their src names, downloads the files and returns an email attachment array Use to change external HTML image sources to inline attachment images
Extract HTML images
No description
No description
Get mail Template
No description
No description
Checks wether the passes email has a valid format (using reg-ex)
Same as send(), but sends the email to each recipient individually instead of all receivers in one mail
Prepare Attachment for sending
Send mail via SMTP (replacing old Sendmail)
Send the mail via the proper relay and do logging
Details
at line 23
__construct($force_from_address = NULL, $force_from_name = NULL)
No description
at line 477
mixed
complete_html_links_cb(mixed $matches)
Make relative links absolute to the current server
at line 291
htmlMimeMail|null
create(string $subject, $text, bool|string $from = false, array|bool $cc = false, array|bool $bcc = false, bool $attachment = false, bool $header = false, bool $return_path = false, bool $text_encoding = false)
Creates an email and returns the mail object
at line 395
array
extract_html_images(string $html_text, string $basepath, string $fnmatch_url = '*', bool $strip_missing_images = true, bool $always_return_absolute_urls = false, bool $replace_only_links = false)
Extracts all HTML Image Sources, changes their src names, downloads the files and returns an email attachment array Use to change external HTML image sources to inline attachment images
at line 419
array
extract_html_images_cb(array $matches)
Extract HTML images
at line 501
string
get_draft_header($mail, $to, $cc = false)
No description
at line 239
array
get_errors()
No description
at line 554
xelos_global_template
get_mail_template(string $format = 'html')
Get mail Template
at line 55
get_sender()
No description
at line 246
array
get_smtp_log()
No description
at line 524
bool
is_valid_email(string $email, bool $check_dns = false)
Checks wether the passes email has a valid format (using reg-ex)
at line 265
array
mass_send(mixed $to, mixed $subject, mixed $text, mixed $from = false, mixed $cc = false, mixed $bcc = false, mixed $attachment = false, mixed $header = false, mixed $return_path = false, mixed $text_encoding = false)
Same as send(), but sends the email to each recipient individually instead of all receivers in one mail
at line 67
array
prepare_attachment(string $path_to_file, bool|string $name = false)
Prepare Attachment for sending
at line 94
bool
send(string|array $to, string $subject, string|array $text, bool|string $from = false, bool|string $cc = false, bool|string $bcc = false, array|bool $attachment = false, array|bool $header = false, bool|string $return_path = false, bool|string $text_encoding = false, bool $wrap_in_theme = false)
Send mail via SMTP (replacing old Sendmail)
at line 172
bool
send_mail(htmlMimeMail $mail, string|array $to)
Send the mail via the proper relay and do logging