LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automating MS Outlook

Solved!
Go to solution

Hello everyone,

 

I want to automate MS Outlook using ActiveX. My requirement is to fill the address line of a new mail through LabVIEW.

 

Thanks in advance

cooldude 

0 Kudos
Message 1 of 14
(5,336 Views)

Use Google to find examples on how to use the Outlook Automation Objects. Then, you can replicate the code in LabVIEW.

 

Why do you need to go through and automate Outlook? Why can't you just send the email from LabVIEW? 

Message 2 of 14
(5,329 Views)
You should also try searching the NI site. It's not difficult. Just type a few words in the search text box and hit enter. Try it.
Message 3 of 14
(5,307 Views)

Searching the NI database is a waste as the vi's and files are all out of date, 2006 or older.  That was a very un-helpful, generic, answer to a very specific question that I to am now faced with.

 

So again, what active-X or tool allows LabVIEW 8.2 to interact with Outlook 2007 to send e-mails?

 

I need to go through Outlook as IT has closed down access to GMail.  Outlook is the only option available.

Message Edited by Drewski on 02-16-2010 07:17 PM
0 Kudos
Message 4 of 14
(5,221 Views)
Maybe the links are older, but the concept of how to do it shouldn't have changed much.  You may need to relink any VI's you download to the newer ActiveX objects.  But you would probably have needed to do that in 2006 also.
0 Kudos
Message 5 of 14
(5,217 Views)

Okay, I downloaded the September 2006 example and it worked for sending an e-mail after I deleted the defered time option, and set the email address.

 

How is the "Outlook._Application" control on the front panel of the "Create Outlook Mail Message.vi" created?

 

What are the steps required for a person to create it again from scratch?

0 Kudos
Message 6 of 14
(5,206 Views)

Drewski wrote:

Searching the NI database is a waste as the vi's and files are all out of date, 2006 or older.  That was a very un-helpful, generic, answer to a very specific question that I to am now faced with.

 

So again, what active-X or tool allows LabVIEW 8.2 to interact with Outlook 2007 to send e-mails?

 

I need to go through Outlook as IT has closed down access to GMail.  Outlook is the only option available.

Message Edited by Drewski on 02-16-2010 07:17 PM

The links are as current as your version of LabVIEW so I don't understand the whining or the attitude. I will also ask the question as to why you don't use the built-in email functions? ActiveX and Outlook is so much slower.

0 Kudos
Message 7 of 14
(5,205 Views)

Obviously I was under the impression that a seperate piece of software was required to use ActiveX to control Outlook.  Now that I've been schooled, I see that is not the case.  It turns out the ActiveX thing is already installed AND that LabVIEW already has access to the already installed ActiveX thing.

 

The reason I need to use the slow ActiveX and Outlook combination is that IT has shut down access to internet mail servers, gmail, yahoo mail, hot mail, my local ISP webmail and also, IT does not provide an simple SMTP server. 

0 Kudos
Message 8 of 14
(5,198 Views)
Well, they have to provide something. After all, how do you think Outlook sends its email? Outlook is just a client; it has no SMTP server - it must communicate with one. Do you have an Exchange Server? Do you know if you connect to it using IMAP or SMTP?
Message 9 of 14
(5,183 Views)

Yes, it is an Exchange Server.  If it's a choice between only IMAP and SMTP, I would say it was IMAP as I know SMTP doesn't work.

 

Everything (LabVIEW -> ActiveX -> Outlook -> sending emails) is working as of now, so I will no longer be monitoring this thread.

 

Thanks for all o' your helpses, good luck!

0 Kudos
Message 10 of 14
(5,177 Views)