Skip to content
Luis Majano edited this page Dec 7, 2015 · 1 revision

Settings

You will need to update the your ColdBox.cfc with a mailsettings structure with your preferred mail settings and mail protocol to use. All the keys that can go into the mailsettings struct map 1-1 to the cfmail tag except for the tokenMarker and protocol keys.

mailsettings = {
    // The default token Marker Symbol
    tokenMarker = "@",
    // protocol
    protocol = {
        class = "",
        properties = {}
    }
};

IMPORTANT You can have default values for ANY of the cfmail tag attributes via the configuration element keys and they will be added to the mail payload object for you. This is a great way to define default mailing attributes or custom ones.