PHPackages                             developarts/nomad\_mimemail - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. developarts/nomad\_mimemail

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

developarts/nomad\_mimemail
===========================

Nomad MIME Mail, is a PHP class for handling and sending mail MIME type, with support for the dispatch by SMTP and SMTP Auth

2315HTML

Since Mar 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/developarts/nomad_mimemail)[ Packagist](https://packagist.org/packages/developarts/nomad_mimemail)[ RSS](/packages/developarts-nomad-mimemail/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Nomad MIME Mail
===============

[](#nomad-mime-mail)

Nomad MIME Mail, is a PHP class for handling and sending mail MIME type, with support for the dispatch by SMTP and SMTP Auth

[![Banner](https://camo.githubusercontent.com/2b1982c98e6d7ce4f8279050ed321c4ad2ba103d5427fb8daade07885994bcbf/68747470733a2f2f646576656c6f70617274732e636f6d2f626c2d636f6e74656e742f75706c6f6164732f62616e6e65725f6e6f6d61645f6d696d656d61696c2e706e67)](https://camo.githubusercontent.com/2b1982c98e6d7ce4f8279050ed321c4ad2ba103d5427fb8daade07885994bcbf/68747470733a2f2f646576656c6f70617274732e636f6d2f626c2d636f6e74656e742f75706c6f6164732f62616e6e65725f6e6f6d61645f6d696d656d61696c2e706e67)[![GitHub](https://camo.githubusercontent.com/7fa4dcf33d75d859c5eb146f377eba586113de197facc614f078b3f2c3b5a66a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646576656c6f70617274732f6e6f6d61645f6d696d656d61696c3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/7fa4dcf33d75d859c5eb146f377eba586113de197facc614f078b3f2c3b5a66a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f646576656c6f70617274732f6e6f6d61645f6d696d656d61696c3f7374796c653d666f722d7468652d6261646765)[![GitHub tag (latest by date)](https://camo.githubusercontent.com/2cf3b799a7adbd50138aef84cfdaf0ce4e952006b51e5feecdb91871467ece14/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646576656c6f70617274732f6e6f6d61645f6d696d656d61696c3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/2cf3b799a7adbd50138aef84cfdaf0ce4e952006b51e5feecdb91871467ece14/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f646576656c6f70617274732f6e6f6d61645f6d696d656d61696c3f7374796c653d666f722d7468652d6261646765)[![GitHub All Releases](https://camo.githubusercontent.com/36bb8be687a898b103a558ea3faef2752565102efbbe9b9e588fb3055468ab58/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f646576656c6f70617274732f6e6f6d61645f6d696d656d61696c2f746f74616c3f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/36bb8be687a898b103a558ea3faef2752565102efbbe9b9e588fb3055468ab58/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f646576656c6f70617274732f6e6f6d61645f6d696d656d61696c2f746f74616c3f7374796c653d666f722d7468652d6261646765)[![Donate with PayPal](https://camo.githubusercontent.com/240fca61cc3eeb156d3c7db06d9ce834023acf9dbcfede20d75a29fec60cdf7c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50617950616c2d446f6e6174652d79656c6c6f772e7376673f7374796c653d666f722d7468652d6261646765)](https://www.paypal.me/developarts)

Description.
------------

[](#description)

Currently, this class supports:

- Plain Text
- HTML
- Plain Text with Attachments
- HTML with Attachments
- HTML with Embedded Images
- HTML with Attachments and Embedded Images

It also supports multiple e-mail addresses for sending (to), with a copy (cc) and with a blind carbon copy (bcc), as well as several images embedded in HTML and various attachments

Quick Reference.
----------------

[](#quick-reference)

Attached to this class and documentation is a file called 'nomad\_mimemail.test.php' where is a script with an example of sending mail with text, HTML, Image and Deputy Embedded sent via SMTP. .

To use MIME Mail Nomad is necessary to declare the object as follows:

```
include ('nomad_mimemail.inc.php');
$mimemail = new nomad_mimemail();
```

### Plain Text.

[](#plain-text)

Normally this is how the function 'mail ()' would operate. PHP, however in this version is created so a little different because it sent the body of the message headers and MIME type

```
$mimemail->set_from("me@mail.com");
$mimemail->set_to("friend@mail.com");
$mimemail->set_subject("Nomad MIME Mail: Plain Text");
$mimemail->set_text("This is a MIME Mail with:\n\n- Plain Text");

if ($mimemail->send()) {
    echo "The MIME Mail has been sent";
} else {
    echo "An error has occurred, mail was not sent";
}
```

### Plain Text and HTML.

[](#plain-text-and-html)

Example of sending mail with text and HTML

```
$mimemail->set_from("me@mail.com");
$mimemail->set_to("friend@mail.com");
$mimemail->set_subject("Nomad MIME Mail: Plain Text + HTML");
$mimemail->set_text("This is a MIME Mail with:\n\n- Plain Text\n- HTML");
$mimemail->set_html("This is a MIME Mail with:- Plain Text- HTML");

if ($mimemail->send()) {
    echo "The MIME Mail has been sent";
} else {
    echo "An error has occurred, mail was not sent";
}
```

### Plain Text with Attachments.

[](#plain-text-with-attachments)

Example of creating an email with an attachment and Plain Text. You can do more than adding attachments with the 'add\_attachment' method. For more information, check the function reference guide.

```
$mimemail->set_from("me@mail.com");
$mimemail->set_to("friend@mail.com");
$mimemail->set_subject("Nomad MIME Mail: Plain Text + Attachment");
$mimemail->set_text("This is a MIME Mail with:\n\n- Plain Text\n- Attachment");
$mimemail->add_attachment("test_attachment.tar.gz", "file.tar.gz");

if ($mimemail->send()) {
    echo "The MIME Mail has been sent";
} else {
    echo "An error has occurred, mail was not sent";
}
```

### Plain Text and HTML with Attachments

[](#plain-text-and-html-with-attachments)

Example to create an email with Plain Text, HTML and a deputy. You can add more than one attachment using the 'add\_attachment'.

```
$mimemail->set_from("me@mail.com");
$mimemail->set_to("friend@mail.com");
$mimemail->set_subject("Nomad MIME Mail: Plain Text + HTML + Attachment");
$mimemail->set_text("This is a MIME Mail with:\n\n- Plain Text\n- HTML\n- Attachment");
$mimemail->set_html("This is a MIME Mail with:- Plain Text- HTML- Attachment");
$mimemail->add_attachment("test_attachment.tar.gz", "file.tar.gz");

if ($mimemail->send()) {
    echo "The MIME Mail has been sent";
} else {
    echo "An error has occurred, mail was not sent";
}
```

### Plain Text and HTML with Embedded Images

[](#plain-text-and-html-with-embedded-images)

Example of creating an email with HTML, plain text and an Embedded Image. For the image embedded function, the attachment must have the same name as indicated on the tag 'IMG' HTML message.

```
$mimemail->set_from("me@mail.com");
$mimemail->set_to("friend@mail.com");
$mimemail->set_subject("Nomad MIME Mail: Plain Text + HTML + Embedded Image");
$mimemail->set_text("This is a MIME Mail with:\n\n- Plain Text\n- HTML\n- Embedded Image");
$mimemail->set_html("This is a MIME Mail with:- Plain Text- HTML- Embedded Image");
$mimemail->add_attachment("test_image.gif", "image.gif");

if ($mimemail->send()) {
    echo "The MIME Mail has been sent";
} else {
    echo "An error has occurred, mail was not sent";
}
```

### Plain Text and HTML with Embedded Image and Attachments

[](#plain-text-and-html-with-embedded-image-and-attachments)

Example of creating an email with HTML, plain text, an embedded image and an attachment. For the embedded image to work, the attachment archive must have the same name as indicated on the tag 'IMG'

```
$mimemail->set_from("me@mail.com");
$mimemail->set_to("friend@mail.com");
$mimemail->set_subject("Nomad MIME Mail: Plain Text + HTML + Embedded Image + Attachment");
$mimemail->set_text("This is a MIME Mail with:\n\n- Plain Text\n- HTML\n- Embedded Image\n- Attachment");
$mimemail->set_html("This is a MIME Mail with:- Plain Text- HTML- Embedded Image- Attachment");
$mimemail->add_attachment("test_image", "image.gif");
$mimemail->add_attachment("test_attachment.tar.gz", "file.tar.gz");

if ($mimemail->send()) {
    echo "The MIME Mail has been sent";
} else {
    echo "An error has occurred, mail was not sent";
}
```

### Sending Authenticated SMTP

[](#sending-authenticated-smtp)

To send mail via SMTP it is necessary to call the 'set\_smtp\_host' method and to send mail using SMTP authentication it is necessary to use the 'set\_smtp\_auth' method.

```
$mimemail->set_from("me@mail.com");
$mimemail->set_to("friend@mail.com");
$mimemail->set_subject("Nomad MIME Mail: HTML + Auth SMTP");
$mimemail->set_html("This is a MIME Mail with:- Plain Text- HTML");

$mimemail->set_smtp_host("domain.com");
$mimemail->set_smtp_auth("user", "pass");

if ($mimemail->send()) {
    echo "The MIME Mail has been sent";
} else {
    echo "An error has occurred, mail was not sent";
}
```

At the moment this version is in testing and would appreciate any assistance possible to support such a large amount of SMTP's. If you have a mistake is possible to review the entire conversation that makes this script with SMTP. to do so before the 'send' call to the function 'set\_smtp\_log' a true, and the verdict can bring everything through 'get\_smtp\_log' as illustrated below:

```
$mimemail->set_smtp_log(true);

if ($mimemail->send()) {
    echo "The MIME Mail has been sent";
} else {
    echo $mimemail->get_smtp_log();
}
```

If so, I ask you to leave your report in The Forum where this kind of try to adapt as much as possible the response received from SMTP.

Stats
-----

[](#stats)

[![Alt](https://camo.githubusercontent.com/6559deeeb4a8156d5216833356497c02e391f5881a12d35458c233d0e4e3c56c/68747470733a2f2f7265706f62656174732e6178696f6d2e636f2f6170692f656d6265642f663131313663313366383633323939643639343833663866613761343530373662333239646131362e737667 "Repobeats analytics image")](https://camo.githubusercontent.com/6559deeeb4a8156d5216833356497c02e391f5881a12d35458c233d0e4e3c56c/68747470733a2f2f7265706f62656174732e6178696f6d2e636f2f6170692f656d6265642f663131313663313366383633323939643639343833663866613761343530373662333239646131362e737667)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 78.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/02c3cd995904354a1300e073e5993bfedb8a3c2b3e794a21cc9e67d54b5fd530?d=identicon)[developarts](/maintainers/developarts)

---

Top Contributors

[![developarts](https://avatars.githubusercontent.com/u/3060193?v=4)](https://github.com/developarts "developarts (15 commits)")[![zyuhel](https://avatars.githubusercontent.com/u/4603624?v=4)](https://github.com/zyuhel "zyuhel (4 commits)")

---

Tags

attachmentembedded-imagesimages-embeddedmimenomad-mime-mailphpsmtpsmtp-authenticationsmtp-log

### Embed Badge

![Health badge](/badges/developarts-nomad-mimemail/health.svg)

```
[![Health](https://phpackages.com/badges/developarts-nomad-mimemail/health.svg)](https://phpackages.com/packages/developarts-nomad-mimemail)
```

###  Alternatives

[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
