fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [11146] bkbooking: stavanger bugfix try catch when se


From: Kjell Arne Espedal
Subject: [Fmsystem-commits] [11146] bkbooking: stavanger bugfix try catch when send email about application accepted
Date: Mon, 03 Jun 2013 10:52:24 +0000

Revision: 11146
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11146
Author:   kjell
Date:     2013-06-03 10:52:23 +0000 (Mon, 03 Jun 2013)
Log Message:
-----------
bkbooking: stavanger bugfix try catch when send email about application accepted

Modified Paths:
--------------
    branches/stavangerkommune/booking/inc/class.boapplication.inc.php

Modified: branches/stavangerkommune/booking/inc/class.boapplication.inc.php
===================================================================
--- branches/stavangerkommune/booking/inc/class.boapplication.inc.php   
2013-05-31 09:22:46 UTC (rev 11145)
+++ branches/stavangerkommune/booking/inc/class.boapplication.inc.php   
2013-06-03 10:52:23 UTC (rev 11146)
@@ -50,8 +50,15 @@
                                }
                                $bbody = "<p>".$application['contact_name']." 
sin søknad  om leie/lån av ".$resourcename." i 
".$application[building_name]."</p>"; 
                                $bbody .= "<p>Den ".$dates."er Godkjent</p>";
-
-                               $send->msg('email', $buildingemail, $subject, 
$bbody, '', '', '', $from, '', 'html');
+                               
+                               try
+                               {
+                                       $send->msg('email', $buildingemail, 
$subject, $bbody, '', '', '', $from, '', 'html');
+                               }
+                               catch (phpmailerException $e)
+                               {
+                                       // TODO: Inform user if something goes 
wrong
+                               }
                
                        } elseif ($application['status'] == 'REJECTED') {
                                $body = "<p>Din søknad i 
".$config->config_data['application_mail_systemname']." om leie/lån 
er".lang($application['status']); 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]