Link to home
Start Free TrialLog in
Avatar of indyng
indyng

asked on

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
Avatar of peterxlane
peterxlane

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
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
ASKER CERTIFIED SOLUTION
Avatar of kevp75
kevp75
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial