MattX Posted May 25, 2011 Posted May 25, 2011 Can someone please explain why the contents on the file.dat [ text ] is not being dumped into the mail body ? The only thing I'm getting in the mail body is: C:\Documents and Settings\user\My Documents\file.dat When I am looking for the contents.... [ What have I missed ? ] #include <Inet.au3> #include <Clipboard.au3> $s_MailTo = 'matt@address.com' $s_MailSubject = 'DAT File from ' & @UserName $ClipBoardFile = @MyDocumentsDir & '\file.dat' ClipPut(FileRead($ClipBoardFile)) $s_MailBody = $ClipBoardFile _INetMail ( $s_MailTo, $s_MailSubject, $s_MailBody )
hannes08 Posted May 25, 2011 Posted May 25, 2011 (edited) Hi MattX, why arte you using ClipPut at all? The line: $s_MailBody = $ClipBoardFile Is the reason why you're getting the path and not the contents. Try $s_MailBody = FileRead($ClipBoardFile) Edited May 25, 2011 by Hannes123 Regards,Hannes[spoiler]If you can't convince them, confuse them![/spoiler]
MattX Posted May 25, 2011 Author Posted May 25, 2011 Hi MattX,why arte you using ClipPut at all? The line: $s_MailBody = $ClipBoardFileIs the reason why you're getting the path and not the contents.Try$s_MailBody = FileRead($ClipBoardFile) Thanks - me being stupid.....
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