Index: lib/moodlelib.php
===================================================================
RCS file: /cvsroot/moodle/moodle/lib/moodlelib.php,v
retrieving revision 1.998
diff -r1.998 moodlelib.php
3940a3941,3944
>  * @param string $replyto sets the email in the reply-to header of the mail
>  * @param string $replytoname sets the readable name in the reply-to header of the 
>  *          mail
>  * @param int $wordwrapwidth sets the width to wrap to. if < 1: don't wrap at all
3944c3948,3949
< function email_to_user($user, $from, $subject, $messagetext, $messagehtml='', $attachment='', $attachname='', $usetrueaddress=true, $replyto='', $replytoname='') {
---
> function email_to_user($user, $from, $subject, $messagetext, $messagehtml='', $attachment='', $attachname='', $usetrueaddress=true,
> $replyto='', $replytoname='', $wordwrapwidth=79) {
4008c4013
<     $mail->WordWrap = 79;                               // set word wrap
---
>     $mail->WordWrap = $wordwrapwidth;                   // set word wrap
