Provides access to all UTMail features.  
 More...
|  | 
| delegate void | ResultHandler (MailMessage mailMessage, bool success, string errorMessage) | 
|  | 
|  | 
| static void | Compose (MailMessage message, string annotation) | 
|  | Displays a default system email client application. Allows users to modify a preconfigured (by you) message and send it from their own email address.  More... 
 | 
|  | 
| static void | Send (MailMessage message, string host, string senderEmail, string password, bool enableSsl, ResultHandler resultHandler=null) | 
|  | Sends the specified message with SMTP.  More... 
 | 
|  | 
| static void | Send (MailMessage message, string host, string senderEmail, string account, string password, bool enableSsl, ResultHandler resultHandler=null) | 
|  | Sends the specified message with SMTP.  More... 
 | 
|  | 
| static void | Send (MailMessage message, string host, int port, string senderEmail, string password, bool enableSsl, ResultHandler resultHandler=null) | 
|  | Sends the specified message with SMTP.  More... 
 | 
|  | 
| static void | Send (MailMessage message, string host, int port, string senderEmail, string account, string password, bool enableSsl, ResultHandler resultHandler=null) | 
|  | Sends the specified message with SMTP.  More... 
 | 
|  | 
| static int | DefaultPort (bool enableSsl) | 
|  | Returns a default port depending on enableSsl setting.  More... 
 | 
|  | 
Provides access to all UTMail features. 
◆ Compose()
  
  | 
        
          | static void UT.Mail.Compose | ( | MailMessage | message, |  
          |  |  | string | annotation |  
          |  | ) |  |  |  | static | 
 
Displays a default system email client application. Allows users to modify a preconfigured (by you) message and send it from their own email address. 
- Parameters
- 
  
    | message | Preconfigured UT.MailMessage (may include To, CC, Bcc, Body, Text, Attachments, ...) to be displayed in an email client app. |  | annotation | Is used only on Android as a title of an email application choosing popup. |  
 
 
 
◆ DefaultPort()
  
  | 
        
          | static int UT.Mail.DefaultPort | ( | bool | enableSsl | ) |  |  | static | 
 
Returns a default port depending on enableSsl setting. 
- Returns
- The port number.
- Parameters
- 
  
    | enableSsl | Whether to use SSL/TLS to establish a secure SMTP connection. |  
 
 
 
◆ Send() [1/4]
  
  | 
        
          | static void UT.Mail.Send | ( | MailMessage | message, |  
          |  |  | string | host, |  
          |  |  | string | senderEmail, |  
          |  |  | string | password, |  
          |  |  | bool | enableSsl, |  
          |  |  | ResultHandler | resultHandler = null |  
          |  | ) |  |  |  | static | 
 
Sends the specified message with SMTP. 
- Parameters
- 
  
    | message | UT.MailMessage to send. |  | host | SMTP server address, f.e. smtp.gmail.com. |  | senderEmail | Sender's full email address, f.e. myadd.nosp@m.ress.nosp@m.@gmai.nosp@m.l.co.nosp@m.m. |  | password | Email account password. |  | enableSsl | Whether to use SSL/TLS to establish a secure SMTP connection. |  | resultHandler | (Optional) Delegate to be called in the main Unity thread after the sending operation is complete (successfully or not). |  
 
UTMail will try to detect the SMTP port automatically based on enableSsl argument (587 for secure connection, 25 otherwise). Full email address will be used as authentication account name. 
 
 
◆ Send() [2/4]
  
  | 
        
          | static void UT.Mail.Send | ( | MailMessage | message, |  
          |  |  | string | host, |  
          |  |  | string | senderEmail, |  
          |  |  | string | account, |  
          |  |  | string | password, |  
          |  |  | bool | enableSsl, |  
          |  |  | ResultHandler | resultHandler = null |  
          |  | ) |  |  |  | static | 
 
Sends the specified message with SMTP. 
- Parameters
- 
  
    | message | UT.MailMessage to send. |  | host | SMTP server address, f.e. smtp.gmail.com. |  | senderEmail | Sender's full email address, f.e. myadd.nosp@m.ress.nosp@m.@gmai.nosp@m.l.co.nosp@m.m. |  | account | SMTP authentication account name. |  | password | Email account password. |  | enableSsl | Whether to use SSL/TLS to establish a secure SMTP connection. |  | resultHandler | (Optional) Delegate to be called in the main Unity thread after the sending operation is complete (successfully or not). |  
 
UTMail will try to detect the SMTP port automatically based on enableSsl argument (587 for secure connection, 25 otherwise). 
 
 
◆ Send() [3/4]
  
  | 
        
          | static void UT.Mail.Send | ( | MailMessage | message, |  
          |  |  | string | host, |  
          |  |  | int | port, |  
          |  |  | string | senderEmail, |  
          |  |  | string | password, |  
          |  |  | bool | enableSsl, |  
          |  |  | ResultHandler | resultHandler = null |  
          |  | ) |  |  |  | static | 
 
Sends the specified message with SMTP. 
- Parameters
- 
  
    | message | UT.MailMessage to send. |  | host | SMTP server address, f.e. smtp.gmail.com. |  | port | SMTP server port (usually 587 or 465 for secure connection, 25 otherwise). |  | senderEmail | Sender's full email address, f.e. myadd.nosp@m.ress.nosp@m.@gmai.nosp@m.l.co.nosp@m.m. |  | password | Email account password. |  | enableSsl | Whether to use SSL/TLS to establish a secure SMTP connection. |  | resultHandler | (Optional) Delegate to be called in the main Unity thread after the sending operation is complete (successfully or not). |  
 
Full email address will be used as authentication account name. 
 
 
◆ Send() [4/4]
  
  | 
        
          | static void UT.Mail.Send | ( | MailMessage | message, |  
          |  |  | string | host, |  
          |  |  | int | port, |  
          |  |  | string | senderEmail, |  
          |  |  | string | account, |  
          |  |  | string | password, |  
          |  |  | bool | enableSsl, |  
          |  |  | ResultHandler | resultHandler = null |  
          |  | ) |  |  |  | static | 
 
Sends the specified message with SMTP. 
- Parameters
- 
  
    | message | UT.MailMessage to send. |  | host | SMTP server address, f.e. smtp.gmail.com. |  | port | SMTP server port (usually 587 or 465 for secure connection, 25 otherwise). |  | senderEmail | Sender's full email address, f.e. myadd.nosp@m.ress.nosp@m.@gmai.nosp@m.l.co.nosp@m.m. |  | account | SMTP authentication account name. |  | password | Email account password. |  | enableSsl | Whether to use SSL/TLS to establish a secure SMTP connection. |  | resultHandler | (Optional) Delegate to be called in the main Unity thread after the sending operation is complete (successfully or not). |  
 
 
 
◆ Version
      
        
          | const string UT.Mail.Version = "1.1" | 
      
 
 
The documentation for this class was generated from the following file:
- C:/Users/u-n-i/Documents/projects/utmail/unity/Assets/UniversalTools/UTMail/Src/Mail.cs