Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: Re: st: CommandLineEmailer using gmail ??
From
Nick Winter <[email protected]>
To
[email protected]
Subject
Re: Fwd: Re: st: CommandLineEmailer using gmail ??
Date
Wed, 18 Jul 2012 10:00:27 -0400
Sorry for the delay getting back.
It sounds like you are in a managed computer environment, so you should
probably check with your systems people before doing any of this. But,
hoping to clarify, and at the risk of getting off-Stata-topic, here
goes... All of this applies to Windows:
GMail (and many other mail providers) requires that you provide your
username and password when you send mail through their servers; this
prevents (or at least hinders) SPAMers from using their servers. TLS is
a protocol for communicating securely over the internet, used in this
case so your username and password can't be intercepted.
So, you need a command-line email sending utility that has the ability
to send credentials (username and password) securely; one option is the
version of SendMail that includes TLS support.
Perl is the programming language in which SendMail is written. Just as
a Stata .ado or .do file can't be run without Stata installed on your
computer, so to SendMail can't run without perl being installed on your
computer. Perl is open source and free, and there are a couple of
versions out there. I'm not a regular perl user, but from a bit of
searching it looks like one of those versions, "Strawberry Perl," is
easy to install and use, so I installed that to test SendMail.
So, you want to download and install Strawberry Perl from
http://strawberryperl.com/. Grab the "Recommended stable version" for
your OS (32 or 64 bit), then run it. Once it installed, I had to run
"relocation.pl.bat" (which is in the "c:\strawberry" directory if you
install in the default location) by double-clicking on it, then
"update_env.pl.bat".
Once perl is installed, you can run a perl program (like -sendemail.pl-).
Within stata, I would do something like:
. ! "c:\program files\sendmail\sendemail.pl" -f [email protected] ...
where you replace the path with whatever the path on your system is to
the sendemail.pl program, and replace the "..." with the rest of the
sendemail command.
I hope this helps. If it's still confusing, you should probably seek
help from your local tech support folks (or your local teenager...)
Nick Winter
On 7/11/2012 2:40 PM, Pablo Bonilla wrote:
Nick, Thank you so much,
Although I went to the web page and I didn't understand anything. I
downloaded SendEmail with TLS (which I don't know what is that...
sorry my ignorance :) ), I click the exe file and then what??? On the
other hand, I don't know what the Strawberry Perl program is.... How
do I do it??? how do I kinck all these things with Stata ???
I am Sorry for the inconvenience but since you know how to make it
work I'm really really interested.
Thank you
On Wed, Jul 11, 2012 at 1:24 PM, Nick Winter <[email protected]> wrote:
OK, I couldn't resist trying it out -- I just got SendEmail to send a
message via my GMail account. I installed the version of SendEmail that
includes TLS, and installed Strawberry perl on my Windows machine. With
that in place, the following sent a message:
sendemail -f [email protected] -t [email protected] -u Test -m Hello,
this is a test -s smtp.gmail.com -xu [email protected] -xp <<MyPassword>>
Good luck,
Nick Winter
On 7/11/2012 1:13 PM, Nick Winter wrote:
It does not look like this requires Windows Live mail. However, it does
look like GMail requires a TLS connection.
This program looks like it might do the trick, though I haven't tested it:
http://caspian.dotconf.net/menu/Software/SendEmail/
Though that requires perl...
Nick Winter
On 7/11/2012 12:29 PM, Pablo Bonilla wrote:
Dear statalist,
I am trying to used the program CommandLineEmailer for sending email
from Stata (http://www.codeproject.com/KB/IP/cpcommandlineemailer.aspx)
but as I am in a corporative computer I don't have Windows Live mail.
is there a way to integrate CommandLineEmailer with my gmail accoutn
?? Or, is there another way to send emails from stata besides this
one???
Thank you so much.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/