You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/development/legacy/libraries/email.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,8 +30,9 @@ The Email class will automatically create all email headers and will process the
30
30
ee()->load->library('email');
31
31
ee()->load->helper('text');
32
32
33
-
ee()->email->wordwrap = true;
34
-
ee()->email->mailtype = 'text';
33
+
ee()->email->set_wordwrap(TRUE);
34
+
ee()->email->set_mailtype('html');
35
+
35
36
ee()->email->from($from);
36
37
ee()->email->to($recipient);
37
38
ee()->email->subject($email_subject);
@@ -212,7 +213,7 @@ Returns a string containing any server messages, the email headers, and the emai
212
213
|\$clear_attachments |`Boolean`| If set to `TRUE` attachments will be cleared out, otherwise they're left alone. |
213
214
| Returns |`Object`| Email class object |
214
215
215
-
Clears out all parameters set either by property or method:
216
+
Clears out all the message-specific parameters set either by property or method (text, recipient, subject, etc.), but not including the overall parameters like the charset, wordwrap, mailtype, and the sending method (smtp, etc.):
216
217
217
218
ee()->email->clear();
218
219
@@ -223,8 +224,8 @@ If you are sending multiple emails in a method either for notifications or becau
0 commit comments