Will now send html formatted mails if required.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1106 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2004-09-23 15:14:14 +00:00
parent 1589f95540
commit e3a3199031
1 changed files with 2 additions and 0 deletions

View File

@ -714,6 +714,7 @@ sub sendEmail
From =>ZM_FROM_EMAIL,
To=>ZM_EMAIL_ADDRESS,
Subject=>$subject,
Type=>(($body=~/<html>/)?'text/html':'text/plain'),
Data=>$body
);
@ -770,6 +771,7 @@ sub sendMessage
From =>ZM_FROM_EMAIL,
To=>ZM_MESSAGE_ADDRESS,
Subject=>$subject,
Type=>(($body=~/<html>/)?'text/html':'text/plain'),
Data=>$body
);