Ignore:
Timestamp:
06/29/07 15:18:52 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/class.bocalendar.inc.php

    r29 r36  
    26872687                        } 
    26882688 
    2689                         if(!is_object($GLOBALS['phpgw']->send)) 
     2689                        /*if(!is_object($GLOBALS['phpgw']->send)) 
    26902690                        { 
    26912691                                $GLOBALS['phpgw']->send = CreateObject('phpgwapi.send'); 
    2692                         } 
     2692                        }*/ 
    26932693                //      $send = &$GLOBALS['phpgw']->send; 
    26942694                         
     
    27082708                        foreach($to_notify as $userid => $statusid)  
    27092709                        { 
    2710                          
     2710                                $mail->ClearAllRecipients(); 
     2711                                $mail->ClearAttachments(); 
     2712                                 
    27112713                                $userid = (int)$userid; 
    27122714 
     
    27312733 
    27322734                                        $to = $preferences->email_address($userid); 
     2735                                         
    27332736                                        if (empty($to) || $to[0] == '@' || $to[0] == '$')       // we have no valid email-address 
    27342737                                        { 
     
    29452948                                                        break; 
    29462949                                        } 
    2947                                         $mail->AddAddress(implode(",",$to));     
     2950                                        $mail->AddAddress($to); 
    29482951                                        $mail->Body = $tmpbody; 
    29492952                                        $mail->From = $sender; 
     
    29572960                                        if(!$mail->Send()) 
    29582961                                        { 
     2962                                                 
    29592963                                                $returncode=false; 
    29602964                                        } 
     
    29912995                                                if($ex_participant) 
    29922996                                                        $to[] = $ex_participant; 
    2993                                 } 
    2994                                 $mail->AddAddress(implode(",",$to)); 
     2997                                }                
     2998                                foreach($to as $i => $to_array) 
     2999                                        $mail->AddAddress($to_array); 
    29953000                                $_body = explode("<hr size='1' width='100%'>",$tmpbody); 
    29963001                                $tmpbody = $_body[0]; 
     
    29983003                                $tmpbody.= "<br>".lang("Summary").": ".$this->so->cal->event[title]."<br>"; 
    29993004                                $tmpbody.= "<br>".lang("Start date").": ".$GLOBALS['phpgw']->common->show_date($starttime)."<br>".lang("End date").": ".$GLOBALS['phpgw']->common->show_date($endtime)."<br>"; 
    3000                                 $tmpbody.= "<br><br><hr size='1' width='100%'><font color='red'>".lang("This message was sent by server. You must send a message to sender to confirm this event")."</font>"; 
    3001                          
     3005                                $tmpbody.= "<br><br><hr size='1' width='100%'><font color='red'>" 
     3006                                .lang("This message was sent by server. You must send a message to sender to confirm this event")."<br>" 
     3007                                .lang("This is an external event. Even if it added to your expresso its can be changed any time at all")."</font><br>"; 
     3008                                 
     3009                                if ($GLOBALS['bocalendar']->so->cal->event[start][month] > 10) 
     3010                                        $event_month=$GLOBALS['bocalendar']->so->cal->event[start][month]; 
     3011                                else 
     3012                                        $event_month="0".$GLOBALS['bocalendar']->so->cal->event[start][month]; 
     3013                                $tmpbody .="<a href='../index.php?menuaction=calendar.uicalendar.add&date=" 
     3014                                .$GLOBALS['bocalendar']->so->cal->event[start][year] 
     3015                                .$event_month 
     3016                                .$GLOBALS['bocalendar']->so->cal->event[start][mday] 
     3017                                ."&hour=".$GLOBALS['bocalendar']->so->cal->event[start][hour] 
     3018                                ."&minute=".$GLOBALS['bocalendar']->so->cal->event[start][min] 
     3019                                ."&title=".$GLOBALS['bocalendar']->so->cal->event['title'] 
     3020                                ."&description=".$GLOBALS['bocalendar']->so->cal->event['description'] 
     3021                                ."&location=".$GLOBALS['bocalendar']->so->cal->event['location']."'>" 
     3022                                ."<h2>".lang("Add to my expresso")."</h2>"; 
     3023                                 
    30023024                                //attach extern vcard                    
    30033025                                // define('context','$GLOBALS.bocalendar.so.cal.event'); 
     
    30133035                                fclose($attach_fd); 
    30143036                                $mail->From = $sender; 
    3015                                 $mail->FromName = lang("Expresso external user").": ".$GLOBALS['phpgw_info']['user']['fullname']; 
     3037                                $mail->FromName = $GLOBALS['phpgw_info']['user']['fullname']; 
    30163038                                $mail->Sender = $mail->From; 
    30173039                                $mail->SenderName = $mail->FromName; 
Note: See TracChangeset for help on using the changeset viewer.