[Vtigercrm-commits] [vtiger-commits] r6074 - /vtigercrm/trunk/modules/Activities/Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 16 11:33:04 EDT 2006
Author: saraj
Date: Tue May 16 09:33:00 2006
New Revision: 6074
Log:
code added to send mail to the invitees
Modified:
vtigercrm/trunk/modules/Activities/Save.php
Modified: vtigercrm/trunk/modules/Activities/Save.php
==============================================================================
--- vtigercrm/trunk/modules/Activities/Save.php (original)
+++ vtigercrm/trunk/modules/Activities/Save.php Tue May 16 09:33:00 2006
@@ -128,6 +128,27 @@
$mail_status = send_mail('Activities',$to_email,$current_user->user_name,'',$subject,$description);
}
+//code added to send mail to the invitees
+if(isset($_REQUEST['inviteesid']) && $_REQUEST['inviteesid']!='')
+{
+ global $current_user;
+ $local_log->info("send notification is on");
+ require_once("modules/Emails/mail.php");
+ $selected_users_string = $_REQUEST['inviteesid'];
+ $invitees_array = explode(';',$selected_users_string);
+ $subject = $_REQUEST['activity_mode'].' : '.$_REQUEST['subject'];
+ $description = getActivityDetails($_REQUEST['description']);
+ foreach($invitees_array as $inviteeid)
+ {
+ if($inviteeid != '')
+ {
+ $to_email = getUserEmailId('id',$inviteeid);
+ $mail_status = send_mail('Activities',$to_email,$current_user->user_name,'',$subject,$description);
+ }
+ }
+}
+
+
//code added for returning back to the current view after edit from list view
if($_REQUEST['return_viewname'] == '') $return_viewname='0';
if($_REQUEST['return_viewname'] != '')$return_viewname=$_REQUEST['return_viewname'];
More information about the vtigercrm-commits
mailing list