LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Having Problems using "SMTP Email Send Message VI"

I am using the "SMTP Email Send Message VI" to send email messages whenever there is an alarm on the system.

 

I started using the example program.

 

I am able to send a "test message" sucessfully, but when I try to send a string constant that describes the alarm condition on the system, the email is never received.

For example, if I send "FP1 Burner" as the message string I receive the email, but if I send " FP1 Burner Disabled", the email is never received.

 

Is there a limit on number of characters that you can send in the message using this VI? Does the message string have to be in a particular format only?

 

The VI error out indicator does not show that there is any error.

 

Please help me use this VI correctly.

 

Thanks,

Archana

0 Kudos
Message 1 of 17
(6,454 Views)

Hi Archana,

 

This seems to work fine for me:

 

18193iEEC403C9D5AD14F6

 

Could you post the VI or a screenshot for us to look at?

 

Charlie

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 2 of 17
(6,436 Views)

 

Here is a snapshot of the VI that I am using to send an email.

 

I never receive the email.

 

Please let me know what needs to be changed so that the email will work.

 

Thanks,

Archana

 

18241i73453DF0C8FFB7DF

0 Kudos
Message 3 of 17
(6,421 Views)

 

  1. Do you have a corporate spam filter active? The filter could be throwing your email away as a "spoofed" email. Check your spam folder and reply back. (You can also test this by sending to a personal email account that you know does not have 
  2. Does "error out" return an error? (I'm guessing 'no', since you would have included that info in your post. Doesn't hurt asking.)

 

0 Kudos
Message 4 of 17
(6,414 Views)

I checked with the Network Administrator and he said that there is no Spam filter for our emails. I am sending these messages to two addresses one is my company email address and the other is my personal gmail account address. When it works, I receive emails on both my accounts, if it does not work I do not receive it on any of the accounts.

 

The problem is, it works for some text messages and it does not work for some, and I am not able to figure out the reason for this.

 

The 'error out" does not return any error.

0 Kudos
Message 5 of 17
(6,390 Views)

This problem is very strange.  It should not matter what text you send.  But since no one has a clue, I would take a message that doesn't work, eliminate one character at a time and send the message to see if it is one particular character that is causing the problem.  Perhaps the underscore (or space or whatever it is between the time and date) is the culprit.  I would at least start with non-alpha characters.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 17
(6,379 Views)

The built-in SMTP VIs will not work with GMail, regardless of what you try to send. This has come up many times in this forum. GMail requires authentication, and the SMTP VIs do not handle authentication. If your internal server also requires authentication, then you cannot use the LabVIEW SMTP VIs. If you are on Windows you can use .NET.

0 Kudos
Message 7 of 17
(6,369 Views)

@smercurio_fc wrote:

The built-in SMTP VIs will not work with GMail, regardless of what you try to send. This has come up many times in this forum. GMail requires authentication, and the SMTP VIs do not handle authentication. If your internal server also requires authentication, then you cannot use the LabVIEW SMTP VIs. If you are on Windows you can use .NET.


But the op claims that it does work for some text.  So it can't be an authentication problem.  Still strange that text makes a difference since it should not.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 8 of 17
(6,364 Views)

It works with gmail. I have tried using that.

 

As I had mentioned eariler it wirks with some text mesaasages and it does not work with some. So, I don't think "authentication" is the problem.

0 Kudos
Message 9 of 17
(6,363 Views)

Does the problem have anything to do with how often you send the emails? If some emails are getting through and some are not, I suspect a problem with the email server and not your code. The body of the email should not matter, unless like I said before, there's some spam filter active.

 

Can you test another sender email account on a different host?  So, you can send outbound email via your GMail account?

0 Kudos
Message 10 of 17
(6,357 Views)