diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index 50e2c4758..808275d36 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -21,20 +21,24 @@ */ #import +#import #import #import #import #import +#import +#import #import #import #import -#import -#import -#import +#import +#import +#import #import #import +#import #import #import #import @@ -332,7 +336,6 @@ static BOOL sendEMailNotifications = NO; NSString *pageName; iCalPerson *organizer; NSString *cn, *email, *sender, *iCalString; - NGSendMail *sendmail; WOApplication *app; unsigned i, count; iCalPerson *attendee; @@ -360,9 +363,6 @@ static BOOL sendEMailNotifications = NO; /* generate iCalString once */ iCalString = [[_newObject parent] versitString]; - /* get sendmail object */ - sendmail = [NGSendMail sharedSendMail]; - /* get WOApplication instance */ app = [WOApplication application]; @@ -444,9 +444,10 @@ static BOOL sendEMailNotifications = NO; [body release]; /* send the damn thing */ - [sendmail sendMimePart: msg - toRecipients: [NSArray arrayWithObject: email] - sender: [organizer rfc822Email]]; + [[SOGoMailer sharedMailer] + sendMimePart: msg + toRecipients: [NSArray arrayWithObject: email] + sender: [organizer rfc822Email]]; } } } diff --git a/SoObjects/Appointments/SOGoTaskObject.m b/SoObjects/Appointments/SOGoTaskObject.m index 5fc7b15aa..ac3b241cf 100644 --- a/SoObjects/Appointments/SOGoTaskObject.m +++ b/SoObjects/Appointments/SOGoTaskObject.m @@ -19,19 +19,23 @@ 02111-1307, USA. */ -#import "SOGoTaskObject.h" +#import +#import +#import +#import #import #import #import #import #import -#import -#import -#import -#import "SOGoAptMailNotification.h" + +#import #import "NSArray+Appointments.h" +#import "SOGoAptMailNotification.h" + +#import "SOGoTaskObject.h" @interface SOGoTaskObject (PrivateAPI) diff --git a/UI/SOGoUI/SOGoACLAdvisory.m b/UI/SOGoUI/SOGoACLAdvisory.m index 40cc8d0bb..aefddbdd2 100644 --- a/UI/SOGoUI/SOGoACLAdvisory.m +++ b/UI/SOGoUI/SOGoACLAdvisory.m @@ -23,10 +23,10 @@ #import #import #import -#import #import #import +#import #import #import #import @@ -195,9 +195,9 @@ [message setBody: body]; [body release]; - [[NGSendMail sharedSendMail] sendMimePart: message - toRecipients: [NSArray arrayWithObject: recipient] - sender: [activeUser primaryEmail]]; + [[SOGoMailer sharedMailer] sendMimePart: message + toRecipients: [NSArray arrayWithObject: recipient] + sender: [activeUser primaryEmail]]; } @end