Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: emails with batch files  (Read 3994 times)

0 Members and 1 Guest are viewing this topic.

polisetty.venkatesh

  • Guest
emails with batch files
« on: October 03, 2010, 03:58:08 AM »
i need to send emails with the help of using batch files. how can i send the mails with batch files.

gpl



    Apprentice
  • Thanked: 27
    Re: emails with batch files
    « Reply #1 on: October 03, 2010, 10:36:30 AM »
    Have you tried the search function on this site, I know it has been answered before

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: emails with batch files
    « Reply #2 on: October 04, 2010, 07:05:40 AM »
    For 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. 8)
    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein

    RDP-C



      Greenhorn

      • Experience: Experienced
      • OS: Unknown
      Re: emails with batch files
      « Reply #3 on: October 05, 2010, 01:58:10 PM »
      I am using mailsend to send out pages to people from a batch file.   It should work for what you want to do.

      vishuvishal



        Beginner
      • Thanked: 3
        Re: emails with batch files
        « Reply #4 on: October 06, 2010, 04:39:25 PM »
        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 thanks

        RDP-C



          Greenhorn

          • Experience: Experienced
          • OS: Unknown
          Re: emails with batch files
          « Reply #5 on: October 08, 2010, 10:35:43 PM »
          this 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