You need to pipe a text file into SMTPMAIL.EXE for it to work properly. You could echo an environment variable and pipe (echo %var% | smtpmail.exe) it in as well if you only had one or two lines to send and you weren't worried about 's and 's. The quotes around the host name are not needed but you should have quotes around your From and your To email addresses. Your From email address doesn't have to be a real address and the port defaults to 25 if you omit the -p switch. I'm not aware of an uppercase (-F) switch in Legato's SMTPMAIL.EXE implimentation in Windows. It is not the same as the unix one.
jlmalatesta
6 Posts
756
0
Posted April 12th, 2010 08:00
Hmm seems if I replace the -f Legato
with
-f NoReply@XXX.com
it works
i wonder if our exchange admins were messing around with settings this weekend.
Any way to set an alias so the the name Legato will show as the from in the email messages, but it still will use the NoReply@XXX.com address?