QAuser 0 Posted October 21, 2010 Hey can anybody help to do an attachment as text in a mail. I know how to do a normal attachment but i want to attach some file in my mail an insert this attachment as text to the mail. I tried so many stuff and searched also in internet without success. so i hope anybody can help me here. Thanks Share this post Link to post Share on other sites
QAuser 0 Posted October 21, 2010 Heycan anybody help me how to do an attachment as text in a mail. I know how to do a normal attachment but i want to attach some file in my mail an insert this attachment as text to the mail.I tried so many stuff and searched also in internet without success. so i hope anybody can help me here.Thanks I forgot to tell that i need the autoit script of this procedure not the procedure itself Share this post Link to post Share on other sites
saywell 3 Posted October 21, 2010 Heycan anybody help me how to do an attachment as text in a mail. I know how to do a normal attachment but i want to attach some file in my mail an insert this attachment as text to the mail.I tried so many stuff and searched also in internet without success. so i hope anybody can help me here.Thanks I forgot to tell that i need the autoit script of this procedure not the procedure itselfWhat is your code for doing it with a 'normal attachment' ?You'll find you'll get more help here if you specify what you've already done, preferably with the code you've tried so far.William Share this post Link to post Share on other sites
QAuser 0 Posted October 21, 2010 What is your code for doing it with a 'normal attachment' ?You'll find you'll get more help here if you specify what you've already done, preferably with the code you've tried so far.WilliamHere is a part of my code with normal attachment:With $oOMail .To = $olTo .Subject =$testcase $attachemnt = @ScriptDir & "\data.rtf" .attachments.add ($attachemnt) .Body=_ClipBoard_GetData(49331)Endwithhas u can see i save some data in the clipboard and put it in the mail body. But i want to put the data.rtf attachment as a text attachment in my mail and that is my problem. thanks Share this post Link to post Share on other sites
saywell 3 Posted October 21, 2010 Now there's me thinking this is an AutoIT forum! If you want to use AutoIT, then as a starting point you might seek the Outlook UDF via the search box on this page. William Share this post Link to post Share on other sites