Solved

SMS AddAttachment Protocol Error Classic ASP

Posted on 2016-09-14
10
36 Views
Last Modified: 2016-09-15
I get this error:

Line: 174
Column: -1
Source:
Description: Object doesn't support this property or method: 'AddAttachment'
Err #:
Com Err #: -2146827850
Category: Microsoft VBScript runtime

From the first .AddAttachment
[code]
                  Set cdoMessage = CreateObject("CDO.Message")
                  With cdoMessage
                        Set .Configuration = cdoConfig
'                        .To = SendTo(3, i)
                        .To = "bob.schneider@gopherstateevents.com"
'                        .BCC = "bob.schneider@gopherstateevents.com"
                        .From = "bob.schneider@gopherstateevents.com"
                        .Subject = "Line-up Confirmation: " & sMeetName
                               .AddAttachment  = "/cc_meet/coach/read_rate.pdf"
                               .AddAttachment = "/cc_meet/coach/change_order.pdf"
                        .TextBody = sMsg
                        .Send
                  End With
[/code

Any help would be much appreciated!
0
Comment
Question by:Bob Schneider
  • 5
  • 4
10 Comments
 
LVL 32

Assisted Solution

by:Big Monty
Big Monty earned 250 total points
ID: 41797946
AddAttachment is a method, not a property, so it should be used like:

.AddAttachment( "/cc_meet/coach/read_rate.pdf" )
.AddAttachment( "/cc_meet/coach/change_order.pdf" )
0
 

Author Comment

by:Bob Schneider
ID: 41797994
Thanks.  Made that change and now I get this:

Line: 174
Column: -1
Source:
Description: The specified protocol is unknown.
Err #:
Com Err #: -2146697203
Category: CDO.Message.1
0
 
LVL 32

Assisted Solution

by:Big Monty
Big Monty earned 250 total points
ID: 41798013
if you comment out the AddAttachment lines, does it work?
0
 
LVL 32

Accepted Solution

by:
Big Monty earned 250 total points
ID: 41798019
you may also want to try specifying the physical path:

AddAttachment( Server.MapPath( "/cc_meet/coach/read_rate.pdf" ) )
.AddAttachment( Server.MapPath( "/cc_meet/coach/change_order.pdf" ) )
0
 
LVL 52

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 250 total points
ID: 41799107
I concur, you have to use the full path with addAttatchment.

How is this SMS?  Did you mean email?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Bob Schneider
ID: 41799559
No I meant SMTP.  I'm sorry.  Thanks for the help!!!
0
 
LVL 32

Expert Comment

by:Big Monty
ID: 41799849
not that I care too much, but why was https://www.experts-exchange.com/questions/28969754/SMS-AddAttachment-Protocol-Error-Classic-ASP.html#a41799107 used as part of the answer? I don't see how saying "i agree" adds any value to people looking at this answer in the future...
0
 

Author Comment

by:Bob Schneider
ID: 41799902
I guess my protocol is to reward each person who contributes to the solution.  Has the scoring changed?  Usually when I include multiple responders they share the points based on the number of responses they contributed.  I was surprised that both individual responders received 250 point even though you were clearly more engaged in the post but I had already hit submit when I noticed that.
0
 
LVL 32

Expert Comment

by:Big Monty
ID: 41799925
again, not a big deal to me, as I'm not here for points. (well, not entirely true, as long as I get enough points every month to maintain a free membership, then I stop caring about points!)

You are entirely free to close out a question however you want, but I think awarding points to someone simply because they responded vaguely to your question may rub some experts the wrong way, plus it could confuse people in the future who come across this post and wonder why it was used as part of the answer.

i haven't closed out a question for myself in awhile, but the last time I did you could adjust how many points each person got. Not sure if they changed that or not.

bottom line, as long as you got the answer you needed, I'm good :)
0
 

Author Comment

by:Bob Schneider
ID: 41799980
Thanks for your patience.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now