LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Mail with ActiveX and Outlook2K

I need to be able to send a message from LabVIEW using Outlook2K. I've found the ActiveX, Outlook vi's on the dev zone and the "Create Outlook Mail Message.vi" almost works.

The VI creates the message correctly, but it doesn't actually send the message, it just places it in the 'Outbox' and it just sits there. The only way to actually send it is to go to the Outbox, double click the message to open it, and hit the send button.

This is being used as an alert message so it needs to be sent automatically with no user intervention. We do not have STMP mail access here so that's not an option.

Is there something I'm missing in the ActiveX setup, or is this just yet another Outlook problem. I can't find an option to set in Out
look to send right away, or not use the outbox.

Any thoughts?

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 1 of 3
(2,977 Views)
Never mind, I figured it out myself.

The problem was the DeferredDeliveryTime attribute of the _MailItem property. I was setting this the current time and date thinking that would make it send immediately.

It doesn't seem to work that way. I fixed it by making that attribute read instead of write, and the message is sent right away.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 2 of 3
(2,977 Views)
And I further fixed it removing that attribute completely. For some reason I thought I was dealing with an Invoke Node instead of a property node.


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 3 of 3
(2,977 Views)