Solved

SMS AddAttachment Protocol Error Classic ASP

Posted on 2016-09-14
10
46 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 33

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 33

Assisted Solution

by:Big Monty
Big Monty earned 250 total points
ID: 41798013
if you comment out the AddAttachment lines, does it work?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 33

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 53

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
 

Author Comment

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

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 33

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

751 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