abdulahhamzic Posted November 14, 2018 Share Posted November 14, 2018 Hey, everyone. I am pretty new to AutoIt. So far, I have been using the AutoIt docs, Google, and this forum, and it's been really helpful. This is my first question here, since I think this might be something that I won't be able to find the appropriate answer to anywhere on the Internet. Or at least that's how it seems. Basically, what I want to do is take some data from a Word document, not the whole document, but rather extract some specific data, and then, when sending an email, I want to include that data in the email body. I don't want it to be an attachment, but rather the data should be there in the email body as if I copied the data from the Word document and pasted it in the email body. Note: My code for the email part is based on the code I found here: Well, if anyone can help me with this, I would really appreciate it. Thank you. Link to comment Share on other sites More sharing options...
water Posted November 14, 2018 Share Posted November 14, 2018 To handle the Word part I suggest to have a look at the Word UDF that comes with AutoIt. The mail creation/sending part depends on the mail client you run to access your GMail account. Outlook, Web-client ...? abdulahhamzic 1 My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
abdulahhamzic Posted November 14, 2018 Author Share Posted November 14, 2018 Thank you for your answer. Is it possible to extract some data from a Word document along with all of its formatting using the Word UDF though? Also, check the post I have linked in my original post. That's what I am using for the email part. So, it's Gmail, but I'm not actually running a client on the desktop. I'm just using the code that you can see under the post I've linked, and it sends the email in the background without running a mail client, if that makes sense. Link to comment Share on other sites More sharing options...
water Posted November 14, 2018 Share Posted November 14, 2018 56 minutes ago, abdulahhamzic said: Is it possible to extract some data from a Word document along with all of its formatting using the Word UDF though? Yes. But I have never tried to convert parts of a document to HTML (which is the only format the mail function supports to keep all the formatting). My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki 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