|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do I configure my SMTP server to allow emails to be sent from my web site?
Hi,
The computer I have as a web and mail server is running Windows Server 2003. I want to configure my server to allow members of my web site to send e-mails from a form I provide using the SMTP Service on my server. I have tried many different things, but none have worked. The web site I am using uses ASP.NET 2.0 and C#. When I try to send a e-mail, this is the error message I recieve: An established connection was aborted by the software in your host machine. It seems to me that it might be the way I am authenticating my username and password, but could it be something wrong with the way my server allows access to the SMTP server? What settings do I need to change to allow remote access to the SMTP service via my web site? Any help would be greatly appreciated!! Thanks Here is the coding I have on my page to submit the e-mail: MailAddress from = new MailAddress([ADDRESS], [NAME]); MailAddress to = new MailAddress([ADDRESS], [NAME] MailAddress copy = new MailAddress([ADDRESS], [NAME]); MailMessage message = new MailMessage(from, to); message.Subject = "Using the SmtpClient class."; message.IsBodyHtml = true; message.Body = @"Using this feature, you can send an e-mail message from an application very easily."; message.CC.Add(copy); NetworkCredential authInfo = new NetworkCredential([USERNAME], [PASSWORD]); SmtpClient client = new SmtpClient([IP], 25); client.UseDefaultCredentials = false; client.Credentials = authInfo; client.Send(message); I left out some things because they are sensitive. They are replace with [Something]. Eric |
|
#2
|
|||
|
|||
|
If no one jumps in here try asking in the NET forum.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > How do I configure my SMTP server to allow emails to be sent from my web site? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|