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

Ask a Question related to ASP Components, Design and Development.

  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 documentation 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. Similar Questions and Discussions

    1. send VAR embeded in email to be read by embeded Flash
      hey, got an small flash application that will send all my vars from flash(8) to an ASP script for both inserting into a database and also,...
    2. How do I use CDONTS.new to send an email with attachment?
      Can someone give me some sample code to use CDONTS.new to send email with an attachment? I've got sample code from the following website; ...
    3. Creating HTML eMail with CDONTS
      Hi Gang I can create an email with ASP's using CDONTS and this works well. I'd like to format the email as HTML. Can I do this with ASP's and...
    4. Where i can find a Cdonts email component
      Hi Where i can find a Cdonts email component or another email componet thanks in advance
    5. Email form and CDONTS
      I just found out that my server doesn't have ASPMail installed but does have CDONTS...how can i make a simple form on my website to email information...
  3. #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-Tek@discussions.microsoft.com> wrote in message
    news:FCFBAF28-EBFD-4B6C-87DC-E1286B3AD9EE@microsoft.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
    documentation 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

  4. #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

Posting Permissions

  • You may not post new threads
  • You may 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