Online Product Info
MailServer Property

Description
The MailServer property tells ASP.NET Auto DB which SMTP server should be used for sending email messages. Specify the fully qualified domain name such as mail.mycompany.com or smtp.mycompany.com, or the IP address of your SMTP server. If your web server has SMTP service installed and will be used to send emails, you can specify the name of your server or "Locahost".

Tip: Ask your administrator or ISP if you aren't sure which value to specify for the MailServer property. In addition, some ISPs/Hosting firms require a userID and Password to send emails. See the SMTPUser and SMTPPass properties for information on adding this information to the Auto DB tag.

Usage
See Listing A for an example of the MailServer property in the Auto DB control tag.

<cc1:AutoDB id="AutoDB1" runat="server" MailServer="mail.mycompany.com" AR_ToAddr="user@company.com" AR_FromAddr="hr@mycompany.com" SMTPUser="MyUserID" SMTPPass="MyPass"> </cc1:AutoDB> 
Listing A

Related Properties
SMTPUser, SMTPPass
 

 

© copyright 2004 360 IMPACT. All rights reserved.