@@ -113,35 +113,37 @@ sending email.
113
113
=================== =================== ============================ =======================================================================
114
114
Preference Default Value Options Description
115
115
=================== =================== ============================ =======================================================================
116
- **userAgent ** CodeIgniter None The "user agent".
116
+ **fromEmail ** The email address to be set in the "from" header.
117
+ **fromName ** The name to be set in the "from" header.
118
+ **userAgent ** CodeIgniter The "user agent".
117
119
**protocol ** mail ``mail ``, ``sendmail ``, The mail sending protocol.
118
120
or ``smtp ``
119
- **mailPath ** /usr/sbin/sendmail None The server path to Sendmail.
120
- **SMTPHost ** No Default None SMTP Server Hostname.
121
- **SMTPUser ** No Default None SMTP Username.
122
- **SMTPPass ** No Default None SMTP Password.
123
- **SMTPPort ** 25 None SMTP Port. (If set to ``465 ``, TLS will be used for the connection
121
+ **mailPath ** /usr/sbin/sendmail The server path to Sendmail.
122
+ **SMTPHost ** SMTP Server Hostname.
123
+ **SMTPUser ** SMTP Username.
124
+ **SMTPPass ** SMTP Password.
125
+ **SMTPPort ** 25 SMTP Port. (If set to ``465 ``, TLS will be used for the connection
124
126
regardless of ``SMTPCrypto `` setting.)
125
- **SMTPTimeout ** 5 None SMTP Timeout (in seconds).
126
- **SMTPKeepAlive ** false ``true ``/``false `` (boolean) Enable persistent SMTP connections.
127
+ **SMTPTimeout ** 5 SMTP Timeout (in seconds).
128
+ **SMTPKeepAlive ** false ``true ``/``false `` Enable persistent SMTP connections.
127
129
**SMTPCrypto ** tls ``tls ``, ``ssl ``, or SMTP Encryption. Setting this to ``ssl `` will create a secure
128
130
empty string (``'' ``) channel to the server using SSL, and ``tls `` will issue a
129
131
``STARTTLS `` command to the server. Connection on port ``465 `` should
130
132
set this to an empty string (``'' ``). See also
131
133
:ref: `email-ssl-tls-for-smtp `.
132
- **wordWrap ** true ``true ``/``false `` (boolean) Enable word-wrap.
134
+ **wordWrap ** true ``true ``/``false `` Enable word-wrap.
133
135
**wrapChars ** 76 Character count to wrap at.
134
136
**mailType ** text ``text `` or ``html `` Type of mail. If you send HTML email you must send it as a complete web
135
137
page. Make sure you don't have any relative links or relative image
136
138
paths otherwise they will not work.
137
- **charset ** utf -8 Character set (``utf-8 ``, ``iso-8859-1 ``, etc.).
138
- **validate ** true ``true ``/``false `` (boolean) Whether to validate the email address.
139
+ **charset ** UTF -8 Character set (``utf-8 ``, ``iso-8859-1 ``, etc.).
140
+ **validate ** true ``true ``/``false `` Whether to validate the email address.
139
141
**priority ** 3 1, 2, 3, 4, 5 Email Priority. ``1 `` = highest. ``5 `` = lowest. ``3 `` = normal.
140
- **CRLF ** \\ n ``\r\n `` or ``\n `` or ``\r `` Newline character. (Use ``\r\n `` to comply with RFC 822).
141
- **newline ** \\ n ``\r\n `` or ``\n `` or ``\r `` Newline character. (Use ``\r\n `` to comply with RFC 822).
142
- **BCCBatchMode ** false ``true ``/``false `` (boolean) Enable BCC Batch Mode.
143
- **BCCBatchSize ** 200 None Number of emails in each BCC batch.
144
- **DSN ** false ``true ``/``false `` (boolean) Enable notify message from server.
142
+ **CRLF ** \\ r \\ n ``\r\n ``, ``\n `` or ``\r `` Newline character. (Use ``\r\n `` to comply with RFC 822).
143
+ **newline ** \\ r \\ n ``\r\n ``, ``\n `` or ``\r `` Newline character. (Use ``\r\n `` to comply with RFC 822).
144
+ **BCCBatchMode ** false ``true ``/``false `` Enable BCC Batch Mode.
145
+ **BCCBatchSize ** 200 Number of emails in each BCC batch.
146
+ **DSN ** false ``true ``/``false `` Enable notify message from server.
145
147
=================== =================== ============================ =======================================================================
146
148
147
149
Overriding Word Wrapping
@@ -173,9 +175,9 @@ Class Reference
173
175
174
176
.. php :method :: setFrom($from[, $name = ''[, $returnPath = null]])
175
177
176
- :param string $from: "From" e-mail address
178
+ :param string $from: "From" email address
177
179
:param string $name: "From" display name
178
- :param string $returnPath: Optional email address to redirect undelivered e-mail to
180
+ :param string $returnPath: Optional email address to redirect undelivered email to
179
181
:returns: CodeIgniter\\ Email\\ Email instance (method chaining)
180
182
:rtype: CodeIgniter\\ Email\\ Email
181
183
@@ -192,8 +194,8 @@ Class Reference
192
194
193
195
.. php :method :: setReplyTo($replyto[, $name = ''])
194
196
195
- :param string $replyto: E-mail address for replies
196
- :param string $name: Display name for the reply-to e-mail address
197
+ :param string $replyto: Email address for replies
198
+ :param string $name: Display name for the reply-to email address
197
199
:returns: CodeIgniter\\ Email\\ Email instance (method chaining)
198
200
:rtype: CodeIgniter\\ Email\\ Email
199
201
@@ -204,12 +206,12 @@ Class Reference
204
206
205
207
.. php :method :: setTo($to)
206
208
207
- :param mixed $to: Comma-delimited string or an array of e-mail addresses
209
+ :param mixed $to: Comma separated string or an array of email addresses
208
210
:returns: CodeIgniter\\ Email\\ Email instance (method chaining)
209
211
:rtype: CodeIgniter\\ Email\\ Email
210
212
211
- Sets the email address(s ) of the recipient(s). Can be a single e-mail ,
212
- a comma-delimited list or an array:
213
+ Sets the email address(es ) of the recipient(s). Can be a single email ,
214
+ a comma separated list or an array:
213
215
214
216
.. literalinclude :: email/006.php
215
217
@@ -219,30 +221,30 @@ Class Reference
219
221
220
222
.. php :method :: setCC($cc)
221
223
222
- :param mixed $cc: Comma-delimited string or an array of e-mail addresses
224
+ :param mixed $cc: Comma separated string or an array of email addresses
223
225
:returns: CodeIgniter\\ Email\\ Email instance (method chaining)
224
226
:rtype: CodeIgniter\\ Email\\ Email
225
227
226
- Sets the CC email address(s ). Just like the "to", can be a single e-mail ,
227
- a comma-delimited list or an array.
228
+ Sets the CC email address(es ). Just like the "to", can be a single email ,
229
+ a comma separated list or an array.
228
230
229
231
.. php :method :: setBCC($bcc[, $limit = ''])
230
232
231
- :param mixed $bcc: Comma-delimited string or an array of e-mail addresses
232
- :param int $limit: Maximum number of e-mails to send per batch
233
+ :param mixed $bcc: Comma separated string or an array of email addresses
234
+ :param int $limit: Maximum number of emails to send per batch
233
235
:returns: CodeIgniter\\ Email\\ Email instance (method chaining)
234
236
:rtype: CodeIgniter\\ Email\\ Email
235
237
236
- Sets the BCC email address(s ). Just like the ``setTo() `` method, can be a single
237
- e-mail , a comma-delimited list or an array.
238
+ Sets the BCC email address(es ). Just like the ``setTo() `` method, can be a single
239
+ email , a comma separated list or an array.
238
240
239
241
If ``$limit `` is set, "batch mode" will be enabled, which will send
240
242
the emails to batches, with each batch not exceeding the specified
241
243
``$limit ``.
242
244
243
245
.. php :method :: setSubject($subject)
244
246
245
- :param string $subject: E-mail subject line
247
+ :param string $subject: Email subject line
246
248
:returns: CodeIgniter\\ Email\\ Email instance (method chaining)
247
249
:rtype: CodeIgniter\\ Email\\ Email
248
250
@@ -252,21 +254,21 @@ Class Reference
252
254
253
255
.. php :method :: setMessage($body)
254
256
255
- :param string $body: E-mail message body
257
+ :param string $body: Email message body
256
258
:returns: CodeIgniter\\ Email\\ Email instance (method chaining)
257
259
:rtype: CodeIgniter\\ Email\\ Email
258
260
259
- Sets the e-mail message body:
261
+ Sets the email message body:
260
262
261
263
.. literalinclude :: email/010.php
262
264
263
265
.. php :method :: setAltMessage($str)
264
266
265
- :param string $str: Alternative e-mail message body
267
+ :param string $str: Alternative email message body
266
268
:returns: CodeIgniter\\ Email\\ Email instance (method chaining)
267
269
:rtype: CodeIgniter\\ Email\\ Email
268
270
269
- Sets the alternative e-mail message body:
271
+ Sets the alternative email message body:
270
272
271
273
.. literalinclude :: email/011.php
272
274
@@ -284,7 +286,7 @@ Class Reference
284
286
:returns: CodeIgniter\\ Email\\ Email instance (method chaining)
285
287
:rtype: CodeIgniter\\ Email\\ Email
286
288
287
- Appends additional headers to the e-mail :
289
+ Appends additional headers to the email :
288
290
289
291
.. literalinclude :: email/012.php
290
292
@@ -311,7 +313,7 @@ Class Reference
311
313
:returns: true on success, false on failure
312
314
:rtype: bool
313
315
314
- The e-mail sending method. Returns boolean true or false based on
316
+ The email sending method. Returns boolean true or false based on
315
317
success or failure, enabling it to be used conditionally:
316
318
317
319
.. literalinclude :: email/015.php
@@ -334,7 +336,7 @@ Class Reference
334
336
:param string $disposition: 'disposition' of the attachment. Most
335
337
email clients make their own decision regardless of the MIME
336
338
specification used here. https://www.iana.org/assignments/cont-disp/cont-disp.xhtml
337
- :param string $newname: Custom file name to use in the e-mail
339
+ :param string $newname: Custom file name to use in the email
338
340
:param string $mime: MIME type to use (useful for buffered data)
339
341
:returns: CodeIgniter\\ Email\\ Email instance (method chaining)
340
342
:rtype: CodeIgniter\\ Email\\ Email
@@ -375,7 +377,7 @@ Class Reference
375
377
376
378
.. literalinclude :: email/022.php
377
379
378
- .. note :: Content-ID for each e-mail must be re-created for it to be unique.
380
+ .. note :: Content-ID for each email must be re-created for it to be unique.
379
381
380
382
.. php :method :: printDebugger($include = ['headers', 'subject', 'body'])
381
383
0 commit comments