Help using simple command line to send an email

Asus mobo / M5a97 r2.0
January 15, 2014 at 03:09:57
Specs: Windows 7 64 bit, AMD FX 6300 \ GSKILL 1600 DDR3
I'm very unfamiliar with syntax for command lines - so unfamiliar I'm not even sure I've posted in the right place.

I'm trying to send myself an email notification when I receive an error message from AllWay Sync backup software. It's listed under the program's Custom Actions, and asks me to enter the command line. It provides an example for sending an email.

Type the following command line in "On error" field:
sendmail -subj:synchronization_error_in_%js% -to:admin@server.com -body:%errs%

where %js% is job number and %errs% is error message

I downloaded and extracted their suggested mail client called "Mailit". Included was MAILIT.exe and MAILTEST.BAT on my D drive

So I'm thinking mine would look something like this:

D:\PATH\MAILIT.exe -subj:synchronization_error_in_%New Job 1% -to:whatevermyname@gmail.com -body:%my error message%

So I'm not sure of the following:
Am I even close? lol
Do I use the MAILIT.exe or MAILIT.BAT after I type my path?
Do I include the per cent signs, or is that just denoting where I place my job title and error message?
Does the job title have to match the programs job title or can I just call it whatever I want?
Similarly, does the error message have to match their error message or can I name it what I want?

Pretty noob questions, but I just don't know
Thanks


See More: Help using simple command line to send an email

Report •


#1
January 15, 2014 at 06:44:10
Perhaps something along these lines?

http://www.winsentmessenger.com/net...

To err is human but to really screw things up, you need a computer!


Report •

#2
January 15, 2014 at 07:23:53
Am I even close? lol
Depends on the scale.

Do I use the MAILIT.exe or MAILIT.BAT after I type my path?
As you don't mention a "MAILIT.BAT", I'd go with the MALIT.EXE.

Do I include the per cent signs, or is that just denoting where I place my job title and error message?
Per the documentation you've posted, the "%js%" and "%errs%" is automatically replaced by the job number and error message, respectively.

Does the job title have to match the programs job title or can I just call it whatever I want?
Not sure what you're asking.

Similarly, does the error message have to match their error message or can I name it what I want?
It's your email. You could put in the lyrics to popular rap songs, if you wanted.

EDIT: After all these years, I still mess up the HTML tags.

How To Ask Questions The Smart Way

message edited by Razor2.3


Report •

#3
January 17, 2014 at 13:54:36
> Does the job title have to match the programs job title or can I just call it
> whatever I want?
> Similarly, does the error message have to match their error message or
> can I name it what I want?

Generally spoken, there's often very little checks performed, which in english would mean you could put in anything you want. Weird characters are more often an issue, but then again, what is weird ?

To a computer, these are weird (or, possibly leading to errors) :

"
'
(
)
$
#
!

Hi there.

message edited by User123456789


Report •

Related Solutions

#4
January 28, 2014 at 21:48:58
I gave "%js%" and "%errs%" in mailit.bat file and calling it from the allwaysync application - but these are not replacing with the job name.

Can some one please send the proper syntax to get this.

I'm able to trigger the mail only issue is i cannot able to get the job id and errors ("%js%" and "%errs%")

my email - harish.toy@gmail.com

Please send me an email for any further information.


Report •

#5
January 29, 2014 at 11:00:46
Look, without some documentation on this backup program, I'm going to have a hard time figuring out what it does.

How To Ask Questions The Smart Way


Report •

Ask Question