Send mail via server which require SMTP authentication

Hi,

Here is my small utility to send mail via server which require SMTP authentication.
To configure it to work with your mail acount, run it with command-line parameter 'config, e.g:
dito_asms.exe config
Small window will appear, fields content is self-explanatory
dito_asms_gui.JPG
Fill all fields, test and save your settings.
Settings are stored in registry in key ‘HKEY_CURRENT_USER\Software\DITO’ and they are encrypted using AES-128 algorithm.
To send mail run app with three command-line parameters: ‘TO address’ ‘Subject’ ‘Mail body’, e.g.:
“C:\Program Files\Dude\dito_asms.exe” nobody@nowhere.com “Service [Probe.Name] on [Device.Name] is now [Service.Status]” “([Service.ProblemDescription])”
A parameter that contains spaces must be surrounded by “double quotes”.
Tested on Win XP and Win 7, works from Dude :slight_smile: (thanks to gsandul).

Regards, Grzegorz.

EDIT: the file was removed, there is already a newest version, check my last post

Can I use your app to send to several mail accounts? How is that achieved?
I tried to separate mail addresses with commas with no luck

Ivan Conde

Maybe setup a distribution group that you can add the email addresses to and then just add that one into the SMTP app. (if multiple addresses can not be put into the field). :slight_smile:

Hi,

Here is new version (1.0.0.15) which support multiple recipients:
dito_asms.zip (304 KB)
Syntax is:

"C:\Program Files\Dude\dito_asms.exe" "nobody@nowhere.com,billg@microsomething.com" "Service [Probe.Name] on [Device.Name] is now [Service.Status]" "([Service.ProblemDescription])"

List of recipients must be surrounded by double quotes, comma is delimiter, no spaces.

Regards, Grzegorz.

HI

i’m getting ‘test mail failed with error code 0’ every time I click on test settings

I’m using Windows 7

Hi

Cant seem to get this thing up and running.every time if I click on the test settings I get a test mail failed with error code 3 or 0

Can somebody please help me

Hi,

This application was tested on Win7 by me and everything was good.
Attached you can find latest version (1.0.0.16) which logs communication with SMTP server during testing to file.
dito_asms.zip (304 KB)
This file named ‘dito_asms.log’ is located in app directory.
Hope this helps.

Regards, Grzegorz.

I did what you said and still no luck

i have attached a screen shot of the settings I’m using and the log file.
Do i need too change something in dude accept for the string I need to put in

Thanx for the help
Dude.JPG

Hi,

Log file clearly shows that is no response from mail server. Typical log looks like this:

2010-11-29 10:25:05 : 10:25:05 EHLO NITEWORX

2010-11-29 10:25:05 : 10:25:05 250-0002.srv.abc.pl Hello dwg47.internetdsl.tpnet.pl [82.x.y.z]
250-SIZE 52428800
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP

2010-11-29 10:25:05 : 10:25:05 AUTH LOGIN

2010-11-29 10:25:05 : 10:25:05 334 3JzpomFEqyfi

Maybe this app is blocked by firewall, check this.

Regards, Grzegorz.

Hi

Okay it seem that we’re getting some where now

I changed the port of gmail to 587 and then the program confirms that the mail have been sent but still nothing in my inbox

see attached for log file

Thanx for the quick reply’s

PS. turning of the firewall didn’t help much
dito_asms.log (1.9 KB)

Hi,

GMail server requires TLS, but this is not supported by this simple app, sorry.

Regards, Grzegorz.

Maybe it will work with stunnel ?
Email notification throughout Gmail on Windows machine

Hi,

Really good idea with ‘stunnel’.
Personally I don’t use GMail so I’m not able to test this solution.
IMHO if ‘blat’ works my app also should works, same parameters to set.
For me only one disadvantage of ‘blat’ is that every mail account parameter is available as plain text, no encryption at all.

Regards, Grzegorz.

Another interesting solution is http://commandlinesendmail.blogspot.com/. Uisng this program you can create such notification :

“c:\Program Files\Dude\senditquiet.exe” -s mymailserwer -port 587 -u mailuser -protocol normal -p mailpassword -f mymailaddress -t toaddress -subject “[Probe.Name] na [Device.Name] [Service.Status]” -body “[Probe.Name] na [Device.Name] [Service.Status]”

Of cource first copy senditquiet to your dude dir.
Regards

Jacek from http://www.arwal.com.pl

Hello, we managed with this problem.

We used Dude with a yahoo account without authentication in 450G boards (example). Yahoo started this week to use authentication. To fix this you have to go to /tool email set starttls=yes

U need more entries instead of one.