1.

Solve : emails with batch files?

Answer»

i need to send emails with the help of using batch files. how can i send the mails with batch files.Have you tried the search function on this site, I know it has been answered beforeFor use in batch files you can use Blat or MailSend.

If you have WINDOWS, you can use any of the above or VBScript (already installed) or any other script language you may have downloaded and installed.

If you have Windows 7, you can use any of the above or Powershell (Powershell may have to be activated)

You are limited only by your imagination.

Good luck. I am using mailsend to send out pages to people from a batch file.   It should work for what you want to do. Code: [Select]echo off
cd folderexample
for %%* in (.) do set VAR=%%~n*
for /f %%a in ('time/t') do set vartime=%%a
set body=-body "hello"
set [email protected]
set [email protected]
set subj=-s "Test. FTP.%var%. New Files. %vartime%"
set server=-server smtp.example.com
set user=-u userexample
set pass= -pw passwordexample
C:\VISHU %0 -f %from% -b %to% %subj% %body% %server% %user% %pass%

I hope this will help you.
if do click on thanksthis is what i am using to send alerts.  Download the latest version of mailsend and put it in your windows/system32 dir
this is the command.  Its all one line but broken up here due to cut and paste.  I need to use port 2525 due to my ISP.  Change it to whatever works for you. 

mailsend -d your domain -smtp your SMTP server -port 2525 -starttls -v -f from address to show on email +CC +bc -auth-login -user user on SMTP server -pass "user password" -t to:email address -sub "subject" -M "MESSAGE"




good luck



Discussion

No Comment Found