Ejemplo n.º 1
0
        public void Send(MailMessage message)
        {
            EsmtpClient smtp = new EsmtpClient(smtpServer, username, password, use_ssl);
            // wrap the MailMessage in a MailMessage wrapper for easier
            // access to properties and to add some functionality
            MailMessageWrapper messageWrapper = new MailMessageWrapper(message);

            smtp.Send(messageWrapper);

            smtp.Close();
        }
Ejemplo n.º 2
0
		public void Send (MailMessage message) 
		{
			EsmtpClient smtp = new EsmtpClient (smtpServer, username, password, use_ssl);
			// wrap the MailMessage in a MailMessage wrapper for easier
			// access to properties and to add some functionality
			MailMessageWrapper messageWrapper = new MailMessageWrapper( message );
			
			smtp.Send (messageWrapper);
			
			smtp.Close ();
		}