Sending email doesn't have to be complicated or archaic or sad 😭. The ColdBox Mail Services (cbmailservices
) module will allow you to send email in a fluent and abstracted way in multiple protocols for many environments in a single cohesive API, which will bring you smiles 😍, rainbows 🌈 and unicorns 🦄!. The supported protocols are:
Protocol | Description |
---|---|
CFMail |
Traditional sending via the cfmail tag. |
File |
Sends mails to a location on disk as .html files. |
InMemory |
Store email mementos in an array. Perfect for testing. |
Null |
Ignores emails send to it! |
MailGun |
Sends mail via the Mailgun API Services (https://www.mailgun.com) |
Postmark |
Send via the PostMark API Service (https://postmarkapp.com/) |
It also sports tons of useful features for mail sending:
- Async Mail
- Mail Queues
- Mail merging of variables
- Mail attachments, headers and parameters
- View and Layout+View rendering for mail
- Mail tracking
- Multiple mailers
- Success and Error callbacks
Mailable@cbmailservices
delegate for adding mailing traits to objects.- So Much More!
Note: One of the features is the ability to queue emails for asynchronous (non-blocking) sending. This is done via a task runner which is on by default. This feature can be turned off, if desired, by these steps:
-
Open config/coldbox.cfc
-
In the modulesSettings section, add a key for cbmailServices with the property
runQueueTask
set tofalse
.
moduleSettings = {
cbmailServices : {
runQueueTask: false
}
}
View the documentation at https://coldbox-mailservices.ortusbooks.com
Apache License, Version 2.0.
- Source: https://github.com/coldbox-modules/cbmailservices
- ForgeBox: http://forgebox.io/view/cbmailservices
- Docs: https://coldbox-mailservices.ortusbooks.com
- Changelog
- Lucee 5+
- ColdFusion 2018+
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com
Because of His grace, this project exists. If you don't like this, then don't read it, its not for you.
"Therefore being justified by faith, we have peace with God through our Lord Jesus Christ: By whom also we have access by faith into this grace wherein we stand, and rejoice in hope of the glory of God. And not only so, but we glory in tribulations also: knowing that tribulation worketh patience; And patience, experience; and experience, hope: And hope maketh not ashamed; because the love of God is shed abroad in our hearts by the Holy Ghost which is given unto us. ." Romans 5:5
"I am the way, and the truth, and the life; no one comes to the Father, but by me (JESUS)" Jn 14:1-12