How can an Excel file be attached to an email using mailto?

Hi Experts,

How can an Excel file be attached to an email using mailto?

Thanks
LVL 1
indyngAsked:
Who is Participating?
 
kevp75Commented:
if i'm reading the question right,
you are using <a href="mailto:some@email.com">Email Link</a>

in which case it is not possible to add an attachment using this method, other than suggesting to the user they browse for the file and attach it manually.  I Believe the most you can do is add a subject to the link (I say believe, because I would not try to add anything else to the link, befoire I used another method to send an email), and it would look like:<a href="mailto:some@email.com?Subject=Some Subject">Email Link</a>
0
 
peterxlaneCommented:
Set oCDO = Server.CreateObject("CDO.Message")
      With oCDO
            .To = "somebody@somewhere.com"
            .From = "somebodyelse@somewhere.com"
            .Subject = "your subject"
            .HTMLBody = "your email body"
            .AddAttachment "complete path to excel file to be attached"
            .Send
      End With
Set oCDO = Nothing
0
 
aianrnoensCommented:
the above answer is very good.  If you host your site yourself its ok.  If you host using an online hosting service check to make sure they have the CDO object and asp scripting available.

www.brinkster.com is a good one that has both
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.