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

Once Again

I had posted this query about 3 days back but having got no response
yet, I am posting the same query again since I need to resolve the
issue urgently. Sorry for the same... I have already lost quite a lot
of time pondering on this issue without any positive outcome.

I am trying to send mails through ASP using CDO.MESSAGE but I don't
know why I am always getting the following error message:

Cannot modify or delete an object that was added using the COM+ Admin
SDK.

This is the code (the usual standard code for sending mails using
ASP....nothing more than that):

<%
Dim strMsg,sch,cdoConfig,cdoMessage

strMsg="Hello how are you?"
sch="http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig=Server.CreateObject("CDO.CONFIGURATION")
With cdoConfig.Fields
.Item(sch & "sendusing")=2
.Item(sch & "smtpserver")="smtp.mail.yahoo.co.uk"
.Item(sch & "smtpserverport")=25
.Update
End With

Set cdoMessage=Server.CreateObject("CDO.MESSAGE")
Set cdoMessage.Configuration=cdoConfig

cdoMessage.From="rn**@yahoo.co.uk"
cdoMessage.To="ga*******@hotmail.com"
cdoMessage.Subject="Hello"
cdoMessage.HtmlBody=strMsg
cdoMessage.Send

Set cdoMessage=Nothing
Set cdoConfig=Nothing
%>

The error points to the cdoMessage.Send line. Can someone please give
me some idea on what I could be missing?

I have gone through numerous posts & articles since last 4 days but
couldn't resolve the issue; all my efforts were in vain & went down
the drain. So somebody please help me....I need a solution urgently.

Please note that the Yahoo SMTP server & the 2 e-mail ids do exist &
are very much VALID.

May 2 '07 #1
6 2760
rn**@rediffmail.com wrote:
I had posted this query about 3 days back but having got no response
yet, I am posting the same query again since I need to resolve the
issue urgently. Sorry for the same... I have already lost quite a lot
of time pondering on this issue without any positive outcome.

I am trying to send mails through ASP using CDO.MESSAGE but I don't
know why I am always getting the following error message:

Cannot modify or delete an object that was added using the COM+ Admin
SDK.

This is the code (the usual standard code for sending mails using
ASP....nothing more than that):

<%
Dim strMsg,sch,cdoConfig,cdoMessage

strMsg="Hello how are you?"
sch="http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig=Server.CreateObject("CDO.CONFIGURATION")
With cdoConfig.Fields
.Item(sch & "sendusing")=2
.Item(sch & "smtpserver")="smtp.mail.yahoo.co.uk"
.Item(sch & "smtpserverport")=25
Try without this last line, i.e., without setting the port.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
May 2 '07 #2
On May 2, 1:31 pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
r...@rediffmail.com wrote:
I had posted this query about 3 days back but having got no response
yet, I am posting the same query again since I need to resolve the
issue urgently. Sorry for the same... I have already lost quite a lot
of time pondering on this issue without any positive outcome.
I am trying to send mails through ASP using CDO.MESSAGE but I don't
know why I am always getting the following error message:
Cannot modify or delete an object that was added using the COM+ Admin
SDK.
This is the code (the usual standard code for sending mails using
ASP....nothing more than that):
<%
Dim strMsg,sch,cdoConfig,cdoMessage
strMsg="Hello how are you?"
sch="http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig=Server.CreateObject("CDO.CONFIGURATION")
With cdoConfig.Fields
.Item(sch & "sendusing")=2
.Item(sch & "smtpserver")="smtp.mail.yahoo.co.uk"
.Item(sch & "smtpserverport")=25

Try without this last line, i.e., without setting the port.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.- Hide quoted text -

- Show quoted text -
That doesn't make any difference, Sir. Any other suggestions?

Pleeeeeeeeease help me resolve this problem......I earnestly beg
you.....

May 2 '07 #3
rn**@rediffmail.com wrote:
>
That doesn't make any difference, Sir. Any other suggestions?

Pleeeeeeeeease help me resolve this problem......I earnestly beg
you.....
Sorry, i have no clue. have you tried a Google Groups search? Have you
seen this:
http://groups.google.com/group/micro...894b689?hl=en&
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
May 2 '07 #4

<rn**@rediffmail.comwrote in message
news:11**********************@h2g2000hsg.googlegro ups.com...
On May 2, 1:31 pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
r...@rediffmail.com wrote:
I had posted this query about 3 days back but having got no response
yet, I am posting the same query again since I need to resolve the
issue urgently. Sorry for the same... I have already lost quite a lot
of time pondering on this issue without any positive outcome.
I am trying to send mails through ASP using CDO.MESSAGE but I don't
know why I am always getting the following error message:
Cannot modify or delete an object that was added using the COM+ Admin
SDK.
This is the code (the usual standard code for sending mails using
ASP....nothing more than that):
<%
Dim strMsg,sch,cdoConfig,cdoMessage
strMsg="Hello how are you?"
sch="http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig=Server.CreateObject("CDO.CONFIGURATION")
With cdoConfig.Fields
.Item(sch & "sendusing")=2
.Item(sch & "smtpserver")="smtp.mail.yahoo.co.uk"
.Item(sch & "smtpserverport")=25
Try without this last line, i.e., without setting the port.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.- Hide quoted text -

- Show quoted text -

That doesn't make any difference, Sir. Any other suggestions?

Pleeeeeeeeease help me resolve this problem......I earnestly beg
you.....
It seems highly unlikely that yahoo are going to have an open mail port in
this way. You are going to need to authenticate as a user. Do you have
some logon credentials provided to you?

Can you imagine the SPAM abuse this would get otherwise.

May 3 '07 #5
Anthony Jones wrote:
<rn**@rediffmail.comwrote in message
>>> Set cdoConfig=Server.CreateObject("CDO.CONFIGURATION")
With cdoConfig.Fields
.Item(sch & "sendusing")=2
.Item(sch & "smtpserver")="smtp.mail.yahoo.co.uk"
It seems highly unlikely that yahoo are going to have an open mail
port in this way.
abuse this would get otherwise.

Damn! I missed that! Good catch.
<note to self: read the posts more carefully!>
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
May 3 '07 #6
On May 3, 8:37 pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
Anthony Jones wrote:
<r...@rediffmail.comwrote in message
>> Set cdoConfig=Server.CreateObject("CDO.CONFIGURATION")
With cdoConfig.Fields
.Item(sch & "sendusing")=2
.Item(sch & "smtpserver")="smtp.mail.yahoo.co.uk"
It seems highly unlikely that yahoo are going to have an open mail
port in this way.

abuse this would get otherwise.

Damn! I missed that! Good catch.
<note to self: read the posts more carefully!>
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
I got it. What I was missing were the following 3 lines within With
cdoConfig.Fields:

..Item(sch & "smtpauthenticate")=1
..Item(sch & "sendusername")="myusername"
..Item(sch & "sendpassword")="mypassword"

Thanks for all your inputs,

Regards,

RON

May 3 '07 #7

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

Similar topics

2
by: Arpan De | last post by:
Suppose I have the following ASP code: <% Dim strName ..................... ..................... ..................... ..................... ..................... .....................
5
by: TheKeith | last post by:
I'm writing a javascript function that is supposed to open and close a box by adjusting the height style of a div container, everytime the link is clicked. For some reason though, the function only...
12
by: chrism | last post by:
Hello, I have a pop-up window that I would like to appear in front of the browser home page when a user opens IE. Problem is, I'd like it to never appear again if the user navigates back to the...
1
by: ComputerGuyCJ | last post by:
I have an application that I've used click-once deployment to publish out to a shared network path. From there I installed the app on a few client machines, including my own. Since then I published...
3
by: illmagination | last post by:
Hi, I recently received a task to have a .wav file play only once when home page is 1st loaded and only play again when the user re-visits the page by opening a new browser. I am using...
6
by: erdos | last post by:
I have an asp.net 2.0 button with server and client side click events. On the first click, both events will fire. On the next click, only the client side event fires. How do I make the server...
13
by: clarencemo | last post by:
Hello, I currently have a split db and I keep getting this error after about a day's worth of use. Once I've repaired it, I have created a clean db, imported the tables from a previous backup and...
7
by: injia | last post by:
I have my server request working but it will only make the request once. onclick calls the ajax function but only once. when i change entires in the form and hit the button nothing happens Here is...
8
by: Nick | last post by:
Hi there, I have a GridView in an UpdatePanel, each time the UpdatePanels Load event fires I set the DataSource and call DataBind of the grid view. This works great once, I add an item to the...
0
by: bbking66 | last post by:
Hello all, I've experienced a problem that I hadn't seen never before on any XP machines. I had a computer where windows 2000 was installed, after a disk format (quick format within Windows XP...
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
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:
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...
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...

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.