Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET SMTP Email issue with IIS 6.0 on Win Server 2003

Reply
Thread Tools

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

 
 
Mart
Guest
Posts: n/a
 
      01-18-2006
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

 
Reply With Quote
 
 
 
 
Jared
Guest
Posts: n/a
 
      01-18-2006
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

 
Reply With Quote
 
 
 
 
Mart
Guest
Posts: n/a
 
      01-18-2006
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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applet to run on Win 98, Win ME, Win XP, Win Vista & Win 7 ?? Krist Java 6 05-06-2010 11:53 PM
SMTP Relay from IIS SMTP Virtual Server tshad ASP .Net 1 05-05-2008 04:26 AM
email asp & smtp in win 2003 weiwei ASP General 2 10-07-2004 08:50 PM
ASP applications form IIS on win NT 4.0 to IIS 6.0 win 2003 Raj ASP General 2 04-14-2004 12:32 AM
to be Win 2k Server or to be Win 2003 Server certified? daQuestioner MCSE 0 10-10-2003 02:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57