X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=include%2Fclasses%2Femail.php-class;h=9b3614b203595647d5d643d242c9fe597fb40ec5;hp=77d4033822e9280051e6a3f6f07ae8bffea55ec1;hb=614326822d8bfffa88708f9c5c54636d05ccb84a;hpb=4f96c398686b7fc69e0f0b5c8808c6d429828b56 diff --git a/include/classes/email.php-class b/include/classes/email.php-class index 77d4033..9b3614b 100755 --- a/include/classes/email.php-class +++ b/include/classes/email.php-class @@ -96,6 +96,9 @@ class email { // function addMailText($textpart) // add some text to the mail // + // function addAttachment($aname, $acontent, [$atype]) + // add an attachment to the mail, use given file name, content and MIME type (defaults to application/octet-stream) + // // function send() // really send the mail // @@ -250,7 +253,7 @@ class email { //print("To: ".$util->htmlify($recpt)."
\n"); //print(nl2br($util->htmlify($hdrs))); //print(nl2br($util->htmlify($mtxt))); - mail($recpt, $subj, $mtxt, $hdrs); + return mail($recpt, $subj, $mtxt, $hdrs); } function mimeencode($fieldtext) {