Skip to content

Commit 12ea976

Browse files
authored
Merge pull request #880 from nep/patch-3
Update email.md
2 parents 578a43c + 01caa1a commit 12ea976

File tree

1 file changed

+6
-5
lines changed
  • docs/development/legacy/libraries

1 file changed

+6
-5
lines changed

docs/development/legacy/libraries/email.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ The Email class will automatically create all email headers and will process the
3030
ee()->load->library('email');
3131
ee()->load->helper('text');
3232

33-
ee()->email->wordwrap = true;
34-
ee()->email->mailtype = 'text';
33+
ee()->email->set_wordwrap(TRUE);
34+
ee()->email->set_mailtype('html');
35+
3536
ee()->email->from($from);
3637
ee()->email->to($recipient);
3738
ee()->email->subject($email_subject);
@@ -212,7 +213,7 @@ Returns a string containing any server messages, the email headers, and the emai
212213
| \$clear_attachments | `Boolean` | If set to `TRUE` attachments will be cleared out, otherwise they're left alone. |
213214
| Returns | `Object` | Email class object |
214215

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.):
216217

217218
ee()->email->clear();
218219

@@ -223,8 +224,8 @@ If you are sending multiple emails in a method either for notifications or becau
223224
ee()->load->library('email');
224225
ee()->load->helper('text');
225226

226-
ee()->email->wordwrap = true;
227-
ee()->email->mailtype = 'text';
227+
ee()->email->set_wordwrap(TRUE);
228+
ee()->email->set_mailtype('html');
228229
$errors = array();
229230

230231
foreach($member_emails as $username => $from)

0 commit comments

Comments
 (0)