LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending SMTP email with server that requires authentication

Hi,

 

I've attached an example of smtp with authentication and attachments.

 

HTH

 

Best Regards,

 

--

Joachim

Message 11 of 18
(4,262 Views)

Hi Joachim,

I haven't LV2011. I have 2010. Can you convert the vi? Thanks

0 Kudos
Message 12 of 18
(4,259 Views)

@Joachim082 wrote:

Hi,

 

I've attached an example of smtp with authentication and attachments.

 

HTH

 

Best Regards,

 

--

Joachim


How is this example different than the one posted at the link provided? Other than the fact you put in a case structure around it and straightened up some wires.

0 Kudos
Message 13 of 18
(4,250 Views)

@GT123 wrote:

Hi Joachim,

I haven't LV2011. I have 2010. Can you convert the vi? Thanks


Don't bother, it's the same as the previous example.

 

As for your 1172 issue: you need to check to see if your emails are being blocked by your firewall. This is a common problem. If you are doing this in a corporate network, check with your IT department.

0 Kudos
Message 14 of 18
(4,249 Views)

Hello,

I`m still have the error 1172 with this email vi "gmailLV86.vi", but I can say

- i have the correct mailserver address and port and account with password, and no ssl

- we have an backupserver who send emails at this exchange server with the tested values(adress...)

- the email account works, because: i can send an email with a LV and activeX (Outlook), but then I have to click yes because of a outlook  

   warning (in enlgish like this):  "An application wants to send an autommated emails in behave of..."

- if I send an email with the smtp email send message.vi -> error:

TCP Open Connection in NI_SMTPEmail.lvlib:SMTP Email Open Session.vi:3->NI_SMTPEmail.lvlib:SMTP Email Send Message Charset.vi:2->NI_SMTPEmail.lvlib:SMTP Email Send Message.vi:1->email_smtp.vi

What is the reason? I think it has to be possible to do this with labview. Thanks.

0 Kudos
Message 15 of 18
(4,231 Views)

Hi,

try this : http://forums.ni.com/t5/LabVIEW/ogic-smtp-library-example/td-p/454028/highlight/true

 

use the OGIC_SMTP_LIB  to send mail.

regards,

eyal.

0 Kudos
Message 16 of 18
(4,226 Views)

Just to add to this thread, I have also made a modified version of the original SMTP VIs that has simple authenticatation (No TLS/SSL though). However, it does have the advantage that it works without .NET (on any OS or on LabVIEW RT).

 

Eric

Message 17 of 18
(4,125 Views)

Hello BlueCheese, can I have this in LV2010. Thank you very much

0 Kudos
Message 18 of 18
(4,116 Views)