Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2009
    Posts
    1

    Unanswered: Send Email by Asp coading

    Hello friend i design and develop a asp page of sent mail. it's working properly but i want to attach a file with this mail how i will attach a file (.doc) with this mail as we get this facilities in yahoo google by attach a document file

    Thanks
    Last edited by gvee; 03-06-09 at 05:01. Reason: spammy links removed

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    what method are you currently using to send mail?

    P.S. please don't put spammy links in your post / signature
    George
    Home | Blog

  3. #3
    Join Date
    Jun 2003
    Location
    USA
    Posts
    1,032
    Generally if you're using CDO you can use AddAttachment but the file has to already exist on the server.

    Examples of objCDO.AddAttachment:
    objCDO.AddAttachment Server.MapPath("reffiles") & "\myfile.gif"
    objCDO.AddAttachment "c:\myfolder\myfile.gif"

    But some limited testing showed this to work too:
    objCDO.AddAttachment "http://www.thesite.com/myfile.gif"
    objCDO.AddAttachment "http://www.someothersite.com/myfile.gif"
    J. Paul Schmidt, Freelance Web and Database Developer
    www.Bullschmidt.com
    Access Database Sample, Web Database Sample, ASP Design Tips

  4. #4
    Join Date
    Mar 2009
    Posts
    1

Posting Permissions

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