-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathModuleConfig.cfc
More file actions
81 lines (72 loc) · 2.46 KB
/
Copy pathModuleConfig.cfc
File metadata and controls
81 lines (72 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/**
* *******************************************************************************
* Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
* www.ortussolutions.com
* *******************************************************************************
* ----
* Module Config
*
* @author Luis Majano <lmajano@ortussolutions.com>
*/
component {
// Module Properties
this.title = "ColdBox Mail Services";
this.author = "Ortus Solutions";
this.webURL = "https://www.ortussolutions.com";
this.description = "A module that allows you to leverage many mail service protocols in a nice abstracted API";
// Model Namespace
this.modelNamespace = "cbmailservices";
// CF Mapping
this.cfmapping = "cbmailservices";
// Mixin Helpers
this.applicationHelper = [ "helpers/mixins.cfm" ];
// Development mail log entry point. Handlers return 404 outside development.
this.entryPoint = "cbmailservices";
/**
* Configure the module
*/
function configure() {
// Module Settings
settings = {
// The default token Marker Symbol
tokenMarker: "@",
// Default protocol to use, it must be defined in the mailers configuration
defaultProtocol: "default",
// Here you can register one or many mailers by name
mailers: { "default": { class: "CFMail" } },
// The defaults for all mail config payloads and protocols
defaults: {},
// Whether the scheduled task is running or not
runQueueTask: true
};
// Listeners
interceptorSettings = { customInterceptionPoints: "preMailSend,postMailSend" };
}
/**
* Register the local mail viewer only for development applications.
*/
function development() {
router
.route( "/log/message/:id" )
.withHandler( "Log" )
.toAction( { "GET": "show", "DELETE": "deleteMessage" } );
router
.route( "/log/messages" )
.withHandler( "Log" )
.toAction( { "GET": "messages", "DELETE": "deleteMany" } );
router
.route( "/log" )
.withHandler( "Log" )
.toAction( { "GET": "index" } );
}
/**
* Fired when the module is registered and activated.
*/
function onLoad() {
}
/**
* Fired when the module is unregistered and unloaded
*/
function onUnload() {
}
}