Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: st: CommandLineEmailer using gmail ??
tashi lama <firstname.lastname@example.org>
RE: st: CommandLineEmailer using gmail ??
Tue, 14 Aug 2012 21:42:43 +0000
Does Stata allow writing a perl script inside a do or ado file sth like following
shell vi perl1
The reason is because I have a xml file( in excel format) which contains certain strings which need to be found and replaced with other strings. I have a feeling since stata can't do that or limited, I am thinkingh to use perl to accomplish it.
> Date: Wed, 18 Jul 2012 10:00:27 -0400
> From: email@example.com
> To: firstname.lastname@example.org
> Subject: Re: Fwd: Re: st: CommandLineEmailer using gmail ??
> 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
> 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@example.com ...
> 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 <firstname.lastname@example.org> 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@example.com -t firstname.lastname@example.org -u Test -m Hello,
> >> this is a test -s smtp.gmail.com -xu email@example.com -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/
* For searches and help try: