public void SendEmail( String subject, BodyParts bodyParts, List<String> recipients, List<String> attachments )
{
if( subject == null )
throw new ArgumentNullException( ExceptionMessage.NULL_SUBJECT );
if( bodyParts == null )
throw new ArgumentNullException( ExceptionMessage.NULL_BODYPARTS );
if( recipients == null || recipients.Count == 0 )
throw new ArgumentNullException( ExceptionMessage.NULL_RECIPIENTS );
if( attachments == null )
throw new ArgumentNullException( ExceptionMessage.NULL_ATTACHMENTS );
Invoker.InvokeSync<object>( EMAIL_MANAGER_SERVER_ALIAS, "send", new Object[] { Backendless.AppId, Backendless.VersionNum, subject, bodyParts, recipients, attachments } );
}