Mail_Mime

A Package to enable easy creation of complex multipart emails. If you look for a simple API for creating such emails, then Mail_Mime class will probably suffice. Else you can use Mail_mimePart, which gives you better control about MIME creation.

Table of Contents
Process the Mbox (Previous) creates a new instance (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

Note by: brandonusa
when doing bulk emailing using sendmail MTA - this function hangs

$mail->send('postmaster@localhost', $hdrs, $body);


Note by: PixEye
If you want to use a special charset encoding (UTF-8 for example) and/or use base64 instead of quoted-printable, you should use the optional array parameter of function get(). See the API documentation for list of options supported. HTH.
Note by: zarthras
I'd like to point out, that there are quite a few more methods to the mime object than listed here. Among them such important helpers like

setSubject()
setFrom()
adBcc()

and so on. I'm not sure why they weren't put in the documentation, but you will find all of them in the api docs.