cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
danielm
Champion Sweeper II

It would be nice if you could tell lspush to just send directly using its own SMTP direct to a smtp server instead of trying to use the email client locally.
sometimes you may not have one available.

2 REPLIES 2
danilo_ferrari
Engaged Sweeper
HI danielm!

I am trying to run this script but when I run I received the error message below:

Error: smtp.c (494) - Could not open file for reading: DOMAIN-servername.ls.txt (No such file or directory)
Mail sent successfully

I received the email but without the attachment file.

Can you please help me?
danielm
Champion Sweeper II
as an answer to my own question, a workaround I now use is a standalone SMTP exe and a batch file and lspush

ie,
===========
@ECHO OFF
@REM This file will email the generated data file needed for Lansweeper.
@REM File name will be DOMAIN-PCNAME.ls.txt
lspush.exe /folder .
mailsend -d domain.ca -smtp 123.123.123.123 -t email@123.ca -f email2@123.ca -sub "LANSWEEPERDATA servername" -a "DOMAIN-servername.ls.txt,application/octet-stream,a " -M "LANSWEEPER DATA ATTACHED"

===========

then just make a SCHEDULED task if you want to generate this every day and email from unreachable servers 🙂


lspush.exe is the file from the premium version

mailsend.exe is
Version: @(#) mailsend v1.14
Copyright: GNU GPL

google or try this link maybe http://www.muquit.com/muquit/software/mailsend/mailsend.html