BackendlessAPI.Service.MessagingService.SendEmail C# (CSharp) Method

SendEmail() public method

public SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, List recipients, List attachments ) : void
subject String
bodyParts BackendlessAPI.Messaging.BodyParts
recipients List
attachments List
return void
    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 } );
    }

Same methods

MessagingService::SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, List recipients, List attachments, AsyncCallback responder ) : void
MessagingService::SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, String recipient ) : void
MessagingService::SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, String recipient, AsyncCallback responder ) : void
MessagingService::SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, String recipient, List attachments ) : void
MessagingService::SendEmail ( String subject, BackendlessAPI.Messaging.BodyParts bodyParts, String recipient, List attachments, AsyncCallback responder ) : void