muzle6074 Posted May 5, 2009 Share Posted May 5, 2009 Can I attach files to an email in au3? I looked at _INetMail and _INetSmtpMail but neither looked like they had the functionality. Link to comment Share on other sites More sharing options...
Juvigy Posted May 5, 2009 Share Posted May 5, 2009 Yes you can.You can use the outlook object model. $oOApp = ObjCreate("Outlook.Application") $oOMail = $oOApp.CreateItem($olMailItem) $oOMail.Save With $oOMail .To = ("123@12.com") .Subject = ""something" .Body = "Hi this is a test .attachments.add ("c:\file....") .Send Link to comment Share on other sites More sharing options...
muzle6074 Posted May 5, 2009 Author Share Posted May 5, 2009 Hi Juviqy, Do I need Outlook installed on the machine for this to work? Link to comment Share on other sites More sharing options...
Juvigy Posted May 5, 2009 Share Posted May 5, 2009 Yes. And not Outlook express... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now