473,372 Members | 1,567 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,372 software developers and data experts.

problem with sending emails with CDO

Cas
Hi,

I run IIS 5.0 on windows 2000 server sp4. This server is connected to the
ISP with adsl modem.
I put ASP code (found on internet) in order to send emails with CDO: (see
below)
When running that page, i get the error: "HTTP 500 - Internal server error
Internet Explorer"
No idea why.
I wonder whether the first 4 lines must be between comments.
Another point: do i need to install SMTP service of my IIS server, or (what
i think) can i use the SMTP service of my ISP?

Thanks
Cas
<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
<%
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "smtp_ of_ my_ ISP"
.Update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "fr****@eretr.be"
.To = "to***@dfghdfg.be"
.Subject = "test with CDO"
.TextBody = "it works"
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>
Jul 19 '05 #1
8 3314
On Mon, 19 Jul 2004 10:42:54 +0200, "Cas" <fh***@rt.sp> wrote:
I run IIS 5.0 on windows 2000 server sp4. This server is connected to the
ISP with adsl modem.
I put ASP code (found on internet) in order to send emails with CDO: (see
below)
When running that page, i get the error: "HTTP 500 - Internal server error
Internet Explorer"
No idea why.
FAQ:

Why do I get a 500 Internal Server error for all ASP errors?
http://www.aspfaq.com/show.asp?id=2109
I wonder whether the first 4 lines must be between comments.
Another point: do i need to install SMTP service of my IIS server, or (what
i think) can i use the SMTP service of my ISP?
Provided you have access to send through it, you can use any SMTP
server with CDO. That's what cdoSMTPServer is used for.

Jeff
Thanks
Cas
<!--
METADATA
TYPE="typelib"
UUID="CD000000-8B95-11D1-82DB-00C04FB1625D"
NAME="CDO for Windows 2000 Library"
-->
<%
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "smtp_ of_ my_ ISP"
.Update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "fr****@eretr.be"
.To = "to***@dfghdfg.be"
.Subject = "test with CDO"
.TextBody = "it works"
.Send
End With
Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>


Jul 19 '05 #2
> When running that page, i get the error: "HTTP 500 - Internal server error
Internet Explorer"
No idea why.


Find out what the real error message is.
http://www.aspfaq.com/2109
Jul 19 '05 #3
You first need to find out what the real error is by turning off "friendly
error messages" in Internet Explorer.

http://www.aspfaq.com/show.asp?id=2109

Ray at work
"Cas" <fh***@rt.sp> wrote in message
news:uD****************@TK2MSFTNGP10.phx.gbl...
Hi,

I run IIS 5.0 on windows 2000 server sp4. This server is connected to the
ISP with adsl modem.
I put ASP code (found on internet) in order to send emails with CDO: (see
below)
When running that page, i get the error: "HTTP 500 - Internal server error
Internet Explorer"
No idea why.

Jul 19 '05 #4
Cas
thanks

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:e5**************@tk2msftngp13.phx.gbl...
You first need to find out what the real error is by turning off "friendly
error messages" in Internet Explorer.

http://www.aspfaq.com/show.asp?id=2109

Ray at work
"Cas" <fh***@rt.sp> wrote in message
news:uD****************@TK2MSFTNGP10.phx.gbl...
Hi,

I run IIS 5.0 on windows 2000 server sp4. This server is connected to the ISP with adsl modem.
I put ASP code (found on internet) in order to send emails with CDO: (see below)
When running that page, i get the error: "HTTP 500 - Internal server error Internet Explorer"
No idea why.


Jul 19 '05 #5
Cas
Maybe one more point:
the first four lines are between comments, so how can they be interpreted by
ASP?
Thanks
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:e5**************@tk2msftngp13.phx.gbl...
You first need to find out what the real error is by turning off "friendly
error messages" in Internet Explorer.

http://www.aspfaq.com/show.asp?id=2109

Ray at work
"Cas" <fh***@rt.sp> wrote in message
news:uD****************@TK2MSFTNGP10.phx.gbl...
Hi,

I run IIS 5.0 on windows 2000 server sp4. This server is connected to the ISP with adsl modem.
I put ASP code (found on internet) in order to send emails with CDO: (see below)
When running that page, i get the error: "HTTP 500 - Internal server error Internet Explorer"
No idea why.


Jul 19 '05 #6
It's kinda like an include, in a way, but it's "including" a COM type
library instead of a file. ASP looks for the <!-- METADATA "comment."

Ray at work

"Cas" <fh***@rt.sp> wrote in message
news:OZ**************@TK2MSFTNGP10.phx.gbl...
Maybe one more point:
the first four lines are between comments, so how can they be interpreted
by
ASP?
Thanks
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:e5**************@tk2msftngp13.phx.gbl...
You first need to find out what the real error is by turning off
"friendly
error messages" in Internet Explorer.

http://www.aspfaq.com/show.asp?id=2109

Ray at work
"Cas" <fh***@rt.sp> wrote in message
news:uD****************@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I run IIS 5.0 on windows 2000 server sp4. This server is connected to the > ISP with adsl modem.
> I put ASP code (found on internet) in order to send emails with CDO: (see > below)
> When running that page, i get the error: "HTTP 500 - Internal server error > Internet Explorer"
> No idea why.



Jul 19 '05 #7
It's a pre-processing directive, like #include or @language. This specific
directive tells ASP to load the CDO library so the code can use named
constants instead of their numeric equivalents. You can do a similar thing
for ado constants as an alternative to loading the quite hefty adovbs.inc.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Cas" <fh***@rt.sp> wrote in message
news:OZ**************@TK2MSFTNGP10.phx.gbl...
Maybe one more point:
the first four lines are between comments, so how can they be interpreted by ASP?

Jul 19 '05 #8
Cas
Ok, thanks again
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:ua**************@TK2MSFTNGP11.phx.gbl...
It's a pre-processing directive, like #include or @language. This specific directive tells ASP to load the CDO library so the code can use named
constants instead of their numeric equivalents. You can do a similar thing for ado constants as an alternative to loading the quite hefty adovbs.inc.

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Cas" <fh***@rt.sp> wrote in message
news:OZ**************@TK2MSFTNGP10.phx.gbl...
Maybe one more point:
the first four lines are between comments, so how can they be
interpreted by
ASP?


Jul 19 '05 #9

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

Similar topics

1
by: dan glenn | last post by:
I'm creating HTML emails from a PHP site and sending them out to an email list (just about 40 people so far are on this list). I've tested and confirmed that these emails work in yahoo.com's...
8
by: Fabio Papa | last post by:
I am trying to write a windows service that sends emails to clients at specific times based on information in a sql db. Since this is done for multiple cities, I start a thread for each city and...
2
by: Mr. x | last post by:
Hello, I am sending emails with Hebrew contents. When receiving emails - I cannot see the Hebrew characters (it is not outlook express configuration, because when receiving emails from friends -...
5
by: Pauravi | last post by:
Hi I am making a project that sends emails.I m using System.Web.Mail and smtpMail.Send() to send emails i have set my SmtpMail.SmtpServer to my remote serve The problem is I m not able to...
2
by: Mr. x | last post by:
Hello, I have a problem of posting message to newsgroup server : news.microsoft.com. When I am sending the message directly via news.microsoft.com (using outlook express) there is a problem,...
4
by: splicemix | last post by:
Hi all, I have recently set up a Drupal website. I am a beginner. My shared host server does not allow nobody@localhost to send emails, and prevents access to php.ini, so I spent some time...
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...
5
by: Kun | last post by:
i have the following code: ---------------------------------- import smtplib from email.MIMEText import MIMEText fp = open('confirmation.txt', 'rb') msg = MIMEText(fp.read()) From =...
0
by: manevski ognjen | last post by:
Hi, I have one problem with console application and threading. In my SMtp class I have method that sends emmails with attachments with html text. Program should work with, let say 10 emails,...
2
by: samvb | last post by:
Hello Guys, This is more a problem with Argosoft Mail Server Pro. I was able to send email from my php and I can see list of all emails sent in the Argosoft Emails window. But after recieiving the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.