01-16-2014 06:49 AM
Hello everyone,
i am working on the SMTP Email Send Message using labview . i have connected the terminals as suggested in the Context Help and i can run the VI but a keep getting a lot of errors.
Needless to say i cant send the mail .
i have enclosed the vi , shall be grateful if somone can suggest any modifications so that the VI works.
I have also seen the GMAIL.vi but dont want to use as it seems complicated.
Thanks in advance
01-16-2014 08:11 AM
Hi Sindhurakshak,
I have checked the code and it's working fine for me. I think the problem is with your SMTP server. Please check SMTP server name adn try it it should work.
For shake of testing I have changed the SMTP server name and it works fantastic.
Thanks
01-16-2014 09:00 AM
hello Pankajusic,
Thanks for reviewing the code.
i was under the notion that the SMTP Server remains the same for a given company . For example, for google it is smtp.gmail.com and the like.
Request you to post your vi with the modifications you have made.
Further , how i can i find my SMTP server name ?
I am using LabVIEW 2011.
Regards
Jalashwa
01-16-2014 09:03 AM
Are you sure Gmail's server will take SMTP mail? I don't think it does because it would be and easy gateway for spam.
You need your company's e-mail server, and them set up to allow you to give it smtp mail based on that fact they should have already authenticated your PC on their domain.
01-16-2014 09:44 AM
Hello Ravens Fan,
i delved more into SMTP in Google and found out the following steps:
nslookup
and hit enterset type=MX
and hit enterI am attaching a pic of my cmd after executing the steps. I updated the mail server in the SMTP Email Send Message block diagram and i got an error. i have also attached the pic for that
It would be very kind of you if you could guide me through
Regards
Jalashwa
01-16-2014 09:54 AM
@RavensFan wrote:
Are you sure Gmail's server will take SMTP mail? I don't think it does because it would be and easy gateway for spam.
You need your company's e-mail server, and them set up to allow you to give it smtp mail based on that fact they should have already authenticated your PC on their domain.
A little off track with regard to solving the specific problem, but to answer RavensFan's point:
Yes, Gmail does allow you to use SMTP. This is how you use other email clients (Outlook, Thunderbird etc) to send/receive things from your gmail account.
(a quick Google confirms this).
01-16-2014
11:03 AM
- last edited on
06-20-2025
12:37 PM
by
Content Cleaner
Hi,
I have chnaged smtp name as per our company mail server and it's worked fine. that is the only chnge i did there.
I found something on internet that might help you.
https://forums.ni.com/t5/Example-Code/GMAIL-vi/ta-p/3996207
Thanks
pankaj
01-16-2014
11:13 AM
- last edited on
06-20-2025
12:37 PM
by
Content Cleaner
In order to use Google's SMTP server function, you must authenticate using TLS/SSL.
The LabVIEW SMTP functions are natively written in LabVIEW and have no support for TLS/SSL.
01-16-2014 11:18 AM
thanks for the info ,
i have tried others like yahoo and rediff.com but i just cant get over the errors i am getting
Regards
01-16-2014
11:30 AM
- last edited on
06-20-2025
12:39 PM
by
Content Cleaner
@PhillipBrooks wrote:
In order to use Google's SMTP server function, you must authenticate using TLS/SSL.
The LabVIEW SMTP functions are natively written in LabVIEW and have no support for TLS/SSL.
That document is out of date. LabVIEW 2013 has had email VIs revamed tp support TLS. I've not used these but remember it from the release notes.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord