Jump to content

mailserver


cyrus_

Recommended Posts

Hi,I dont know why my mailserver doesn't work. It works when i had windows xp professional, but now when I installed windows server 2003 it doesn't work,I have same settings:1. I have installed IIS 6.0 and SMTP service and i see them under service that they have been started automatic.2. I have installed .net framework 1.13.under Domains i have default SMTP Virtual Server and under its properties-> Delivery->advanced->smart host i have my ISP's smtp-server : smtp.bredband.net4. under access->relay "all except the list below" is ticked.4.under Authentication "Anonymous access" is ticked5. i have remote domain under domains and i wrote my ISP's smtp-server.here is my code that works when i had windows xp pro and those settings but it doesnot work when i have windows server 2003.

<%@ Page Language="C#" %><%@ import Namespace="System.Web.Mail" %><script runat="server">String mySender;String myRecipient;String sandMail;String mottMail;String subj;String text;public void Page_Load(Object sender, EventArgs e){ sandMail = Request.Form["sandareMail"];mottMail = Request.Form["mottagareMail"];mySender = Request.Form["sandare"];myRecipient = Request.Form["mottagare"];subj = Request.Form["subject"];text = Request.Form["textMail"];try{MailMessage Message = new MailMessage();Message.To = mottMail;Message.From = sandMail;Message.Subject = subj;Message.Body = @text;SmtpMail.SmtpServer = "smtp.bredband.net";SmtpMail.Send(Message);}catch{} }</script><html><head>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...