Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 09:54 AM
cain
Guest
 
Posts: n/a
Default Attach error

Hi,

I'm new to ASP so bare with me here.

I just coded a page and I'm getting an error on line 3, which is the
attach line. According to the references I have, this is the correct
way to do it. Am I missing something? Let me know what you think.
Any suggestions would be greatly appreciated.

Here's the code:

<%
set ObjMail = CreateObject("CDONTS.NewMail")
objMail.AttachFile "c:\test.txt"
objMail.Send "jondoe@somewhere.nett", "janedoe@somewhere.net", "Test
Message 021203c", "Test with attachment"
Set ObjMail = Nothing
%>
<html>
<title>Mail Send Page/</title>
<body>
This page will send mail to an email address
</body>
</html>


TIA
Mike

  #2  
Old July 19th, 2005, 09:55 AM
Jeff Cochran
Guest
 
Posts: n/a
Default Re: Attach error

On Tue, 02 Dec 2003 23:43:18 -0800, cain <cain410@yahoo.com> wrote:
[color=blue]
>I'm new to ASP so bare with me here.[/color]

Okay, my shirt's off...
[color=blue]
>I just coded a page and I'm getting an error on line 3, which is the
>attach line. According to the references I have, this is the correct
>way to do it. Am I missing something? Let me know what you think.
>Any suggestions would be greatly appreciated.[/color]

First suggestion - Post the error. :)

Jeff
[color=blue]
>
>Here's the code:
>
><%
>set ObjMail = CreateObject("CDONTS.NewMail")
>objMail.AttachFile "c:\test.txt"
>objMail.Send "jondoe@somewhere.nett", "janedoe@somewhere.net", "Test
>Message 021203c", "Test with attachment"
>Set ObjMail = Nothing
>%>
><html>
><title>Mail Send Page/</title>
><body>
>This page will send mail to an email address
></body>
></html>
>
>
>TIA
>Mike[/color]

  #3  
Old July 19th, 2005, 09:58 AM
cain
Guest
 
Posts: n/a
Default Re: Attach error

I guess that would make sense huh? What was I thinking? I'll gather
the error up again and repost. Sorry about that.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles