473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

ASP.NET SMTP Email issue with IIS 6.0 on Win Server 2003

hi,

urgent assistance needed

I have been developing some webforms in VB.NET that have email
submissions. I developed them locally using VS .NET 2003 on XP Prof.
Then tested them on our development server running Win Server 200 and
IIS 5.0.

all was fine til i put them live on a new Intranet server using Windows
Server 2003 and IIS 6.0.

can't get the emails to work at all. the forms seem to submit
successfully but no email. The email is being directed to one of our
Exchange servers.

i know the SMTP service is running and in order as i tested an ASP form
using email and it delivered the emails fine.

- checked the Mailroot folder and no sign of the email in the Queue or
any other folders.

- checked for the CDOSYS.dll and re-registered it

think it may be to do with permissions.

see email code below:

Try
' Davids old way works on Win Server 2k
'Dim oEmail As New MailMessage

' Google Groups way
Dim oEmail As MailMessage = New MailMessage

oEmail.BodyFormat = MailFormat.Html
oEmail.Body = BodyText
oEmail.From = user

oEmail.To = tbx_confirm_email.Text

' Note: don't think this is working.
'oEmail.Cc = user

oEmail.Subject = "Book Order Form - " &
tbx_from_name.Text

Dim oSendEmail As Web.Mail.SmtpMail
oSendEmail.SmtpServer = "dcms-ex1"

oSendEmail.Send(oEmail)

Catch ex As Exception

'Label1.Text = "Thank you for your application.
However, you request has not been sent due to the error:<b>" &
ex.ToString()

End Try

-------------

thanks in advance for asny assistance, been trying to resolve this for
days now.

martin

Jan 18 '06 #1
2 1261
Have you set the smpt server to accept connections and relayed
messages?

If you select properties on the smtp server, then select 'Access',
there are two buttons at the bottom 'Connection...' and 'Relay...'. Set
both of these to 'All except listed below'.

Also, you need to ensure that port 25 or 26 is open for your smtp
server if you have a firewall in place.

I can't see any obvious problems with your code.

Cheers

Jared

Jan 18 '06 #2
thank you for your post Jared.

Problem solved, sort of i guess.

'All except listed below' was checked for both and the default SMTP
server was using port 25 and i could send email by ASP so that was
fine.

i found that removing the 'Enable Anonomous Access' and simply having
'Integrated Windows authentication' allowed email to be sent via
ASP.NET.

i think the IUSR_[servername] does not have the correct permissions for
ASP.NET. could that be the case?

martin

Jan 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dale zhang | last post by:
Hi, I write an asp.net web application. It has a “Contact Us” page, where users fill in their email, subject and text and hit send. Then the email will go to my hard coded yahoo email...
9
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5,...
1
by: Benny Ng | last post by:
Dear All, Now I just finished my winform application. And a part of that is to send email reminder to the users. It's working fine in the server that with SMTP service in Windows 2003. But now...
1
by: Michael D. Ober | last post by:
I am writing an application that needs to email to specific users on our Exchange server and need to query it to see if the SMTP address I will be sending to exists. The application will be...
0
by: =?Utf-8?B?TU9QU0M=?= | last post by:
Hi, i'm having a problem and hoping someone can give me some insight. I have Server Enterprise 2008 installed, set to a file server role with FSRM installed. I'm trying to setup where it will...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.