Re: [foxboro] Sending email from a windows AW

  • From: "David R. Johnson" <drjohn@xxxxxxxxxx>
  • To: <foxboro@xxxxxxxxxxxxx>
  • Date: Wed, 10 Nov 2010 05:58:08 -0600

Thanks Andreas.  I will try that.

Regards,
David


-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On
Behalf Of andreas.weiss@xxxxxxxxx
Sent: Wednesday, November 10, 2010 2:22 AM
To: foxboro@xxxxxxxxxxxxx
Subject: Re: [foxboro] Sending email from a windows AW

>  I've sent mail from Sun boxes in the past, which is easy with command
line tools.
Hi David,

wouldn't it be good to use the scripts on an AW70?

lesson "How to send emails on a AW70?"

 smtpmail -Di -f %USERNAME%@%computername% -h myMailServerName -m
 C:\boot.ini -s " %date% %time%" recipient@xxxxxxxxxxxx
 cat C:\boot.ini | smtpmail -Di -h myMailServerName recipient@xxxxxxxxxxxx



 D:\nutc\mksnt>mailx recipient@xxxxxxxxxxxx
 Subject: foospecial
 info
 ~.
 EOT
 D:\nutc\mksnt>
echo "my email body with information" | mailx -s "my subject"
recipient@xxxxxxxxxxxx


What do you have to do?

I had to find a workaround for the $MKS_VER toolkit version 8.7 because
this version doesn't supports the variable $MAILHOST.

1)

 # vi D:/nutc/etc/mailx.rc
 set sendmail=D:/nutc/mksnt/smtp-mail.cmd
 #
2) create an environment system variable with the name MAILHOST and the
value "mySMTPServer" or put this information into the batch file
smtp-mail.cmd

3)

 # vi D:\nutc\mksnt\smtp-mail.cmd
 smtpmail.exe -h %MAILHOST% %1 %2 %3 %4 %5 %6 %7 %8 %9
 #
or

 # vi D:\nutc\mksnt\smtp-mail.cmd
 smtpmail.exe -h name_of_your_mailserver %1 %2 %3 %4 %5 %6 %7 %8 %9
 #

4) run mailx

Regards,
Andreas



 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             //www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             //www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: