[Openfirst-cvscommit] messenger newmsg.php,1.6,1.7
Brought to you by:
xtimg
From: <dav...@us...> - 2003-08-20 17:55:52
|
Update of /cvsroot/openfirst/messenger In directory sc8-pr-cvs1:/tmp/cvs-serv31706 Modified Files: newmsg.php Log Message: Added function checking just in case the person doesnt have the mail function in place. Index: newmsg.php =================================================================== RCS file: /cvsroot/openfirst/messenger/newmsg.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** newmsg.php 20 Aug 2003 16:00:30 -0000 1.6 --- newmsg.php 20 Aug 2003 16:07:45 -0000 1.7 *************** *** 50,58 **** $receiver = mysql_fetch_object($query); ! // Send mail notification to use via multipart mail function multipartmail($receiver->email, "New message has arrived!" , $message = "Hello ".$receiver->firstname.", you have received a new message from ".$user->user.". You may pickup your message by visiting: $home/$basepath/messenger/inbox.php. Thank you and have a nice day!"); echo("<br><br><br><center>Message has been sent! [ <a href='inbox.php'>Inbox</a> ]<br><br>"); --- 50,60 ---- $receiver = mysql_fetch_object($query); ! // Send mail notification to use via multipart mail function if the function exists already + if(function_exists("multipartmail")){ multipartmail($receiver->email, "New message has arrived!" , $message = "Hello ".$receiver->firstname.", you have received a new message from ".$user->user.". You may pickup your message by visiting: $home/$basepath/messenger/inbox.php. Thank you and have a nice day!"); + } echo("<br><br><br><center>Message has been sent! [ <a href='inbox.php'>Inbox</a> ]<br><br>"); |