Notification

Icon
Error

lspush smtp direct send

Posted: Friday, November 18, 2011 10:14:20 PM(UTC)
danielm

danielm

Member Original PosterPosts: 168
0
Like
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.
danielm
#1danielm Member Original PosterPosts: 168  
posted: 12/30/2011 7:05:01 PM(UTC)
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/mu...e/mailsend/mailsend.html
Handles attachments
mailsend.txt (3kb) downloaded 119 time(s).
Danilo Ferrari
#2Danilo Ferrari Member Posts: 1  
posted: 8/1/2019 1:39:26 PM(UTC)
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?

Active Discussions

Lansweeper Report for Microsoft Win 7 Extended Support
by  RC62N   Go to last post Go to first unread
Last post: Yesterday at 6:46:53 PM(UTC)
Lansweeper How to make a colour coded report
by  B.Rutherford  
Go to last post Go to first unread
Last post: Yesterday at 4:27:06 PM(UTC)
Report Center All switches and the assets connected to them
by  NWSF   Go to last post Go to first unread
Last post: 12/12/2019 5:23:34 PM(UTC)
Lansweeper Report showing single asset type
by  RC62N  
Go to last post Go to first unread
Last post: 12/11/2019 10:02:41 PM(UTC)
Report Center .Net 4.5 through 4.8 report - Reg Key scanning based
by  Martin Schulz   Go to last post Go to first unread
Last post: 12/11/2019 11:55:24 AM(UTC)
Lansweeper Assets and Owner listing help
by  ssmarr5  
Go to last post Go to first unread
Last post: 12/10/2019 9:23:09 PM(UTC)
Lansweeper HPE SAS Solid State Drives failure report
by  Tommy75   Go to last post Go to first unread
Last post: 12/10/2019 8:04:05 AM(UTC)
Lansweeper Adding Owner/User information to Assets:All column report
by  ssmarr5  
Go to last post Go to first unread
Last post: 12/10/2019 12:15:01 AM(UTC)