Community discussions

 
ditonet
Forum Veteran
Forum Veteran
Topic Author
Posts: 837
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Send mail via server which require SMTP authentication

Sun Oct 24, 2010 12:44 am

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 :) (thanks to gsandul).

Regards, Grzegorz.

EDIT: the file was removed, there is already a newest version, check my last post
You do not have the required permissions to view the files attached to this post.
Last edited by ditonet on Sat Nov 13, 2010 1:26 am, edited 1 time in total.
Grzegorz | MTCNA, MTCRE, MTCSE | konsultacje MikroTik Warszawa
It is a book about a Spanish guy called Manual. You should read it. - Dilbert
 
condei
just joined
Posts: 1
Joined: Thu Nov 11, 2010 7:34 pm

Re: Send mail via server which require SMTP authentication

Thu Nov 11, 2010 7:48 pm

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
 
chrisd13
Frequent Visitor
Frequent Visitor
Posts: 68
Joined: Mon Feb 20, 2006 4:05 pm
Location: UK

Re: Send mail via server which require SMTP authentication

Fri Nov 12, 2010 6:31 pm

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). :)
Don't forget to give Karma if we help you out :)
 
ditonet
Forum Veteran
Forum Veteran
Topic Author
Posts: 837
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: Send mail via server which require SMTP authentication

Sat Nov 13, 2010 1:19 am

Hi,

Here is new version (1.0.0.15) which support multiple recipients:
dito_asms.zip
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.
You do not have the required permissions to view the files attached to this post.
Grzegorz | MTCNA, MTCRE, MTCSE | konsultacje MikroTik Warszawa
It is a book about a Spanish guy called Manual. You should read it. - Dilbert
 
Mandrax
just joined
Posts: 4
Joined: Sat Oct 02, 2010 7:47 am

Re: Send mail via server which require SMTP authentication

Fri Nov 26, 2010 4:41 pm

HI

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

I'm using Windows 7
 
Mandrax
just joined
Posts: 4
Joined: Sat Oct 02, 2010 7:47 am

Re: Send mail via server which require SMTP authentication

Mon Nov 29, 2010 7:50 am

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
 
ditonet
Forum Veteran
Forum Veteran
Topic Author
Posts: 837
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: Send mail via server which require SMTP authentication

Mon Nov 29, 2010 11:32 am

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
This file named 'dito_asms.log' is located in app directory.
Hope this helps.

Regards, Grzegorz.
You do not have the required permissions to view the files attached to this post.
Grzegorz | MTCNA, MTCRE, MTCSE | konsultacje MikroTik Warszawa
It is a book about a Spanish guy called Manual. You should read it. - Dilbert
 
Mandrax
just joined
Posts: 4
Joined: Sat Oct 02, 2010 7:47 am

Re: Send mail via server which require SMTP authentication

Mon Nov 29, 2010 2:01 pm

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
You do not have the required permissions to view the files attached to this post.
 
ditonet
Forum Veteran
Forum Veteran
Topic Author
Posts: 837
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: Send mail via server which require SMTP authentication

Mon Nov 29, 2010 2:17 pm

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 <Send> EHLO NITEWORX

2010-11-29 10:25:05 : 10:25:05 <Recv> 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 <Send> AUTH LOGIN

2010-11-29 10:25:05 : 10:25:05 <Recv> 334 3JzpomFEqyfi
Maybe this app is blocked by firewall, check this.

Regards, Grzegorz.
Grzegorz | MTCNA, MTCRE, MTCSE | konsultacje MikroTik Warszawa
It is a book about a Spanish guy called Manual. You should read it. - Dilbert
 
Mandrax
just joined
Posts: 4
Joined: Sat Oct 02, 2010 7:47 am

Re: Send mail via server which require SMTP authentication

Mon Nov 29, 2010 3:28 pm

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
You do not have the required permissions to view the files attached to this post.
 
ditonet
Forum Veteran
Forum Veteran
Topic Author
Posts: 837
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: Send mail via server which require SMTP authentication

Mon Nov 29, 2010 3:35 pm

Hi,

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

Regards, Grzegorz.
Grzegorz | MTCNA, MTCRE, MTCSE | konsultacje MikroTik Warszawa
It is a book about a Spanish guy called Manual. You should read it. - Dilbert
 
slech
Long time Member
Long time Member
Posts: 533
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

Re: Send mail via server which require SMTP authentication

Fri Dec 10, 2010 4:41 pm

sorry for my english
 
ditonet
Forum Veteran
Forum Veteran
Topic Author
Posts: 837
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: Send mail via server which require SMTP authentication

Fri Dec 10, 2010 5:47 pm

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.
Grzegorz | MTCNA, MTCRE, MTCSE | konsultacje MikroTik Warszawa
It is a book about a Spanish guy called Manual. You should read it. - Dilbert
 
jacekarwal
just joined
Posts: 13
Joined: Mon Jun 13, 2011 11:57 am
Contact:

Re: Send mail via server which require SMTP authentication

Mon Jun 13, 2011 12:25 pm

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
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Posts: 1681
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Re: Send mail via server which require SMTP authentication

Fri Dec 13, 2013 4:20 pm

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
Martín
martinruiz at ibersystems.es
Experto en redes WiFi y enlaces WiFi.

Facebook: @Ibersystems
Twitter: @Ibersystems

Certified in Traffic Shaping, Wireless, Internetworking, Routing and User Management.
MTCTCE - MTCWE - MTCINE - MTCUME - MTCRE
 
jackcheng
just joined
Posts: 3
Joined: Wed Jan 15, 2014 10:00 am

Re: Send mail via server which require SMTP authentication

Wed Jan 15, 2014 10:37 am

I tried to separate mail addresses with commas with no luck




————————————

WoW Gold kaufen
 
User avatar
Ibersystems
Forum Guru
Forum Guru
Posts: 1681
Joined: Wed Apr 12, 2006 12:29 am
Location: Cabrils, Barcelona - Spain
Contact:

Re: Send mail via server which require SMTP authentication

Thu Jan 16, 2014 10:24 am

U need more entries instead of one.
Martín
martinruiz at ibersystems.es
Experto en redes WiFi y enlaces WiFi.

Facebook: @Ibersystems
Twitter: @Ibersystems

Certified in Traffic Shaping, Wireless, Internetworking, Routing and User Management.
MTCTCE - MTCWE - MTCINE - MTCUME - MTCRE

Who is online

Users browsing this forum: No registered users and 6 guests