forked from dotkernel/dot-mail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmail.global.php.dist
131 lines (100 loc) · 4.33 KB
/
mail.global.php.dist
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?php
return [
/**
* Dotkernel mail module configuration
* Note that many of these options can be set programmaticaly too, when sending mail messages
* actually that is what you'll usually do, these config provide just default and options that remain the same for all mails
*/
'dot_mail' => [
//the key is the mail service name, this is the default one, which does not extends any configuration
'default' => [
//tells which other mail service configuration to extend
'extends' => null,
/**
* the mail transport to use
* can be any class implementing Laminas\Mail\Transport\TransportInterface
*
* for standard mail transports, you can use these aliases
* - sendmail => Laminas\Mail\Transport\Sendmail
* - smtp => Laminas\Mail\Transport\Smtp
* - file => Laminas\Mail\Transport\File
* - in_memory => Laminas\Mail\Transport\InMemory
*
* defaults to sendmail
**/
'transport' => \Laminas\Mail\Transport\Sendmail::class,
//message configuration
'message_options' => [
//from email address of the email
'from' => '',
//from name to be displayed instead of from address
'from_name' => '',
//reply-to email address of the email
'reply_to' => '',
//replyTo name to be displayed instead of the address
'reply_to_name' => '',
//destination email address as string or a list of email addresses
'to' => [],
//copy destination addresses
'cc' => [],
//hidden copy destination addresses
'bcc' => [],
//email subject
'subject' => '',
//body options - content can be plain text, HTML
'body' => [
'content' => '',
'charset' => 'utf-8',
],
//attachments config
'attachments' => [
'files' => [],
'dir' => [
'iterate' => false,
'path' => 'data/mail/attachments',
'recursive' => false,
]
],
],
//options that will be used only if Laminas\Mail\Transport\Smtp adapter is used
'smtp_options' => [
//hostname or IP address of the mail server
'host' => '',
//port of the mail server - default 25
'port' => 587,
//connection class used for authentication
//the calue can be one of smtp, plain, login or crammd5
'connection_class' => 'login',
'connection_config' => [
//the smtp authentication identity
//'username' => '',
//the smtp authentication credential
//'password' => '',
//the encryption type to be used, ssl or tls
//null should be used to disable SSL
'ssl' => 'tls',
]
],
//file options that will be used only if the adapter is Laminas\Mail\Transport\File
/*'file_options' => [
//this is the folder where the file is going to be saved
//default value is 'data/mail/output'
'path' => 'data/mail/output',
//a callable that will get the Laminas\Mail\Transport\File object as an argument and should return the filename
//if null is used, and empty callable will be used
//'callback' => null,
],*/
//listeners to register with the mail service, for mail events
'event_listeners' => [
[
'type' => 'service or class name',
'priority' => 1
],
],
],
/**
* You can define other mail services here, with the same structure as the default block
* you can even extend from the default block, and overwrite only the differences
*/
],
];