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
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 21
__construct($force_from_address = NULL, $force_from_name = NULL)
No description
at line 484
mixed
complete_html_links_cb(mixed $matches)
Make relative links absolute to the current server
at line 301
htmlMimeMail
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 402
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 426
array
extract_html_images_cb(array $matches)
Extract HTML images
at line 508
string
get_draft_header($mail, $to, $cc = false)
No description
at line 249
array
get_errors()
No description
at line 53
get_sender()
No description
at line 256
array
get_smtp_log()
No description
at line 531
bool
is_valid_email(string $email, bool $check_dns = false)
Checks wether the passes email has a valid format (using reg-ex)
at line 275
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 65
array
prepare_attachment(string $path_to_file, bool|string $name = false)
Prepare Attachment for sending
at line 92
bool
send(string $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 182
bool
send_mail(htmlMimeMail $mail, array $to)
Send the mail via the proper relay and do logging