Professional Web Applications Themes

ASP Email - CDONTS - AttachFile - Getting it embeded in the email - ASP Components

I am unable to get my file attachment in the email => Here is what my code looks like - which is very simple from the doentation that I have read. Set myMail = Server.CreateObject("CDONTS.NewMail") .... ... Populated the variables from ... from ... subject myMail.AttachFile("D:\test1.txt") myMail.Send Set myMail = Nothing => Instead it displays something like this at the bottom of the email: Note: test1.txt was the file i was trying to attach Is there something more to the Code of IIS/SMTP configuration that is not right. Any ideas/clues would be much appreciated CC...

  1. #1

    Default ASP Email - CDONTS - AttachFile - Getting it embeded in the email

    I am unable to get my file attachment in the email

    => Here is what my code looks like - which is very simple from the doentation that I have read.


    Set myMail = Server.CreateObject("CDONTS.NewMail")
    .... ... Populated the variables from ... from ... subject
    myMail.AttachFile("D:\test1.txt")
    myMail.Send
    Set myMail = Nothing


    => Instead it displays something like this at the bottom of the email:



    Note: test1.txt was the file i was trying to attach

    Is there something more to the Code of IIS/SMTP configuration that is not right. Any ideas/clues would be much appreciated

    CC
    Web-Tek Guest

  2. #2

    Default Re: ASP Email - CDONTS - AttachFile - Getting it embeded in the email

    Remove the bracket, just type myMail.AttachFile "D:\test1.txt"

    "Web-Tek" <Web-Tekdiscussions.microsoft.com> wrote in message
    news:FCFBAF28-EBFD-4B6C-87DC-E1286B3AD9EEmicrosoft.com...
    > I am unable to get my file attachment in the email
    >
    > => Here is what my code looks like - which is very simple from the
    doentation that I have read.
    >
    >
    > Set myMail = Server.CreateObject("CDONTS.NewMail")
    > ... ... Populated the variables from ... from ... subject
    > myMail.AttachFile("D:\test1.txt")
    > myMail.Send
    > Set myMail = Nothing
    >
    >
    > => Instead it displays something like this at the bottom of the email:
    >
    >

    ----------------------------------------------------------------------------
    ----

    >
    > Note: test1.txt was the file i was trying to attach
    >
    > Is there something more to the Code of IIS/SMTP configuration that is not
    right. Any ideas/clues would be much appreciated
    >
    > CC

    IPT Guest

  3. #3

    Default Re: ASP Email - CDONTS - AttachFile - Getting it embeded in the email

    Or you might try switching from CDONTS (which is being phased out) to
    the newer CDO such as can be seen in the E-mail Attachment example at
    [url]http://www.asp101.com/samples[/url]

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Consultant
    [url]http://www.Bullschmidt.com[/url]
    ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


    *** Sent via Devdex [url]http://www.devdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Bullschmidt Guest

Similar Threads

  1. send VAR embeded in email to be read by embeded Flash
    By russ in forum Macromedia Flash Data Integration
    Replies: 0
    Last Post: August 16th, 09:40 PM
  2. Replies: 1
    Last Post: October 17th, 09:08 PM
  3. Creating HTML eMail with CDONTS
    By Andy in forum ASP
    Replies: 2
    Last Post: September 16th, 08:40 PM
  4. Where i can find a Cdonts email component
    By ivan divandelen in forum ASP
    Replies: 0
    Last Post: September 2nd, 07:59 AM
  5. Email form and CDONTS
    By stanandsnow webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 2
    Last Post: July 9th, 02:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139