1.

Solve : emails with batch files?

Answer» <html><body><p>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 <a href="https://sourceforge.net/projects/blat/files/">Blat</a> or <a href="http://www.petri.co.il/send_mail_from_script.htm">MailSend</a>.<br/><br/>If you have <a href="https://interviewquestions.tuteehub.com/tag/windows-22662" style="font-weight:bold;" target="_blank" title="Click to know more about WINDOWS">WINDOWS</a>, you can use any of the above or VBScript (already installed) or any other script language you may have downloaded and installed.<br/><br/>If you have Windows 7, you can use any of the above or Powershell (Powershell may have to be activated)<br/><br/>You are limited only by your imagination.<br/><br/>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: <a>[Select]</a>echo off<br/>cd folderexample<br/>for %%* in (.) do set <a href="https://interviewquestions.tuteehub.com/tag/var-11596" style="font-weight:bold;" target="_blank" title="Click to know more about VAR">VAR</a>=%%~n*<br/>for /f %%a in ('time/t') do set vartime=%%a<br/>set body=-body "hello"<br/>set <a href="/cdn-cgi/l/email-protection">[email protected]</a><br/>set <a href="/cdn-cgi/l/email-protection">[email protected]</a><br/>set subj=-s "Test. FTP.%var%. New Files. %vartime%"<br/>set server=-server smtp.example.com<br/>set user=-u userexample<br/>set pass= -pw passwordexample<br/>C:\<a href="https://interviewquestions.tuteehub.com/tag/vishu-727999" style="font-weight:bold;" target="_blank" title="Click to know more about VISHU">VISHU</a> %0 -f %from% -b %to% %subj% %body% %server% %user% %pass%<br/><br/>I hope this will help you.<br/>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<br/>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.  <br/><br/>mailsend -d <em>your domain</em> -smtp <em>your SMTP server</em> -port 2525 -starttls -v -f <em>from address to show on email</em> +<a href="https://interviewquestions.tuteehub.com/tag/cc-251163" style="font-weight:bold;" target="_blank" title="Click to know more about CC">CC</a> +bc -auth-login -user <em>user on SMTP server</em> -pass "<em>user password</em>" -t <em>to:email address </em> -sub "<em>subject</em>" -M "<em><a href="https://interviewquestions.tuteehub.com/tag/message-25597" style="font-weight:bold;" target="_blank" title="Click to know more about MESSAGE">MESSAGE</a></em>"<br/><br/><br/><br/><br/>good luck</p></body></html>


Discussion

No Comment Found