473,800 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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("C DO.Configuratio n")
With cdoConfig.Field s
.Item(cdoSendUs ingMethod) = cdoSendUsingPor t
.Item(cdoSMTPSe rver) = "smtp_ of_ my_ ISP"
.Update
End With
Set cdoMessage = CreateObject("C DO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "fr****@eretr.b e"
.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 3338
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("C DO.Configuratio n")
With cdoConfig.Field s
.Item(cdoSendUs ingMethod) = cdoSendUsingPor t
.Item(cdoSMTPSe rver) = "smtp_ of_ my_ ISP"
.Update
End With
Set cdoMessage = CreateObject("C DO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.From = "fr****@eretr.b e"
.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******** ********@TK2MSF TNGP10.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******** ******@tk2msftn gp13.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******** ********@TK2MSF TNGP10.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******** ******@tk2msftn gp13.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******** ********@TK2MSF TNGP10.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******** ******@TK2MSFTN GP10.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******** ******@tk2msftn gp13.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******** ********@TK2MSF TNGP10.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******** ******@TK2MSFTN GP10.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*****@dnartr eb.noraa> wrote in message
news:ua******** ******@TK2MSFTN GP11.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******** ******@TK2MSFTN GP10.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
2894
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 webmail. And I know they work on *my* Outlook Express. But I have one person (I know of) who gets the emails as plain text, so she sees the HTML code for the email instead of its proper representation. She has, like myself, OE6, and other html emails...
8
2033
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 continue the processing from each thread. My service starts fine (gives me no errors, etc), but it doesn't seem to start the new threads. I am new to windows services, so I don't know if I'm doing something wrong. Should I maybe be doing this...
2
9245
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 - I see hebrew, it is just sending by myself using *.aspx scripts). In web.config I have the following : <configuration> <system.web>
5
1949
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 send emails outside of my domain that is to hotmail ,yahoo or indiatimes,etc.But i m able to send thru Outlook Express that configured with this smtp server Also my server requires Authentication?How to go about it in my project
2
1090
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, that my messages are not seen on the newsgroups, and even somethimes they are rejected. When I am sending the message directly via my ISP provider
4
3138
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 getting a SMTP script running. While the Drupal feedback module and the new account creation works fine in terms of sending of mails, I am having some problems with the sending of password reminder emails. warning: Cannot modify header information -...
3
3625
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 smtpMail.Send("from@here.com", to@there.com, "Message subject", "Message Body") I'm sending it to my own email address on a different server using a dummy
5
23808
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 = 'xxxx@xxxx.xxxx.edu'
0
1220
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, and everyone of them is different. If i send file of 2Mb html data, the other files in other emails should be sent asynchrony with that file. But my program does not work very well. when I put mmain Thread to sleep, everything works just
2
3433
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 emails, it is not sending them to the email addresses provided. It is accepting the emails just not sending them. I have created a domain and list of email users who recieve the emails. My english is not gud, but please help me out somehow. I want...
0
9690
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10505
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10275
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10253
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9085
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7576
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.