LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to write a simple program which sends an email

Solved!
Go to solution

I want to write a simple program which sends an email when certain parameters are fulfilled but when I am using the NI send email vi it is giving me an error while filling the configure window. I had put all the information and tried sending a test mail. I have attached a screen shot of the error.

0 Kudos
Message 1 of 5
(1,136 Views)
Solution
Accepted by topic author Aliza24102002

Usually problems like this rely on the IT Network setup especially the name of the Outgoing Mail Server and the port. I would check with the IT department for the settings.




Joe.
"NOTHING IS EVER EASY"
Message 2 of 5
(1,107 Views)
Solution
Accepted by topic author Aliza24102002

Hi

 

You need an SMTP server, not just Outlook. So as said talk to your IT department.

 

AndersSekanina_0-1701937027734.png

 

You could consider to use Outlook command line interface to open an email with the content you want, then the user can press send.

 

<OUTLOOK_EXE_PATH> /c ipm.note /m "<ADRESS>?subject=<SUBJECT>&body=<BODY>"  /a "<ATTACHMENT>"

 

NB you can only attach one file.

 

To get <OUTLOOK_EXE_PATH>

AndersSekanina_1-1701937301328.png

 

Alternative you can use gmail:

https://www.vipm.io/package/illuminatedg_lib_ig_gmail_api/

 

 

 

Anders Pedersen Sekanina
sekanina.dk




0 Kudos
Message 3 of 5
(1,065 Views)
Solution
Accepted by topic author Aliza24102002

Also TCP port 25 is frequently blocked by Internet Service Providers (ISPs), as an anti-spam technique since it's used in MX spamming and abuse of open proxy/relay machines.

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 5
(1,044 Views)

Thank you

 

0 Kudos
Message 5 of 5
(1,017 Views)