473,769 Members | 3,857 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDOsys asp mail script problems

Trying to use cdosys mail, but this is giving me an "no such object"
error. the hosting company is not much help, but their list of
components offered does include cdosys mail:

<form method="post" action="cdosys-godaddy.asp"><p class="bodymd-
wh">Your Name:
<input type="text" name="uname" id="uname">
<br>City:
<input type="text" name="city" id="city">
<br>State:
<input type="text" name="state" id="state">
<br>

Your Email:
<input type="text" name="EMail" id="Email">
<br><br>
<input type="submit" name="btnSubmit "
class="inputSub mit" value="Submit">
</form>

cdosys-godaddy.asp:

<%
dim strEmail,struna me,strcity,strs tate
strEMail = Request("email" )
struname = Request("uname" )
strcity = Request("city")
strstate = Request("state" )
Dim objMail
'Create the mail object
Set objMail = Server.CreateOb ject("CDO.Messa ge")

'Set key properties
objMail.From = ma****@lasvegas unions.info
objMail.To = strEMail
objMail.Subject = "Insert here your subject text"
objMail.TextBod y = "Insert here your plain body text"

'Send the email
objMail.Send

'Clean-up mail object
Set objMail = Nothing
%>

???
Ed

Sep 21 '07 #1
2 5371
Mr. Ed,

One of the things you are missing is a Configuration Field Item:
'Name or IP of Remote SMTP Server
objMessage.Conf iguration.Field s.Item("http://schemas.microso ft.com/cdo/configuration/smtpserver")
= "relay-hosting.secures erver.net"

Also, are you aware that you are sending emails to the person that is
filling out the form and specifying that they are originating from the Las
Vegas Unions site? I'm not sure if GoDaddy allows this. I know you can
specify that the message is from whatever name is supplied on the form, but
I think it has to go to one of the names in your GoDaddy mail accounts.

If you would like a nice, built web page that already works with GoDaddy,
I've got one!

Shoot me an email using my form mailer at www.joeswelding.biz.

(Yeah, the site is crappy, but the mailer works great!)

"mister-Ed" wrote:
Trying to use cdosys mail, but this is giving me an "no such object"
error. the hosting company is not much help, but their list of
components offered does include cdosys mail:

<form method="post" action="cdosys-godaddy.asp"><p class="bodymd-
wh">Your Name:
<input type="text" name="uname" id="uname">
<br>City:
<input type="text" name="city" id="city">
<br>State:
<input type="text" name="state" id="state">
<br>

Your Email:
<input type="text" name="EMail" id="Email">
<br><br>
<input type="submit" name="btnSubmit "
class="inputSub mit" value="Submit">
</form>

cdosys-godaddy.asp:

<%
dim strEmail,struna me,strcity,strs tate
strEMail = Request("email" )
struname = Request("uname" )
strcity = Request("city")
strstate = Request("state" )
Dim objMail
'Create the mail object
Set objMail = Server.CreateOb ject("CDO.Messa ge")

'Set key properties
objMail.From = ma****@lasvegas unions.info
objMail.To = strEMail
objMail.Subject = "Insert here your subject text"
objMail.TextBod y = "Insert here your plain body text"

'Send the email
objMail.Send

'Clean-up mail object
Set objMail = Nothing
%>

???
Ed

Sep 21 '07 #2
"mister-Ed" <27**@cox.netwr ote in message
news:11******** **************@ n39g2000hsh.goo glegroups.com.. .
Trying to use cdosys mail, but this is giving me an "no such object"
error. the hosting company is not much help, but their list of
components offered does include cdosys mail:

<form method="post" action="cdosys-godaddy.asp"><p class="bodymd-
wh">Your Name:
<input type="text" name="uname" id="uname">
<br>City:
<input type="text" name="city" id="city">
<br>State:
<input type="text" name="state" id="state">
<br>

Your Email:
<input type="text" name="EMail" id="Email">
<br><br>
<input type="submit" name="btnSubmit "
class="inputSub mit" value="Submit">
</form>

cdosys-godaddy.asp:

<%
dim strEmail,struna me,strcity,strs tate
strEMail = Request("email" )
struname = Request("uname" )
strcity = Request("city")
strstate = Request("state" )
Dim objMail
'Create the mail object
Set objMail = Server.CreateOb ject("CDO.Messa ge")

'Set key properties
objMail.From = ma****@lasvegas unions.info
objMail.To = strEMail
objMail.Subject = "Insert here your subject text"
objMail.TextBod y = "Insert here your plain body text"

'Send the email
objMail.Send

'Clean-up mail object
Set objMail = Nothing
%>
I've never heard of a 'no such object' error. Is that what it really says?
Can you post the error in full. Is it on the CreateObject line? Has your
hosting company confirmed that the CDOSYS is supported? Are the mail
options in the server extensions for your site configured?
--
Anthony Jones - MVP ASP/ASP.NET
Sep 21 '07 #3

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

Similar topics

3
7457
by: Matthew Loraditch | last post by:
I have a form mail processor from brainjar.com, I am using.(http://www.brainjar.com/asp/formmail/) I have modified it slightly to do some things. I am trying to get it to cc a copy of the email it generates to the person who filled out the form. I have added bolded part below to the actual email sending portion of the script. However i do not receieve two emails, only one, the email i do receive lists the cc: in the headers but that receipient...
14
13433
by: Neil Ginsberg | last post by:
I am using VBA/Access to send SMTP mail using CDO. I set a reference to "Microsoft CDO for Windows 2000 Library" (cdosys.dll). Everything works fine, both on my PC and on another PC. However, on another PC that the database was installed on, the user is getting the message, "The project contains a missing or broken reference to the file 'CDO.DLL' version 1.21." However, I don't have a reference to cdo.dll; my reference is to cdosys.dll....
2
2388
by: crushando | last post by:
hi i'm new to ASP and have to deal with some email scripting at the very start.I've collected some script pieces from a variaty of tutorial pages but haven't been able to send any mails yet. I'm pasting the latest version of the code: <% Dim sMsg
12
2217
by: Basr | last post by:
My provider removed suddenly the CDONTS from the server. Now I have to change my forms and I have to use the CDOSYS functionaltity Till now I used one script that could do the work with one page. I could send all my forms to that page and this page conveyed all the input by email. Now I want to make a script that can do the same job. This is too diffucult for me. I can make a script for the normal input for email forms but I want to...
5
4301
by: fcetrini | last post by:
Hello to the board, i'm facing this problem and i need some help: with cdosys i'm able to send e-mail from asp using the local exchange server. Now I also have to save the sent mail into the user's mailbox for future reference: how to??? i'm using: ..Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = ServerName ..Fields("http://schemas.microsoft.com/cdo/configuration/
8
7549
by: Akbur | last post by:
Dear all, I'm having major issues sending an email from my ASP.NET app. I'm getting a "Could not create 'CDO.Message' object". When I did a search for cdosys.dll in \win_location\system32, I could not find it. So I copied it from another Windows 2003 server, where it did exist. Another dependant file was missing too (inetcomm.dll).
8
3261
by: worldofrugs | last post by:
I'm hosted on a shared server with Godaddy.com... I have several forms on my website that all use the same ASP file to send out my forms.. It worked fine for a long time, but now the forms send to my e-mail arrive after a few hours instead of instantly. Calling Godaddy did not help as they stated all is working fine (no delays) on their end and refuse to help with custom scripts.. My emails are also hosted by godaddy like my website. ...
6
6519
by: ayush patel | last post by:
Hi everybody, I wrote a windows service and I have to do sme email functionality in it. I used SMTP and added system.web reference to the project. there are no compilation errors as such but there is a run time error saying System.Web.HttpException: Could not create an object of type 'CDO.Message'. Please verify that the current platform configuration supports SMTP mail. at...
9
3029
by: paulmitchell507 | last post by:
I have a file called email2.asp which I am using to mail data obtained from a SQL query. I would like to pass the holiday_ID value in the querystring attached to the end of the URL. It all works except that I can't get the value of holiday_ID included as a querystring. As a test I can insert a value after the ?id= and this is passed as a querystring. I am sure it's just the syntax that I am having problem with
0
9589
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
10214
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...
1
9996
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
8872
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
7410
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
6674
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3963
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
2815
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.