473,398 Members | 2,343 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,398 software developers and data experts.

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="inputSubmit" value="Submit">
</form>

cdosys-godaddy.asp:

<%
dim strEmail,struname,strcity,strstate
strEMail = Request("email")
struname = Request("uname")
strcity = Request("city")
strstate = Request("state")
Dim objMail
'Create the mail object
Set objMail = Server.CreateObject("CDO.Message")

'Set key properties
objMail.From = ma****@lasvegasunions.info
objMail.To = strEMail
objMail.Subject= "Insert here your subject text"
objMail.TextBody = "Insert here your plain body text"

'Send the email
objMail.Send

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

???
Ed

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

One of the things you are missing is a Configuration Field Item:
'Name or IP of Remote SMTP Server
objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")
= "relay-hosting.secureserver.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="inputSubmit" value="Submit">
</form>

cdosys-godaddy.asp:

<%
dim strEmail,struname,strcity,strstate
strEMail = Request("email")
struname = Request("uname")
strcity = Request("city")
strstate = Request("state")
Dim objMail
'Create the mail object
Set objMail = Server.CreateObject("CDO.Message")

'Set key properties
objMail.From = ma****@lasvegasunions.info
objMail.To = strEMail
objMail.Subject= "Insert here your subject text"
objMail.TextBody = "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.netwrote in message
news:11**********************@n39g2000hsh.googlegr oups.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="inputSubmit" value="Submit">
</form>

cdosys-godaddy.asp:

<%
dim strEmail,struname,strcity,strstate
strEMail = Request("email")
struname = Request("uname")
strcity = Request("city")
strstate = Request("state")
Dim objMail
'Create the mail object
Set objMail = Server.CreateObject("CDO.Message")

'Set key properties
objMail.From = ma****@lasvegasunions.info
objMail.To = strEMail
objMail.Subject= "Insert here your subject text"
objMail.TextBody = "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
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...
14
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...
2
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...
12
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....
5
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...
8
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...
8
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...
6
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...
9
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
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
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.