sendMessageWithAttachments (method)
Sends a SOAP message with attachment(s) to the server.
Syntax
- (void)sendMessageWithAttachments:(NSString*)url :(NSString*)primaryMessageId;
public func sendMessageWithAttachments(_ url: String, _ primaryMessageId: String) throws -> Void
Remarks
This method follows the general pattern used by SendMessage method. It also lets you pass a selection of attachments to the service.
Assign the attachment content to AttachmentBytes, AttachmentFile, or AttachmentStream property. Subscribe to BeforeSendAttachment to pass more than one attachment.