Unsolved

This post is more than 5 years old

3138

April 12th, 2010 07:00

SMTPMAIL.EXE hangs, notifications no longer working

If I copy and paste the smtpmail command line from the notifications to a command prompt:

smtpmail -s "This is a test" -h "smtp.site.com" -f Legato XXX.XXX@site.com  it just hangs.

Notifications worked until 8AM Saturday morning.  They no longer work now.  I have made no changes to the server.

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?

736 Posts

April 14th, 2010 05:00

You could try this with using the '-F' option like 'smtpmail -s "This is a test" -h "smtp.site.com" -f adddress@site.com -F "Legato"

-Bobby

30 Posts

May 11th, 2010 14:00

Hi,

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.

type "info.txt" | "C:\Program Files\Legato\nsr\bin\smtpmail.exe" -s " " -h [ -p 25] -f " " " "

(e.g:  type info.txt | "C:\Program Files\Legato\nsr\bin\smtpmail.exe" -s "Test" -h 172.16.0.254 -p 25 -f "server@my.domain" "my.email.address@my.domain")

-Cheers

87 Posts

May 11th, 2010 15:00

Good afternoon,

you place a file at the end of the sentence so that the command does not hang

For example.
Create a file "test.txt" in the root of drive c:\ or any folder, on the command line will move on to that place and execute the sentence.


smptmail -s "subject" -h emailserver -f myemail@domain.com myemail@domain.com  < test.txt

Regards,

Message was edited by: elvinperez

No Events found!

Top