Community discussions

MikroTik App
 
David1234
Forum Guru
Forum Guru
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: Email notification through Gmail on Windows machine.

Thu Feb 20, 2014 2:14 pm

i just want to say a big thank you to slech

thank you for the help and time !
 
User avatar
stmx38
Long time Member
Long time Member
Topic Author
Posts: 617
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

Re: Email notification through Gmail on Windows machine.

Thu Feb 20, 2014 2:18 pm

Glad to help you, David1234!

It seems that the issue was in stunnel.conf.
Now I mentioned in instruction that is preferred to create this file from scratch.
 
David1234
Forum Guru
Forum Guru
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: Email notification through Gmail on Windows machine.

Thu Feb 20, 2014 5:08 pm

yes I think it's better that way

Good job!
 
David1234
Forum Guru
Forum Guru
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: Email notification through Gmail on Windows machine.

Tue Feb 25, 2014 3:14 pm

1 more question -
if I want to send to 2 email address , can I do this?

never mind - manage to do this
all that was need to do is add a " , " between mails
1@gmail.com,2@gmail.com

but now another question -
if I want to make 1 mail as a CC or a even BCC , can it be done?


thanks ,
Last edited by David1234 on Tue Feb 25, 2014 3:32 pm, edited 1 time in total.
 
RolandKlO
newbie
Posts: 44
Joined: Fri Jun 10, 2011 1:20 pm
Location: The Neterlands
Contact:

Re: Email notification through Gmail on Windows machine.

Tue Feb 25, 2014 3:30 pm

1 more question -
if I want to send to 2 email address , can I do this?

or do I need to create a new notification called "Email blat" with another file call emailblat1.cmd?


thanks ,
You can have multiple receipients in one command.
for example blat.exe -to tst@domain.com,tst2@domain.com
Seperate the email addresses with comma but do NOT add a space after the comma..
 
David1234
Forum Guru
Forum Guru
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: Email notification through Gmail on Windows machine.

Tue Feb 25, 2014 4:51 pm

yes I have understood it ,

now what about the other question -

if I want to make 1 mail as a CC or a even BCC , can it be done?

Thanks ,
 
RolandKlO
newbie
Posts: 44
Joined: Fri Jun 10, 2011 1:20 pm
Location: The Neterlands
Contact:

Re: Email notification through Gmail on Windows machine.

Wed Feb 26, 2014 10:33 am

yes I have understood it ,

now what about the other question -

if I want to make 1 mail as a CC or a even BCC , can it be done?

Thanks ,
Yes, no probemen!
blat -to me@test.com -cc myemail1@test.com -bcc invisible@test.com
 
David1234
Forum Guru
Forum Guru
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: Email notification through Gmail on Windows machine.

Wed Feb 26, 2014 2:33 pm

O.K
but how do I change it in the file?
::
:: Send email notifications from Dude via Gmail
::
set blatdir=C:\Program Files\Dude\blat
set smtpsender=testing@gmail.com
set smtpserver=127.0.0.1
set smtpport=465
set smtpuser=testing
set smtppwd=pass
set mailto=testing@gmail.com
::
::
::"%blatdir%\blat.exe" -to %mailto% -f %smtpsender% -server %smtpserver% -port %smtpport% -u %smtpuser% -pw %smtppwd% -subject %1 -body %2
::
:: Uncomment for debug only (Comment previous line. Do not forget to return back after debugging!!!)
 
RolandKlO
newbie
Posts: 44
Joined: Fri Jun 10, 2011 1:20 pm
Location: The Neterlands
Contact:

Re: Email notification through Gmail on Windows machine.

Wed Feb 26, 2014 3:12 pm

O.K
but how do I change it in the file?
Ok, lets assume you want to add a cc receipient, then the file will be:
::
:: Send email notifications from Dude via Gmail
::
set blatdir=C:\Program Files\Dude\blat
set smtpsender=testing@gmail.com
set smtpserver=127.0.0.1
set smtpport=465
set smtpuser=testing
set smtppwd=pass
set mailto=testing@gmail.com
set mailcc=testing2@gmail.com
::
::
"%blatdir%\blat.exe" -to %mailto% -cc %mailcc% -f %smtpsender% -server %smtpserver% -port %smtpport% -u %smtpuser% -pw %smtppwd% -subject %1 -body %2
 
David1234
Forum Guru
Forum Guru
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: Email notification through Gmail on Windows machine.

Wed Feb 26, 2014 5:29 pm

Thanks !
 
User avatar
midolinho
just joined
Posts: 4
Joined: Wed Dec 11, 2013 11:09 am
Location: Pancevo
Contact:

Re: Email notification through Gmail on Windows machine.

Tue May 13, 2014 3:41 pm

Greetings to all,

I have problem with this setup, stunnel is instaled as service and working, but i have problem with blat. seems its some auth problem and i can getmy finger on it. please help, this is debug file.Why is AUTH PLAIN and why ''The SMTP server did not accept Auth PLAIN value'' how to change that

2014.05.13 14:12:26 (Tue)------------Start of Session-----------------
Blat v3.1.2 (build : Dec 27 2013 14:33:12)
32-bit Windows, Full, Unicode
<<<getline<<< 220 mx.google.com ESMTP m44sm39823168eeh.14 - gsmtp
>>>putline>>> EHLO bork.gmail.com
<<<getline<<< 250-mx.google.com at your service, [188.40.84.130]
<<<getline<<< 250-SIZE 35882577
<<<getline<<< 250-8BITMIME
<<<getline<<< 250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 PLAIN-CLIENTTOKEN
<<<getline<<< 250-ENHANCEDSTATUSCODES
<<<getline<<< 250 CHUNKING
Sending stdin.txt to mygmailreciver@gmail.com
Subject: Test subject
Login name is mygmailsender@gmail.com
>>>putline>>> AUTH PLAIN *****
<<<getline<<< 535-5.7.8 Username and Password not accepted. Learn more at
<<<getline<<< 535 5.7.8 http://support.google.com/mail/bin/answ ... swer=14257 m44sm39823168eeh.14 - gsmtp
*** Warning *** The SMTP server did not accept Auth PLAIN value.
*** Warning *** Are your login userid and password correct?
>>>putline>>> AUTH LOGIN
<<<getline<<< 334 VXNlcm5hbWU6
>>>putline>>> ZW9mZmljZW10cmVwb3J0c0BnbWFpbC5jb20=
<<<getline<<< 334 UGFzc3dvcmQ6
>>>putline>>> ZW9mZmljZTI5
<<<getline<<< 535-5.7.8 Username and Password not accepted. Learn more at
<<<getline<<< 535 5.7.8 http://support.google.com/mail/bin/answ ... swer=14257 m44sm39823168eeh.14 - gsmtp
*** Warning *** The SMTP server did not accept Auth LOGIN PASSWD value.
>>>putline>>> QUIT
<<<getline<<< 221 2.0.0 closing connection m44sm39823168eeh.14 - gsmtp
2014.05.13 14:12:27 (Tue)-------------End of Session------------------
 
RolandKlO
newbie
Posts: 44
Joined: Fri Jun 10, 2011 1:20 pm
Location: The Neterlands
Contact:

Re: Email notification through Gmail on Windows machine.

Wed May 14, 2014 4:46 pm

Greetings to all,

I have problem with this setup, stunnel is instaled as service and working, but i have problem with blat. seems its some auth problem and i can getmy finger on it. please help, this is debug file.Why is AUTH PLAIN and why ''The SMTP server did not accept Auth PLAIN value'' how to change that
I would like to suggest to do an out-of-the-box solution for this problem. Don't use Stunnel, use your local SMTP server (that can be installed as a Feature, don't forget to include the IIS 6 management console to configure it). This local SMTP server can be configured in The Dude (127.0.0.1 as server) and can then directly remail it trough the Gmail server. The setup is as follows:

1. In The Dude -> settings, tab General, set Primary SMTP server to 127.0.0.1
2. Create a new notification, type email, server 127.0.0.1, to: your desired receipient
3. Install the SMTP Server and SMTP Server Tools features
4. configure the Simple Mail Transfer Protocol(SMTP) to start automatically and start that service
5. Go to Start -> administrative tools -> Internet Information Services (IIS) 6.0 Manger
6. Open the properties of the SMTP Virtual Server #1
7. Tab Access, button Relay, set Only the list below and add the localhost ip (127.0.0.1) to the granted list
8. Tab Delivery, klik outbound security, choose Basic authentication and fill in your COMPLETE email as user and the apropriate password (use app specific password if you use 2 step authentication)
9. Mark the TLS encryption box! and click ok, now still in the Delivery tab, click on outbound connections and set the TCP port to 587
10. Klik ok, and still in the Delivery tab, click Advanced. Set the smart host to smtp.gmail.com, do NOT mark the boxes below that.
11. Click ok twice, now where back in the IIS manager. Close that, do a restart of the SMTP service and test the notification

This should work, it does for me...

Regards,
Roland
 
User avatar
stmx38
Long time Member
Long time Member
Topic Author
Posts: 617
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

Re: Email notification through Gmail on Windows machine.

Thu May 15, 2014 10:58 am

midolinho
Please post here your stunnel.conf file content.
 
User avatar
midolinho
just joined
Posts: 4
Joined: Wed Dec 11, 2013 11:09 am
Location: Pancevo
Contact:

Re: Email notification through Gmail on Windows machine.

Mon May 19, 2014 11:22 am

Thx Roland, ill try this steps and post the results asap.

slech this is my stunnel.conf

socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1

debug = 7

output = stunnel.log

client = yes

[pop3s]
accept = 995
connect = pop.gmail.com:995

[ssmtp]
accept = 587
connect = smtp.gmail.com:587

i changed ssmtp from 465 to 587 (tried both).

Thx guys for posting
 
User avatar
stmx38
Long time Member
Long time Member
Topic Author
Posts: 617
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

Re: Email notification through Gmail on Windows - via blat.

Tue May 20, 2014 12:46 pm

midolinho
Can you try new guide using mailsend ?
Email notification through Gmail on Windows - via mailsend.
 
User avatar
midolinho
just joined
Posts: 4
Joined: Wed Dec 11, 2013 11:09 am
Location: Pancevo
Contact:

Re: Email notification through Gmail on Windows - via blat.

Tue May 20, 2014 3:06 pm

Slech, new mailsend setup work like charm.
Thanks m8

@Roland:
Ty for reply, SMTP service somehow losses .dll files needed to run explorer.exe (WinXP SP3), so i didnt try further, i install mailsend. Thank you for sugestions

:D I'm Happy now :D
 
carlossu
just joined
Posts: 15
Joined: Tue Jul 29, 2014 5:32 am

Re: Email notification through Gmail on Windows - via blat.

Wed Jul 30, 2014 6:35 am

Hi..
I have been trying to set an email notification on Dude following all the steps that I saw above and I think that I did everything correctly but it is not working, I would like some help.. when I create the notification and press the button "Test".. a cmd window that appears but just for second and then it disappears (I can´t even read what it says), is that correct or it has to appear and stay longer??
Just to let you know I am running the Dude on Windows server 2008 R2 and It is installed in a Virtual Machine..
I will appreciate some help, thanks..!!
 
User avatar
stmx38
Long time Member
Long time Member
Topic Author
Posts: 617
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

Re: Email notification through Gmail on Windows - via blat.

Wed Jul 30, 2014 9:55 am

carlossu,
to debug blat you should change your emailblat.cmd as mentioned in it(in this example debugging section already uncommented):
::
::"%blatdir%\blat.exe" -to %mailto% -f %smtpsender% -server %smtpserver% -port %smtpport% -u %smtpuser% -pw %smtppwd% -subject %1 -body %2
::
:: Uncomment for debug only (Comment previous line. Do not forget to return back after debugging!!!)
::
"%blatdir%\blat.exe" -to %mailto% -f %smtpsender% -server %smtpserver% -port %smtpport% -u %smtpuser% -pw %smtppwd% -subject "Test subject" -body "Test body" -debug -log emailbtal.log
::
pause
::
Then try one more time to pres Test button. As a result emailbtal.log will be created.
Post it here, please.

Also verify your stunnel.conf. It should contain only lines mentioned in first post of this topic.

As alternative to blat + stunnel you can setup mailsend: Email notification through Gmail on Windows - via mailsend.
 
carlossu
just joined
Posts: 15
Joined: Tue Jul 29, 2014 5:32 am

Re: Email notification through Gmail on Windows - via blat.

Thu Jul 31, 2014 12:07 am

Then try one more time to pres Test button. As a result emailbtal.log will be created.
Post it here, please.

Also verify your stunnel.conf. It should contain only lines mentioned in first post of this topic.
Hi slech;

Thaks for the reply.. I attached the images with the currently stunnel and blat configuration.. could you watch them and verify if everything is correct? thanks..
You do not have the required permissions to view the files attached to this post.
 
User avatar
stmx38
Long time Member
Long time Member
Topic Author
Posts: 617
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

Re: Email notification through Gmail on Windows - via blat.

Thu Jul 31, 2014 12:49 am

carlossu, please fix this line in your stunnel.conf
connect = smtp.gmail.com:465
Also provide please content of emailblat.log.
 
carlossu
just joined
Posts: 15
Joined: Tue Jul 29, 2014 5:32 am

Re: Email notification through Gmail on Windows - via blat.

Thu Jul 31, 2014 1:02 am

Slech, thanks for your help.. I did it with the other option that you said before Mailsend.exe, and now it is working perfectly..

Now, here is another question.. I am using The Dude to monitore Mikrotik Routers that are running BGP and OSPF.. do you know if I can use those Email Notifications to let me know if the BGP or OSPF goes down??
 
User avatar
stmx38
Long time Member
Long time Member
Topic Author
Posts: 617
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

Re: Email notification through Gmail on Windows - via blat.

Thu Jul 31, 2014 7:31 am

carlossu, you are welcome!
You can start with probes on this topic: Probe Thread

Also found on the forum:
MIkrotik BGP Monitoring
Email me if BGP session status in NOT established
Monitoring OSPF path status, is it possible?
 
raindropz
just joined
Posts: 1
Joined: Tue Sep 30, 2014 2:46 pm

Re: Email notification through Gmail on Windows - via blat.

Tue Sep 30, 2014 2:49 pm

Really helpful article. I am new with Windows 8 and your article helped me to understand how the e-mail works with the Windows. I was confused how to send to two e-mail address and your thread helped me to fix these issues and clarify many doubts. Great job. You can submit this to twc internet to help all Windows users.
Last edited by raindropz on Wed Jul 27, 2016 9:31 am, edited 1 time in total.
 
Kurt
just joined
Posts: 1
Joined: Thu Oct 09, 2014 5:37 am

Re: Email notification through Gmail on Windows - via blat.

Thu Oct 09, 2014 6:13 am

Hi!
My local network behind a proxy server. And for the correct operation of the notification dude, you must specify the proxy settings in the configuration -serverv stunnel.
This my working config given a proxy server:
(I used SMTP server Yandex. Why it is only through it the connection was successfully.)

Stunnel:
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
#debug = 7
#output = stunnel.log

[ssmtp]
accept = 465
client = yes
connect = 192.168.XXX.XXX:8080
protocol = connect
protocolAuthentication = basic
protocolUsername =your_proxy_login
protocolPassword =your_proxy_password
protocolHost = smtp.yandex.ru:465
#debug = 7
#output = stunnel.log - disabled after debugging

192.168.XXX.XXX:8080 - proxy server

Blat:
rem @echo off
 
set dir=C:\blat
set logname=%dir%\blat.log
set smtpsender=dude-XXXXXX@yandex.ru
set smtpserver=127.0.0.1
set smtpport=465
set smtpuser=dude-XXXXXX@yandex.ru
set smtppwd=XXXXXXXXXX
set mailto=XXXXXXXXXXXXX@gmail.com
set subject=%1
set body=%2


IF NOT EXIST %logname% echo ====================== Start of file ====================== > %logname%
echo. >> %logname%
echo ====================== %time% ====================== >> %logname%


C:
CD %dir%
echo CMD: blat.exe -to %mailto% -f %smtpsender% -server %smtpserver% -port %smtpport% -u %smtpuser% -pw %smtppwd% -subject %subject% -body %body% >> %logname%
blat.exe -to %mailto% -f %smtpsender% -server %smtpserver% -port %smtpport% -u %smtpuser% -pw %smtppwd% -subject %subject% -body %body% >> %logname%
set smtpsender=set smtpuser=your accaunt yandex
set smtppwd=your password yandex
set mailto=but you can specify any address - what you need. I have tried the service Beeline 7909XXXXXXX@sms.beemail.ru. It works, but SMS comes with a delay, and it is unacceptable. So I made ​​a notification to gmail and alert comes time for my smartphone.
 
AlAraf
just joined
Posts: 10
Joined: Sun Dec 01, 2013 8:13 pm

Re: Dude - Email notification through Gmail on Windows - via blat.

Tue Mar 29, 2016 8:53 pm

Just use Mail Alert Simple Mailer:
https://sourceforge.net/projects/mail-alert/

You don't need any makeshifts like Blat and Stunnel. Mail Alert supports SSL/TLS natively.
 
edgars04
just joined
Posts: 4
Joined: Tue Oct 11, 2016 8:37 pm
Location: Venezuela

Re: Dude - Email notification through Gmail on Windows - via blat.

Tue Oct 11, 2016 9:30 pm

Hello Guys,

I tryed configuration of email notifications through gmail on windows, but not sends the nonifications. I have installed The Dude v3.6 on Windows Server 2012RH, I follow the steps but it does not work!!!

I need your help, this configuration is very importat in my company for monitoring the network.

I installed stunnel4.56 and blat3216_full, I edit stunnel.conf for these
stunnel.conf
Sample stunnel configuration file for Win32 by Michal Trojnara 2002-2012
; Some options used here may be inadequate for your particular configuration
; This sample file does *not* represent stunnel.conf defaults
; Please consult the manual for detailed description of available options

; **************************************************************************
; * Global options                                                         *
; **************************************************************************

; Debugging stuff (may useful for troubleshooting)
;debug = 7
;output = stunnel.log

; Disable FIPS mode to allow non-approved protocols and algorithms
;fips = no

; **************************************************************************
; * Service defaults may also be specified in individual service sections  *
; **************************************************************************

; Certificate/key is needed in server mode and optional in client mode
cert = stunnel.pem
;key = stunnel.pem

; Authentication stuff needs to be configured to prevent MITM attacks
; It is not enabled by default!
;verify = 2
; Don't forget to c_rehash CApath
;CApath = certs
; It's often easier to use CAfile
;CAfile = certs.pem
; Don't forget to c_rehash CRLpath
;CRLpath = crls
; Alternatively CRLfile can be used
;CRLfile = crls.pem

; Disable support for insecure SSLv2 protocol
options = NO_SSLv2
; Workaround for Eudora bug
;options = DONT_INSERT_EMPTY_FRAGMENTS

; These options provide additional security at some performance degradation
;options = SINGLE_ECDH_USE
;options = SINGLE_DH_USE

; **************************************************************************
; * Service definitions (at least one service has to be defined)           *
; **************************************************************************

; Example SSL server mode services

socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
;debug = 7
;output = stunnel.log

client = yes

[pop3s]
accept  = 995
connect = pop.gmail.com:995

[ssmtp]
accept  = 465
connect = smtp.gmail.com:465
[/color]
; Example SSL client mode services

;[gmail-pop3]
;client = yes
;accept = 127.0.0.1:110
;connect = pop.gmail.com:995

;[gmail-imap]
;client = yes
;accept = 127.0.0.1:143
;connect = imap.gmail.com:993

;[gmail-smtp]
;client = yes
;accept = 127.0.0.1:25
;connect = smtp.gmail.com:465

; Example SSL front-end to a web server

;[https]
;accept  = 443
;connect = 80
; "TIMEOUTclose = 0" is a workaround for a design flaw in Microsoft SSL
; Microsoft implementations do not use SSL close-notify alert and thus
; they are vulnerable to truncation attacks
;TIMEOUTclose = 0

; vim:ft=dosini
mailblat.cmd create the file
set blatdir=C:\Program Files\Dude\blat\mailblat.cmd
set smtpsender=XXXXXXXX@gmail.com
set smtpserver=127.0.0.1
set smtpport=465
set smtpuser=XXXXXXXXXX@gmail.com
set smtppwd=MYPASSWORD
set mailto=XXXXXXXXXXX@gmail.com
"%blatdir%\blat.exe" -to %XXXXXXXXX@gmail.com% -f %XXXXXXXXXX@gmail.com% -server %127.0.0.1% -port %465% -u %XXXXXXXXXX@gmail.com% -pw %MYPASSWORD% -subject %1 -body %2
The Dude v3.6 add the new notifications
Name: Email Externo
Type: Execute on server
(Insertar Variale)
Command: "C:\Program Files (x86)\Dude\blat\mailblat.cmd" "Service [Probe.Name] on [Device.Name] is now [Service.Status]" "Service [Probe.Name] on [Device.Name] is now [Service.Status] ([Service.ProblemDescription])"
The server have Private IP, the setting General on The Dude is:

Primary DNS: 4.2.2.1
Secondary DNS: 8.8.8.8

Primary SMTP: 74.125.141.108 (this IP I found when I do Ping smtp.gmail.com)
Secondary SMTP: 0.0.0.0
From: XXXXXXXX@gmail.com

Please could you help me!!!
 
User avatar
stmx38
Long time Member
Long time Member
Topic Author
Posts: 617
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

Re: Dude - Email notification through Gmail on Windows - via blat.

Wed Oct 12, 2016 8:48 pm

Hello, edgars04!

Can you try the following solution: Dude - Email notification through Gmail on Windows - via mailsend.
If not, we can continue to solve your issue with blat.

Thank you!
 
edgars04
just joined
Posts: 4
Joined: Tue Oct 11, 2016 8:37 pm
Location: Venezuela

Re: Dude - Email notification through Gmail on Windows - via blat.

Thu Oct 13, 2016 1:13 am

Thanks for you help Slech!!!!

I will try the configuration with mailsend.
 
David1234
Forum Guru
Forum Guru
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: Dude - Email notification through Gmail on Windows - via blat.

Thu Nov 10, 2016 1:29 pm

Hello slech , can you help me
for some reason it stop sending me
didn't change any setting of my files in the last 2 years
I get :
2016.11.10 13:21:14 (Thu)------------Start of Session-----------------
Blat v3.2.0 (build : Dec 27 2013 14:37:23)
32-bit Windows, Full, Unicode
Error: Server refused connection.
2016.11.10 13:21:15 (Thu)-------------End of Session------------------
this is the stunnel.conf
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
debug = 7
output = stunnel.log
client = yes
[pop3s]
accept = 995
connect = pop.gmail.com:995
[ssmtp]
accept = 465
connect = smtp.gmail.com:465
and this is the cmd file
::
:: Send email notifications from Dude via Gmail
::
set blatdir=C:\Program Files\Dude\blat
set smtpsender=MyEmail@gmail.com
set smtpserver=127.0.0.1
set smtpport=465
set smtpuser=MyEmail
set smtppwd=MyPassword
set mailto=david@gmail
set mailcc=david1@korenron.co.il
::
::
::"%blatdir%\blat.exe" -to %mailto% -cc %mailcc% -f %smtpsender% -server %smtpserver% -port %smtpport% -u %smtpuser% -pw %smtppwd% -subject %1 -body %2
::
:: Uncomment for debug only (Comment previous line. Do not forget to return back after debugging!!!)
::
"%blatdir%\blat.exe" -to %mailto% -f %smtpsender% -server %smtpserver% -port %smtpport% -u %smtpuser% -pw %smtppwd% -subject "Test subject" -body "Test body" -debug -log emailbtal.log
::
::pause
::
what could it be?
I have try to enter to account with the user\pass - and it's working , so this is not the issue

Thanks,
 
User avatar
stmx38
Long time Member
Long time Member
Topic Author
Posts: 617
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

Re: Dude - Email notification through Gmail on Windows - via blat.

Thu Nov 10, 2016 8:00 pm

Hello, David1234!

As I see in your stunnel.conf, your log is enabled. Please verify that stunnel working and if yes, can you look in its log file.

This solution working using stunnel for secure connection and it receiving connection from the blat and then connect to the gmail.

Thank you!
 
David1234
Forum Guru
Forum Guru
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: Dude - Email notification through Gmail on Windows - via blat.

Sun Nov 13, 2016 10:57 am

I'm sorry - but i didnlt understand what you want me to do

how can I know if my stunnel is working? I don;t see any log file in it's folder.
?

Thanks ,
 
User avatar
stmx38
Long time Member
Long time Member
Topic Author
Posts: 617
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

Re: Dude - Email notification through Gmail on Windows - via blat.

Sun Nov 13, 2016 11:24 am

David1234,

1. Stunnel should work as a Windows service. To verify if it is running:
Win+R --> Services.msc --> Enter --> Find Stunnel and verify its state. If it is not running - "Start" it.
2. As your stunnel debug is turned on, in stunnel.logu you should see something if it working. I think this file should be in the stunnel installation folder.
3. Try a connection to the Gmail directly and using stunnel:
a)telnet smtp.gmail.com 465
b)telnet localhost 465
And notice if connection is established.

Also you can try to move on another solution which not require a stunnnel: Dude - Email notification through Gmail on Windows - via mailsend.

Thank you!
 
David1234
Forum Guru
Forum Guru
Posts: 1424
Joined: Sun Sep 18, 2011 7:00 pm

Re: Dude - Email notification through Gmail on Windows - via blat.

Sun Nov 13, 2016 11:37 am

I think the problem was that the servids wasn't running.....

strange but at least we found it

Thanks !
 
AlAraf
just joined
Posts: 10
Joined: Sun Dec 01, 2013 8:13 pm

Re: Dude - Email notification through Gmail on Windows - via blat.

Thu Mar 02, 2017 1:34 pm

I think the problem was that the servids wasn't running.....

strange but at least we found it

Thanks !
Why you are still using Blat with stunnel? There is a better solution like Mail Alert Simple Mailer (https://sourceforge.net/projects/mail-alert/) which natively supports SSL/STARTTLS and stores encrypted SMTP password in configuration file.

Who is online

Users browsing this forum: No registered users and 14 guests