Loading ...
Sorry, an error occurred while loading the content.

Re: [BATCH WORLD] email by batch?

Expand Messages
  • G. J. Pareja
    Hi, all. Sorry to post this again (it was 20 days ago), but I am curious: did anyone try this out (did amin, the originator of the thread?)? Any thoughts on
    Message 1 of 6 , Jul 8, 2005
    • 0 Attachment
      Hi, all.

      Sorry to post this again (it was 20 days ago), but I am curious: did anyone
      try this out (did amin, the originator of the thread?)?

      Any thoughts on how to improve it? I find I am using my "send-by-email" batch
      file a lot (it is one of my most-frequently-used utilities now), and I
      thought someone here would enjoy it. I am struck by the total silence: no
      follow-ups, no replies, no criticisms, no kudos. Hmmm.

      Yours,
      Gerry Pareja (Vancouver, Canada)

      At 2005-06-18 03:17 PM -0700, G. J. Pareja wrote:
      >At 2005-06-18 12:57 PM -0700, amin ssss wrote:
      > >can anyone tell me about the possibility of sending an email by a batch
      >file ??
      >
      >Hi.
      >
      >Since a lot of the list regulars will recommend BLAT (as will I), I am
      >sending you my own mini-monster "send any file by email" batch file; I have
      a
      >shortcut to it in the "SendTo" folder so I can right-click and send the file
      >to it.
      >
      >One major caveat: it fails if there are spaces in the path name or the
      >filename. I personally avoid spaces like the plague, and suggest you copy
      the
      >file to a folder with no spaces or even to the root of the drive before
      >sending it.
      >
      >Customize for your own addresses and SMTP servers (search for "..." below).
      >
      >To answer your actual question: I would prepare a TXT file with the content
      >of your mail, then send it to my batch file. If what you want to do is to
      >send a lot of personalized emails, as from a database, I've done that too,
      >but this is not how I do it. I don't have time to document that now; sorry!
      >
      >Yours,
      >Gerry Pareja (Vancouver, Canada)
      >
      >:::::::::::
      >
      >@echo off
      >:: SendbyEm.bat
      >:: Author: G. Pareja, Vancouver (mocTODadanacTAajerapg)
      >:: first version 2003-10-23
      >:: uses BLAT.EXE (from http://www.blat.net/)
      >:: uses Horst's CHOIX utility. Can be converted to MS-DOS's Choice.com
      >::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
      >:: Customized for my computer; WATCH OUT FOR THE FOLLOWING:
      >:: M: is my Ramdisk; d:\dos_util is where I keep batch files
      >::
      >:: One major caveat: this fails if there are spaces in the path name or the
      >:: filename. I personally avoid spaces like the plague, and suggest you
      >:: copy the file to a folder with no spaces or even to the root of the
      >:: drive before sending it.
      >::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
      >:: Tested under Windows 2000 and XP Professional; slight mods to run in Win
      >98SE
      >:: .....@... since 2004-06-21 (1 Gb space allowance)
      >:: 15 August 2004: added .....@... (100 MB allowance)
      >:: logging transmissions since 2004-06-21
      >:: 23 August 2004: comp i.d.
      >::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
      >set dummy=123
      >rem> M:\TESTTXT1
      >set comp=GP-...
      >
      >:menu
      >set att=
      >
      >if "%1"=="" goto oops
      >if not "%2"=="" goto oneparam
      >cls
      >echo Ready to send the following file:
      >echo.
      >echo %1
      >echo.
      >echo by Email to ...
      >echo --------------------------------------------------
      >echo 1 - ...@...
      >echo 2 - ...@....ca
      >echo 3 - ...@....tc.ca
      >echo 4 - ...@....bc.ca
      >echo 5 - echo@...
      >echo 6 - ...@...
      >echo 7 - ...@..., ...@...
      >echo 8 - ...@...
      >echo 9 - ...@...
      >echo ---------------------------------------------------
      >echo 0 - QUIT
      >echo ---------------------------------------------------
      >
      >choix /c:0123456789 /n /t:0,99 "Select: "
      >
      >if errorlevel 1 if not errorlevel 2 goto end2
      >if errorlevel 10 goto choice9
      >if errorlevel 9 goto choice8
      >if errorlevel 8 goto choice7
      >if errorlevel 7 goto choice6
      >if errorlevel 6 goto choice5
      >if errorlevel 5 goto choice4
      >if errorlevel 4 goto choice3
      >if errorlevel 3 goto choice2
      >if errorlevel 2 goto choice1
      >goto end2
      >
      >:choice1
      >set sent2=...@...
      >goto proceed
      >
      >:choice2
      >set sent2=...@....ca
      >goto proceed
      >
      >:choice3
      >set sent2=...@....tc.ca
      >goto proceed
      >
      >:choice4
      >set sent2=...@....bc.ca
      >goto proceed
      >
      >:choice5 This address is good for testing your email send/receive setup
      >set sent2=echo@...
      >goto proceed
      >
      >:choice6
      >set sent2=...@...
      >goto proceed
      >
      >:choice7
      >set sent2=...@...,...@...
      >goto proceed
      >
      >:choice8
      >set sent2=...@...
      >goto proceed
      >
      >:choice9
      >set sent2=...@...
      >goto proceed
      >
      >:proceed
      >:: test if txt file 2004-08-22
      >if exist M:\TESTTXT? del M:\TESTTXT?
      >echo %1 has TXT extension >M:\TESTTXT0
      >find /I ".TXT has TXT extension " <M:\TESTTXT0 >M:\TESTTXT1
      >if errorlevel 0 set att=t
      >if errorlevel 1 set att=
      >
      >cls
      >if exist M:\TESTTXT1 type M:\TESTTXT1
      >
      >:: 4 August 2004 added filename to the text file to allow searching in
      >Googlemail
      >echo Sent %1 to: %sent2%>M:\SCR.TXT
      >echo --->>M:\SCR.TXT
      >echo Sent via BLAT from %comp%>>M:\SCR.TXT
      >echo.>>M:\SCR.TXT
      >
      >echo ----------------------------------------------------------
      >echo Running Blat ...
      >echo.
      >blat.exe M:\SCR.TXT -attach%att% %1 -s %1 -to %sent2% -f ...@....net -noh
      >-server mail.telus.net
      >time /T>>d:\dos_util\sendbyem.txt
      >date /T>>d:\dos_util\sendbyem.txt
      >echo File: %1>>d:\dos_util\sendbyem.txt
      >echo Sent to: %sent2%>>d:\dos_util\sendbyem.txt
      >echo -------------------------------------------->>d:\dos_util\sendbyem.txt
      >
      >goto end
      >
      >:oneparam
      >echo Error!
      >echo Command line used:
      >echo.
      >echo %0 %1 %2 %3
      >echo.
      >echo Reason: Only one param allowed.
      >goto pause
      >
      >:oops
      >echo Usage: %0 file_to_upload
      >goto pause
      >
      >:end
      >echo.
      >
      >:pause
      >echo.
      >echo Log written to: d:\dos_util\sendbyem.txt
      >echo.
      >pause
      >:end2
      >::::::::::::::::::::::
      >
      >[end]
      >
      >
      >
      >To Post a message, send it to: batchworld@...
      >
      >To Unsubscribe, send a blank message to: batchworld-unsubscribe@...
      >Yahoo! Groups Links
      >
      >
      >
      >
    • foxidrive
      ... But all the email addresses are bogus. I have to say you didn t test this one very well! ;-) ... -- Regards, Mic
      Message 2 of 6 , Jul 8, 2005
      • 0 Attachment
        On Fri, 08 Jul 2005 13:21:58 -0700, G. J. Pareja wrote:

        > Any thoughts on how to improve it? I find I am using my "send-by-email" batch
        > file a lot (it is one of my most-frequently-used utilities now), and I
        > thought someone here would enjoy it. I am struck by the total silence: no
        > follow-ups, no replies, no criticisms, no kudos. Hmmm.

        But all the email addresses are bogus.
        I have to say you didn't test this one very well! ;-)

        > >echo by Email to ...
        > >echo --------------------------------------------------
        > >echo 1 - ...@...
        > >echo 2 - ...@....ca
        > >echo 3 - ...@....tc.ca
        > >echo 4 - ...@....bc.ca
        > >echo 5 - echo@...
        > >echo 6 - ...@...
        > >echo 7 - ...@..., ...@...
        > >echo 8 - ...@...
        > >echo 9 - ...@...
        > >echo ---------------------------------------------------
        > >echo 0 - QUIT
        > >echo ---------------------------------------------------

        --
        Regards,
        Mic
      • Bob Bissinnar
        At 01:21 PM 7/8/2005 -0700, G. J. Pareja Writes ... Greetings Gerry! I don t have BLAT and use WIN98; no testing. I can t speak for Amin, but the OP would have
        Message 3 of 6 , Jul 9, 2005
        • 0 Attachment
          At 01:21 PM 7/8/2005 -0700, G. J. Pareja Writes

          >Sorry to post this again (it was 20 days ago), but I am curious: did anyone
          >try this out (did amin, the originator of the thread?)?

          Greetings Gerry!

          I don't have BLAT and use WIN98; no testing. I can't speak for Amin, but
          the OP would have replied by now if there were problems with your solution.

          >Any thoughts on how to improve it? I find I am using my "send-by-email"
          batch
          >file a lot (it is one of my most-frequently-used utilities now), and I
          >thought someone here would enjoy it. I am struck by the total silence: no
          >follow-ups, no replies, no criticisms, no kudos. Hmmm.

          Sometimes folks here on this forum "enjoy" a batch file without comment.

          Kudos Gerry and best wishes!
        • amin ssss
          hi G. J. Pareja thank you for reply and i appreciate this i see that it is a great tool , and good work i am sorry for late , i recently opened my email .
          Message 4 of 6 , Jul 20, 2005
          • 0 Attachment
            hi G. J. Pareja

            thank you for reply

            and i appreciate this

            i see that it is a great tool , and good work

            i am sorry for late , i recently opened my email .

            again , thnx alot






            "G. J. Pareja" <yg382@...> wrote:
            Hi, all.

            Sorry to post this again (it was 20 days ago), but I am curious: did anyone
            try this out (did amin, the originator of the thread?)?

            Any thoughts on how to improve it? I find I am using my "send-by-email" batch
            file a lot (it is one of my most-frequently-used utilities now), and I
            thought someone here would enjoy it. I am struck by the total silence: no
            follow-ups, no replies, no criticisms, no kudos. Hmmm.

            Yours,
            Gerry Pareja (Vancouver, Canada)

            At 2005-06-18 03:17 PM -0700, G. J. Pareja wrote:
            >At 2005-06-18 12:57 PM -0700, amin ssss wrote:
            > >can anyone tell me about the possibility of sending an email by a batch
            >file ??
            >
            >Hi.
            >
            >Since a lot of the list regulars will recommend BLAT (as will I), I am
            >sending you my own mini-monster "send any file by email" batch file; I have
            a
            >shortcut to it in the "SendTo" folder so I can right-click and send the file
            >to it.
            >
            >One major caveat: it fails if there are spaces in the path name or the
            >filename. I personally avoid spaces like the plague, and suggest you copy
            the
            >file to a folder with no spaces or even to the root of the drive before
            >sending it.
            >
            >Customize for your own addresses and SMTP servers (search for "..." below).
            >
            >To answer your actual question: I would prepare a TXT file with the content
            >of your mail, then send it to my batch file. If what you want to do is to
            >send a lot of personalized emails, as from a database, I've done that too,
            >but this is not how I do it. I don't have time to document that now; sorry!
            >
            >Yours,
            >Gerry Pareja (Vancouver, Canada)
            >
            >:::::::::::
            >
            >@echo off
            >:: SendbyEm.bat
            >:: Author: G. Pareja, Vancouver (mocTODadanacTAajerapg)
            >:: first version 2003-10-23
            >:: uses BLAT.EXE (from http://www.blat.net/)
            >:: uses Horst's CHOIX utility. Can be converted to MS-DOS's Choice.com
            >::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
            >:: Customized for my computer; WATCH OUT FOR THE FOLLOWING:
            >:: M: is my Ramdisk; d:\dos_util is where I keep batch files
            >::
            >:: One major caveat: this fails if there are spaces in the path name or the
            >:: filename. I personally avoid spaces like the plague, and suggest you
            >:: copy the file to a folder with no spaces or even to the root of the
            >:: drive before sending it.
            >::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
            >:: Tested under Windows 2000 and XP Professional; slight mods to run in Win
            >98SE
            >:: .....@... since 2004-06-21 (1 Gb space allowance)
            >:: 15 August 2004: added .....@... (100 MB allowance)
            >:: logging transmissions since 2004-06-21
            >:: 23 August 2004: comp i.d.
            >::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
            >set dummy=123
            >rem> M:\TESTTXT1
            >set comp=GP-...
            >
            >:menu
            >set att=
            >
            >if "%1"=="" goto oops
            >if not "%2"=="" goto oneparam
            >cls
            >echo Ready to send the following file:
            >echo.
            >echo %1
            >echo.
            >echo by Email to ...
            >echo --------------------------------------------------
            >echo 1 - ...@...
            >echo 2 - ...@....ca
            >echo 3 - ...@....tc.ca
            >echo 4 - ...@....bc.ca
            >echo 5 - echo@...
            >echo 6 - ...@...
            >echo 7 - ...@..., ...@...
            >echo 8 - ...@...
            >echo 9 - ...@...
            >echo ---------------------------------------------------
            >echo 0 - QUIT
            >echo ---------------------------------------------------
            >
            >choix /c:0123456789 /n /t:0,99 "Select: "
            >
            >if errorlevel 1 if not errorlevel 2 goto end2
            >if errorlevel 10 goto choice9
            >if errorlevel 9 goto choice8
            >if errorlevel 8 goto choice7
            >if errorlevel 7 goto choice6
            >if errorlevel 6 goto choice5
            >if errorlevel 5 goto choice4
            >if errorlevel 4 goto choice3
            >if errorlevel 3 goto choice2
            >if errorlevel 2 goto choice1
            >goto end2
            >
            >:choice1
            >set sent2=...@...
            >goto proceed
            >
            >:choice2
            >set sent2=...@....ca
            >goto proceed
            >
            >:choice3
            >set sent2=...@....tc.ca
            >goto proceed
            >
            >:choice4
            >set sent2=...@....bc.ca
            >goto proceed
            >
            >:choice5 This address is good for testing your email send/receive setup
            >set sent2=echo@...
            >goto proceed
            >
            >:choice6
            >set sent2=...@...
            >goto proceed
            >
            >:choice7
            >set sent2=...@...,...@...
            >goto proceed
            >
            >:choice8
            >set sent2=...@...
            >goto proceed
            >
            >:choice9
            >set sent2=...@...
            >goto proceed
            >
            >:proceed
            >:: test if txt file 2004-08-22
            >if exist M:\TESTTXT? del M:\TESTTXT?
            >echo %1 has TXT extension >M:\TESTTXT0
            >find /I ".TXT has TXT extension " <M:\TESTTXT0 >M:\TESTTXT1
            >if errorlevel 0 set att=t
            >if errorlevel 1 set att=
            >
            >cls
            >if exist M:\TESTTXT1 type M:\TESTTXT1
            >
            >:: 4 August 2004 added filename to the text file to allow searching in
            >Googlemail
            >echo Sent %1 to: %sent2%>M:\SCR.TXT
            >echo --->>M:\SCR.TXT
            >echo Sent via BLAT from %comp%>>M:\SCR.TXT
            >echo.>>M:\SCR.TXT
            >
            >echo ----------------------------------------------------------
            >echo Running Blat ...
            >echo.
            >blat.exe M:\SCR.TXT -attach%att% %1 -s %1 -to %sent2% -f ...@....net -noh
            >-server mail.telus.net
            >time /T>>d:\dos_util\sendbyem.txt
            >date /T>>d:\dos_util\sendbyem.txt
            >echo File: %1>>d:\dos_util\sendbyem.txt
            >echo Sent to: %sent2%>>d:\dos_util\sendbyem.txt
            >echo -------------------------------------------->>d:\dos_util\sendbyem.txt
            >
            >goto end
            >
            >:oneparam
            >echo Error!
            >echo Command line used:
            >echo.
            >echo %0 %1 %2 %3
            >echo.
            >echo Reason: Only one param allowed.
            >goto pause
            >
            >:oops
            >echo Usage: %0 file_to_upload
            >goto pause
            >
            >:end
            >echo.
            >
            >:pause
            >echo.
            >echo Log written to: d:\dos_util\sendbyem.txt
            >echo.
            >pause
            >:end2
            >::::::::::::::::::::::
            >
            >[end]
            >
            >
            >
            >To Post a message, send it to: batchworld@...
            >
            >To Unsubscribe, send a blank message to: batchworld-unsubscribe@...
            >Yahoo! Groups Links
            >
            >
            >
            >



            To Post a message, send it to: batchworld@...

            To Unsubscribe, send a blank message to: batchworld-unsubscribe@...



            ---------------------------------
            YAHOO! GROUPS LINKS


            Visit your group "batchworld" on the web.

            To unsubscribe from this group, send an email to:
            batchworld-unsubscribe@yahoogroups.com

            Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


            ---------------------------------




            __________________________________________________
            Do You Yahoo!?
            Tired of spam? Yahoo! Mail has the best spam protection around
            http://mail.yahoo.com

            [Non-text portions of this message have been removed]
          Your message has been successfully submitted and would be delivered to recipients shortly.