/// /// Copyright © 2003-2008 JetBrains s.r.o. /// You may distribute under the terms of the GNU General Public License, as published by the Free Software Foundation, version 2 (see License.txt in the repository root folder). /// namespace JetBrains.Omea.OpenAPI { /// /// Specifies possible formats for emails created through . /// public enum EmailBodyFormat { /// /// The body is plain text. /// PlainText, /// /// The body is HTML text. /// Html }; /// /// Specifies the name and address information of a recipient for an e-mail message. /// /// 2.0 public struct EmailRecipient { /// /// The name of the recipient. /// public string Name; /// /// The e-mail address of the recipient. /// public string EmailAddress; /// /// Creates a new recipient with the specified name and e-mail address. /// /// The name of the recipient. /// The e-mail address of the recipient. public EmailRecipient( string name, string emailAddress ) { Name = name; EmailAddress = emailAddress; } } /// /// Allows plugins to create e-mail messages in the system e-mail client. /// public interface IEmailService { /// /// Creates an e-mail message in the system e-mail client. /// /// The subject of the message. /// The body of the message, in plain text or HTML format. /// The format of the message body. /// A list of resources of types Contact or EmailAccount which /// specifies the recipients of the message. /// A list of names of files to be attached to the message. /// If true, the user's default signature is appended to the message text. void CreateEmail( string subject, string body, EmailBodyFormat bodyFormat, IResourceList recipients, string[] attachments, bool addSignature ); /// /// Creates an e-mail message in the system e-mail client. /// /// The subject of the message. /// The body of the message, in plain text or HTML format. /// The format of the message body. /// A list of recipients of the message. /// A list of names of files to be attached to the message. /// If true, the user's default signature is appended to the message text. /// 2.0 void CreateEmail( string subject, string body, EmailBodyFormat bodyFormat, EmailRecipient[] recipients, string[] attachments, bool addSignature ); } }