// access to properties and to add some functionality
MailMessageWrapper messageWrapper = new MailMessageWrapper( message );
-#if TARGET_JVM
- string currentSmtpServer = smtpServer;
- if (currentSmtpServer == "localhost")
- {
- java.net.InetAddress address = java.net.InetAddress.getLocalHost();
- currentSmtpServer = address.getHostAddress();
- }
- SmtpClient smtp = new SmtpClient (currentSmtpServer);
-#else
SmtpClient smtp = new SmtpClient (smtpServer);
-#endif
smtp.Send (messageWrapper);