Nevermind. I figured it out. I went to the NI site and found a library
in the Search Example Code page. The libary is called "RT email.llb".
Here was the description: "This example sends emails out from a networked
LabVIEW RT controller. Use this VI to send email to a single email
address."
I am running Linux, so the 'Get Network Info.vi' in the libary was broken
because it uses a CIN. I didn't notice a .lsb or any .c files anywhere so
maybe it's broken on windows too. Any comments?
I looked at the 'RT email.vi' and it gave me some ideas. It needed some
modification but I got it to work, at least on my local SMTP server.
Should I document this VI on NI website or something? Mine doesn't
require a CIN, just straight G so it's easy to implement. I think I'll
beat up on it for a while to verify robustness.
Time to go eat.
- kevin
In article , "kevin"
wrote:
> Hi all,
>
> I know NI sells an Internet Developers Toolkit but I don't want to spend
> the $500. Not yet at least. I want to send myself an email when a
> test has failed or finished.
>
> I can do it manually with a telnet session (see below) but how can I use
> LV to automate this task? I'm thinking there must be an easy way bring
> new text into the telnet console once it's started with the System
> Exec.vi. Any ideas?
>
> The only commands I have to send to the SMTP server are these:
>
> HELO localhost
> MAIL FROM: kevin@localhost.net
> RCPT TO: kevin@remotehost.net
> DATA
>
> Each command must be followed by a carriage return.
>
>
> For an example, here's a simple telnet session with my local SMTP
> server:
>
> --- starts here ----
>
> kevin@toffler:~$ telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 toffler.valentine.net ESMTP Sendmail 8.11.4/8.11.4; Sun, 15 Sep 2002
> 10:11:38 -0400
>
> HELO localhost
>
> 250 toffler.valentine.net Hello kevin@localhost [127.0.0.1], pleased to
> meet you
>
> MAIL FROM: kevin@localhost.net
>
> 250 2.1.0 kevin@localhost.net... Sender ok
>
> RCPT TO: kevin
>
> 250 2.1.5 kevin... Recipient ok
>
> DATA
>
> 354 Enter mail, end with "." on a line by itself
>
> just an email test ...
> .
>
> 250 2.0.0 g8FED8612793 Message accepted for delivery
>
> New mail for kevin@toffler has arrived: ---- From: kevin@localhost.net
> just an email test ...
>
> ----
> QUIT
>
> 221 2.0.0 toffler.valentine.net closing connection Connection closed by
> foreign host.
> You have mail in /var/spool/mail/kevin kevin@toffler:~
>
> --- stops here ---
>
>
> Any help is greatly appreciated,
> kevin