Updated June 5, 2006
Iron Speed Designer V3.2 and V4.0
There are three basic methods for configuring your email server to send email messages from your application:
Use the built-in SMTP Email Server available in Windows XP Professional or Windows 2003 Server. This option requires configuring the SMTP server as described in Configuring the SMTP Email Server in Microsoft Windows and is the recommended solution.
Provide username / password authentication. This option uses the underlying SMTPMail class in ASP.NET to send out email. This is described in multiple places on the web, including: http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=622.
Configure
your email server to accept "relaying" of email. This option potentially exposes your
server to spammers, and we strongly discourage you from doing so. Typically, an email is sent through an
email server, the mail server requires authentication. If the email server did not require
authentication, then it is called an email server with an "open
relay", which means anyone can then use your email server to send out
email messages. This is one of the
biggest problems on the Internet because "open relays" are used
by spammers to send out emails without getting caught. Because it is not their server sending
the emails, an unsuspecting company's email server is hijacked to send out
emails.
An alternative is configuring your email server to only relay from
specific IP addresses or machines.
Iron Speed Designer generates a MailSender class that is a thin wrapper on the.NET MailMessage class. This class is located in:
..\BaseClasses\Utils\MailSender.vb
The.NET MailMessage class does not provide any facility to specify credentials; it is a very simple SMTP class. However, Microsoft has a workaround that allows you to specify credentials:
http://support.microsoft.com/default.aspx?scid=kb;en-us;555287
You can use the .NET MailMessage class directly using the example specified above rather than using the MailSender wrapper that we created.