예제 #1
0
 /// <summary>
 /// Returns Mail info, the calling function must use th 'out' keyword in its signature
 /// example: Someobject.GetMailInfo(out variable, out varibale2, out variable3, out varibale4)
 /// </summary>
 /// <param name="HostName"></param>
 /// <param name="LoginName"></param>
 /// <param name="Password"></param>
 /// <param name="Port"></param>
 public virtual void GetMailInfo(out string HostName, out string LoginName, out string Password, out int Port)
 {
     ConfigLibrary.Entity.MailEntity mail = configuration.Mail;
     HostName  = mail.HostName;
     LoginName = mail.UserName;
     Password  = mail.UserPassword;
     Port      = mail.Port;
 }
예제 #2
0
 /// <summary>
 /// Enters all of the required data for the Mail Server
 /// </summary>
 /// <param name="HostName">Mail server name</param>
 /// <param name="LoginName">The login name to use</param>
 /// <param name="Password">The password to use, enter in as plain text</param>
 /// <param name="Port">the port to connect to the mail server.  IMAP is typically 25</param>
 public virtual void AddMailInfo(string HostName, string LoginName, string Password, int Port)
 {
     ConfigLibrary.Entity.MailEntity mail = configuration.Mail;
     mail.HostName     = HostName;
     mail.UserName     = LoginName;
     mail.UserPassword = Password;
     mail.Port         = Port;
 }
예제 #3
0
 /// <summary>
 /// Returns Mail info for EWS, the calling function must use th 'out' keyword in its signature
 /// </summary>
 /// <param name="LoginName"></param>
 /// <param name="Password"></param>
 public virtual void GetMailInfo(out string LoginName, out string Password)
 {
     ConfigLibrary.Entity.MailEntity mail = configuration.Mail;
     LoginName = mail.UserName;
     Password  = mail.UserPassword;
 }