1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SendEMail.exe, alternative to internal SendMail

Discussion in 'T&T - Miscellaneous' started by Joe Caverly, Jun 20, 2013.

  1. Joe Caverly

    Joined:
    Aug 28, 2009
    Messages:
    680
    Likes Received:
    8
    Since I cannot get SENDMAIL to work for me, and I have had no response to my support question (http://jpsoft.com/forums/threads/sendmail-and-ssl.5048/),
    I have found a program called SendEMail.exe, available from (http://caspian.dotconf.net/menu/Software/SendEmail/).

    I created a SendEMail.ini file, which is as follows;

    Code:
    [Sendemail]
    smtpserver=smtp.gmail.com:587
    user=amxjJLCljlc6
    password=JCx1bDI2clj1NjlcIw==
    I have encrypted both my user and password in the SendEMail.ini file.

    Next, I have a .BTM file read the values from SendEMail.ini, and populate the arguments for SendEMail.exe;

    Code:
    @setlocal
    @echo off
    input Enter your message: %%themsg
    set yorn=N
    inkey /K"YN" Send this message (Y/N)?  %%yorn
    iff %yorn eq Y then
      set smtpserver=%@iniread[.\sendemail.ini,Sendemail,smtpserver]
      set user=%@jlcdecode[s,%@iniread[.\sendemail.ini,Sendemail,user]]
      set password=%@jlcdecode[s,%@iniread[.\sendemail.ini,Sendemail,password]]
      sendemail -f jlcaverlycd@yahoo.ca -t jlcaverly@yahoo.ca -v -m "%themsg" -s %smtpserver -xu %user -xp %password -v
    else
      echo Message not sent.
    endiff
    endlocal
    This does what I need it to do, and does it well.

    Joe
     

Share This Page