473,465 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

sending email from asp

Can anyone point me to some GOOD directions on how to send an e-mail from
asp. (And, if this matters [I think it does] - I have Microsoft Exchange
2000 installed on a Windows 2000 server which is also where my web site is)

Basically here is what I am trying to do:

I have a from I created in Front Page XP. I want the results to go to a
datbase and an email address.

I found Microsoft's white page on how to do this. If I take out the code
for sending the email (uses CDONTS) it works fine - the database gets
updated.

However, once I put the code for the email in, and I try to submit the form,
I get "The page cannot be displayed .... HTTP 500 - Internal Server error".

I think the problem is that I do not have a default SMTP server in IIS, as I
have the Exchange Server loaded. So, I think I have two choices:

1) Find out how to redirect CDONTS to SMTP on Exchange (can find no
documentation on how to do this),

or

2) Send e-mail that includes the form results using something other than
CDONTS.

Thanks for any help you might be able to provide.

Glenn
Nov 19 '05 #1
2 1389
First disable "show simplifed HTTP errors" in your IE config. This way you
should have the exact error rather than a generic message...

Patrice

--

"Glenn" <no****@yahoo.com> a écrit dans le message de
news:Ov*************@TK2MSFTNGP14.phx.gbl...
Can anyone point me to some GOOD directions on how to send an e-mail from
asp. (And, if this matters [I think it does] - I have Microsoft Exchange
2000 installed on a Windows 2000 server which is also where my web site is)
Basically here is what I am trying to do:

I have a from I created in Front Page XP. I want the results to go to a
datbase and an email address.

I found Microsoft's white page on how to do this. If I take out the code
for sending the email (uses CDONTS) it works fine - the database gets
updated.

However, once I put the code for the email in, and I try to submit the form, I get "The page cannot be displayed .... HTTP 500 - Internal Server error".
I think the problem is that I do not have a default SMTP server in IIS, as I have the Exchange Server loaded. So, I think I have two choices:

1) Find out how to redirect CDONTS to SMTP on Exchange (can find no
documentation on how to do this),

or

2) Send e-mail that includes the form results using something other than
CDONTS.

Thanks for any help you might be able to provide.

Glenn

Nov 19 '05 #2
THANK YOU!!

This has been driving me crazy since last Friday. I have posted messages
everywhere I can find.

I did what you suggested and was able to find my error. It now works!!

"Patrice" <no****@nowhere.com> wrote in message
news:eS**************@TK2MSFTNGP12.phx.gbl...
First disable "show simplifed HTTP errors" in your IE config. This way you
should have the exact error rather than a generic message...

Patrice

--

"Glenn" <no****@yahoo.com> a écrit dans le message de
news:Ov*************@TK2MSFTNGP14.phx.gbl...
Can anyone point me to some GOOD directions on how to send an e-mail from
asp. (And, if this matters [I think it does] - I have Microsoft Exchange
2000 installed on a Windows 2000 server which is also where my web site

is)

Basically here is what I am trying to do:

I have a from I created in Front Page XP. I want the results to go to a
datbase and an email address.

I found Microsoft's white page on how to do this. If I take out the code
for sending the email (uses CDONTS) it works fine - the database gets
updated.

However, once I put the code for the email in, and I try to submit the

form,
I get "The page cannot be displayed .... HTTP 500 - Internal Server

error".

I think the problem is that I do not have a default SMTP server in IIS,
as

I
have the Exchange Server loaded. So, I think I have two choices:

1) Find out how to redirect CDONTS to SMTP on Exchange (can find no
documentation on how to do this),

or

2) Send e-mail that includes the form results using something other than
CDONTS.

Thanks for any help you might be able to provide.

Glenn


Nov 19 '05 #3

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

Similar topics

3
by: Paul Lamonby | last post by:
Hi, I am sending a file from the server as an email attachment. The file is being attached no problem and sending the email, but I get an error when I try to open it saying it is corrupt....
0
by: praba kar | last post by:
Dear All, I have doubt regarding mail sending smtplib module. The below code is I used to send a mail. ########################################## import email.Message import email.Utils...
3
by: VB Programmer | last post by:
I have an ASPX page where I send out emails through my mail server mail.MyDomain.com. When I send emails to MyName@MyDomain.com it sends PERFECTLY. When I try sending an email to any other address...
3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
2
by: =?Utf-8?B?QWRl?= | last post by:
HI All, I am encountering the following error when I try to send an email through a SMTP server. I believe the problem lies with the authentication part when the network crednetials are used,...
9
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient...
7
by: bleachie | last post by:
Hey, I just need some help, my form seems to not send me all of the 'guestNames' and 'guestEmails' forms. i use this function to add more guestnames and guestemail fields based on the number of...
10
by: Markgoldin | last post by:
I am sending an XML data from not dontnet process to a .Net via socket listener. Here is a data sample: <VFPData> <serverdata> <coderun>updateFloor</coderun> <area>MD2</area>...
31
by: happyse27 | last post by:
Hi All, I am trying for weeks how to send email from windows pc, which from my gmail account to my hotmail account. Using net::smtp module sending email failed,Kindly assist. (for the item d it...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.