Trace:
Differences
This shows you the differences between two versions of the page.
moodle:email [2016/01/14 15:39] onno [Plain Text Version] |
moodle:email [2016/01/14 15:39] (current) onno [Plain Text Version] |
||
---|---|---|---|
Line 26: | Line 26: | ||
</code> | </code> | ||
- | Please note that the $user's property ''mailformat'' determines the email layout. If ''$user->mailformat == 1'' then the html format is used, otherwise plain text. The site wide user preference default is can be retrieved through ''$CFG->defaultpreference_mailformat''. If you use ''$user = core_user::get_user($user_id)'', then the $user will contain the mailformat property. | + | Please note that the $user's property ''mailformat'' determines the email layout. If ''$user->mailformat == 1'' then the html format is used, otherwise plain text. The site wide user preference default is can be retrieved through ''$CFG->defaultpreference_mailformat''. If you use ''$user = core_user::get_user($user_id)'', then the $user will contain the ''mailformat'' property. |
==== Filling a new (dummy) user with the correct info ==== | ==== Filling a new (dummy) user with the correct info ==== | ||