From me at heyjay.com Sat Dec 13 05:30:45 2008 From: me at heyjay.com (Jay Strauss) Date: Sat, 13 Dec 2008 07:30:45 -0600 Subject: [Chicago-talk] Sending an email via gmail using MIME::Lite Message-ID: Hi, I would have thought this would be well worn territory on google, but I could not find out how to do this. Maybe its so elementary no one posted an example. I can seem to send an email via MIME::Lite using gmail's smtp. Here is what I have and get: #!/usr/bin/perl use strict; use MIME::Lite; my $smtp_server = "smtp.gmail.com"; my $smtp_port = 465; my $debug = 1; my $user = "user"; my $passwd = "password"; MIME::Lite->send('smtp', $smtp_server , Port =>$smtp_port , Timeout=>60 , Debug => $debug , Hello => 'domain.com', User => $user, Password => $passwd); my $msg = MIME::Lite->new( From =>'jay at duetloans.com', To =>'me at heyjay.com', Subject =>'This is a test', Data =>"this is the body" ); $msg->send(); When I run it: jstrauss at neon:~/bin$ email.pl MIME::Lite::SMTP>>> MIME::Lite::SMTP MIME::Lite::SMTP>>> Net::SMTP(2.29) MIME::Lite::SMTP>>> Net::Cmd(2.26) MIME::Lite::SMTP>>> Exporter(5.58) MIME::Lite::SMTP>>> IO::Socket::INET(1.29) MIME::Lite::SMTP>>> IO::Socket(1.29) MIME::Lite::SMTP>>> IO::Handle(1.25) MIME::Lite::SMTP=GLOB(0x83c9fd4): Timeout at /usr/share/perl5/MIME/Lite.pm line 2634 Failed to connect to mail server: Bad file descriptor at /home/jstrauss/bin/email.pl line 27 I feel its probably not connecting properly, but I don't see what to do. Thanks Jay From me at heyjay.com Sat Dec 13 05:57:51 2008 From: me at heyjay.com (Jay Strauss) Date: Sat, 13 Dec 2008 07:57:51 -0600 Subject: [Chicago-talk] Sending an email via gmail using MIME::Lite In-Reply-To: References: Message-ID: I believe I need to indicate to use SSL but I'm not sure how from MIME::Lite. I was looking through the source of other modules that send emails to gmail, and they use Net::SMTP::SSL. I know MIME::Lite uses Net::SMTP, I think I need to tell it somehow to use Net::SMTP::SSL Thanks Jay From don at drakeconsult.com Sat Dec 13 07:49:49 2008 From: don at drakeconsult.com (Don Drake) Date: Sat, 13 Dec 2008 09:49:49 -0600 Subject: [Chicago-talk] Sending an email via gmail using MIME::Lite In-Reply-To: References: Message-ID: <694802E1-C756-4AF7-A579-635D251FE12D@drakeconsult.com> I tried it and I can connect just fine: $ ./gm.pl MIME::Lite::SMTP>>> MIME::Lite::SMTP MIME::Lite::SMTP>>> Net::SMTP(2.31) MIME::Lite::SMTP>>> Net::Cmd(2.29) MIME::Lite::SMTP>>> Exporter(5.58) MIME::Lite::SMTP>>> IO::Socket::INET(1.29) MIME::Lite::SMTP>>> IO::Socket(1.29) MIME::Lite::SMTP>>> IO::Handle(1.25) MIME::Lite::SMTP=GLOB(0x8afc84)<<< 220 mx.google.com ESMTP k29sm1647585qba.7 MIME::Lite::SMTP=GLOB(0x8afc84)>>> EHLO domain.com MIME::Lite::SMTP=GLOB(0x8afc84)<<< 250-mx.google.com at your service, [24.13.161.70] MIME::Lite::SMTP=GLOB(0x8afc84)<<< 250-SIZE 35651584 MIME::Lite::SMTP=GLOB(0x8afc84)<<< 250-8BITMIME MIME::Lite::SMTP=GLOB(0x8afc84)<<< 250-STARTTLS MIME::Lite::SMTP=GLOB(0x8afc84)<<< 250 ENHANCEDSTATUSCODES MIME::Lite::SMTP=GLOB(0x8afc84)>>> MAIL FROM: MIME::Lite::SMTP=GLOB(0x8afc84)<<< 530 5.7.0 Must issue a STARTTLS command first. k29sm1647585qba.7 SMTP mail() command failed: 5.7.0 Must issue a STARTTLS command first. k29sm1647585qba.7 Make sure you don't have a firewall blocking your connection (try telnet to debug [telnet smtp.gmail.com 465]). Or you might be on a RBL and they aren't accepting connections from your location. -Don -- Don Drake www.drakeconsulting.com www.maillaunder.com 312-560-1574 800-733-2143 On Dec 13, 2008, at 7:30 AM, Jay Strauss wrote: > Hi, I would have thought this would be well worn territory on google, > but I could not find out how to do this. Maybe its so elementary no > one posted an example. > > I can seem to send an email via MIME::Lite using gmail's smtp. Here > is what I have and get: > > #!/usr/bin/perl > > use strict; > use MIME::Lite; > > my $smtp_server = "smtp.gmail.com"; > my $smtp_port = 465; > my $debug = 1; > my $user = "user"; > my $passwd = "password"; > > MIME::Lite->send('smtp', $smtp_server , > Port =>$smtp_port , > Timeout=>60 , > Debug => $debug , > Hello => 'domain.com', > User => $user, > Password => $passwd); > > my $msg = MIME::Lite->new( > From =>'jay at duetloans.com', > To =>'me at heyjay.com', > Subject =>'This is a test', > Data =>"this is the body" > ); > > $msg->send(); > > When I run it: > jstrauss at neon:~/bin$ email.pl > MIME::Lite::SMTP>>> MIME::Lite::SMTP > MIME::Lite::SMTP>>> Net::SMTP(2.29) > MIME::Lite::SMTP>>> Net::Cmd(2.26) > MIME::Lite::SMTP>>> Exporter(5.58) > MIME::Lite::SMTP>>> IO::Socket::INET(1.29) > MIME::Lite::SMTP>>> IO::Socket(1.29) > MIME::Lite::SMTP>>> IO::Handle(1.25) > MIME::Lite::SMTP=GLOB(0x83c9fd4): Timeout at > /usr/share/perl5/MIME/Lite.pm line 2634 > Failed to connect to mail server: Bad file descriptor > at /home/jstrauss/bin/email.pl line 27 > > I feel its probably not connecting properly, but I don't see what to > do. > Thanks > Jay > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at heyjay.com Sat Dec 13 09:03:52 2008 From: me at heyjay.com (Jay Strauss) Date: Sat, 13 Dec 2008 11:03:52 -0600 Subject: [Chicago-talk] Sending an email via gmail using MIME::Lite In-Reply-To: <694802E1-C756-4AF7-A579-635D251FE12D@drakeconsult.com> References: <694802E1-C756-4AF7-A579-635D251FE12D@drakeconsult.com> Message-ID: I upgraded my software and am not getting the same error as you. MIME::Lite::SMTP=GLOB(0x83f7658)<<< 530 5.7.0 Must issue a STARTTLS command first. f6sm9933684nfh.29 SMTP mail() command failed: 5.7.0 Must issue a STARTTLS command first. f6sm9933684nfh.29 Which I believe means I'm not using SSL to connect. Anyone know how I get Net::SMTP to use the Net::SMTP::SSL module for the connection? Thanks Jay From don at drakeconsult.com Sat Dec 13 09:14:50 2008 From: don at drakeconsult.com (Don Drake) Date: Sat, 13 Dec 2008 11:14:50 -0600 Subject: [Chicago-talk] Sending an email via gmail using MIME::Lite In-Reply-To: References: <694802E1-C756-4AF7-A579-635D251FE12D@drakeconsult.com> Message-ID: TLS doesn't appear to be part of MIME::Lite, but check out this: http://plagger.org/trac/browser/trunk/plagger/lib/Plagger/Plugin/Publish/Gmail.pm Look near the end for # hack MIME::Lite to support TLS Authentication -Don -- Don Drake www.drakeconsulting.com www.maillaunder.com 312-560-1574 800-733-2143 On Dec 13, 2008, at 11:03 AM, Jay Strauss wrote: > I upgraded my software and am not getting the same error as you. > > MIME::Lite::SMTP=GLOB(0x83f7658)<<< 530 5.7.0 Must issue a STARTTLS > command first. f6sm9933684nfh.29 > SMTP mail() command failed: > 5.7.0 Must issue a STARTTLS command first. f6sm9933684nfh.29 > > Which I believe means I'm not using SSL to connect. > > Anyone know how I get Net::SMTP to use the Net::SMTP::SSL module for > the connection? > > Thanks > Jay > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From me at heyjay.com Sat Dec 13 10:40:04 2008 From: me at heyjay.com (Jay Strauss) Date: Sat, 13 Dec 2008 12:40:04 -0600 Subject: [Chicago-talk] Sending an email via gmail using MIME::Lite In-Reply-To: References: <694802E1-C756-4AF7-A579-635D251FE12D@drakeconsult.com> Message-ID: > I upgraded my software and am not getting the same error as you. > > MIME::Lite::SMTP=GLOB(0x83f7658)<<< 530 5.7.0 Must issue a STARTTLS > command first. f6sm9933684nfh.29 > SMTP mail() command failed: > 5.7.0 Must issue a STARTTLS command first. f6sm9933684nfh.29 OOPs correction, I am NOW gettting the same error. From me at heyjay.com Sat Dec 13 18:08:20 2008 From: me at heyjay.com (Jay Strauss) Date: Sat, 13 Dec 2008 20:08:20 -0600 Subject: [Chicago-talk] Sending an email via gmail using MIME::Lite In-Reply-To: References: <694802E1-C756-4AF7-A579-635D251FE12D@drakeconsult.com> Message-ID: Seems like I should be able to override MIME::Lite to use Net::SMTP::SSL On Sat, Dec 13, 2008 at 12:40 PM, Jay Strauss wrote: >> I upgraded my software and am not getting the same error as you. >> >> MIME::Lite::SMTP=GLOB(0x83f7658)<<< 530 5.7.0 Must issue a STARTTLS >> command first. f6sm9933684nfh.29 >> SMTP mail() command failed: >> 5.7.0 Must issue a STARTTLS command first. f6sm9933684nfh.29 > > OOPs correction, I am NOW gettting the same error. > From lee at laylward.com Mon Dec 22 11:42:38 2008 From: lee at laylward.com (Lee Aylward) Date: Mon, 22 Dec 2008 13:42:38 -0600 Subject: [Chicago-talk] Chart off 2009? Message-ID: <20081222194238.GB17210@prettybrd.com> I just started a new project that requires some charting, and remembered that at the last meeting we talked about having a "chart-off". Is there still interest in doing that? I think it could be interesting if we give out sample data to everyone who wants to be involved. Then we could collect all the submissions for the meeting and compare the code and design. I would be happy to put the slides together if there is enough interest. Does anyone have any suggestions for sample data? Maybe the Perl Survey results from last year? -- Lee Aylward -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digital signature URL: From brian.d.foy at gmail.com Mon Dec 22 14:09:36 2008 From: brian.d.foy at gmail.com (brian d foy) Date: Mon, 22 Dec 2008 14:09:36 -0800 Subject: [Chicago-talk] Chart off 2009? In-Reply-To: <20081222194238.GB17210@prettybrd.com> References: <20081222194238.GB17210@prettybrd.com> Message-ID: <2715accf0812221409x619eed74tc5c9e2321911c5c6@mail.gmail.com> On Mon, Dec 22, 2008 at 11:42 AM, Lee Aylward wrote: > I just started a new project that requires some charting, and remembered > that at the last meeting we talked about having a "chart-off". > > Is there still interest in doing that? I'm interested in at least seeing that, and maybe even doing some charts in GD::Graph. That sounds like the topic for the January meeting now. :) -- brian d foy http://www.pair.com/~comdog/ From lembark at wrkhors.com Mon Dec 22 15:30:19 2008 From: lembark at wrkhors.com (Steven Lembark) Date: Mon, 22 Dec 2008 18:30:19 -0500 Subject: [Chicago-talk] Chart off 2009? In-Reply-To: <2715accf0812221409x619eed74tc5c9e2321911c5c6@mail.gmail.com> References: <20081222194238.GB17210@prettybrd.com> <2715accf0812221409x619eed74tc5c9e2321911c5c6@mail.gmail.com> Message-ID: <4950230B.8010605@wrkhors.com> > On Mon, Dec 22, 2008 at 11:42 AM, Lee Aylward wrote: >> I just started a new project that requires some charting, and remembered >> that at the last meeting we talked about having a "chart-off". >> >> Is there still interest in doing that? > > I'm interested in at least seeing that, and maybe even doing some > charts in GD::Graph. That sounds like the topic for the January > meeting now. :) If it's interesting, I'm in the process of ripping Bio::Graphics out of BioPerl and turning it into its own package. It has a really nice interface for graph/chart output. enjoi -- Steven Lembark 85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 lembark at wrkhors.com +1 888 359 3508 From lee at laylward.com Mon Dec 22 15:48:22 2008 From: lee at laylward.com (Lee Aylward) Date: Mon, 22 Dec 2008 17:48:22 -0600 Subject: [Chicago-talk] Chart off 2009? In-Reply-To: <49500BAC.5020403@alanmead.org> References: <20081222194238.GB17210@prettybrd.com> <49500BAC.5020403@alanmead.org> Message-ID: <20081222234822.GC17210@prettybrd.com> On Mon, Dec 22, 2008 at 03:50:36PM -0600, Alan Mead wrote: > Lee, > > What kind of charts (and in what format) are you interested in producing? I've > done some work on producing bar graphs using GD and I'd be interested in > helping if I can. > > -Alan > I am not entirely sure what the best type of chart is going to be. I am comparing weekly sales numbers between two years. Right now I am using Chart::Clicker to build bar graphs, using two bars for each week. It looks like there is some interest in doing a Chart-off, so I'll look around for a good set of sample data. -- Lee -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: Digital signature URL: From ccf3 at mindspring.com Mon Dec 22 21:46:50 2008 From: ccf3 at mindspring.com (Clyde Forrester) Date: Mon, 22 Dec 2008 23:46:50 -0600 Subject: [Chicago-talk] Chart off 2009? In-Reply-To: <20081222194238.GB17210@prettybrd.com> References: <20081222194238.GB17210@prettybrd.com> Message-ID: <49507B4A.6020703@mindspring.com> Lee Aylward wrote: > I just started a new project that requires some charting, and remembered > that at the last meeting we talked about having a "chart-off". > > Is there still interest in doing that? I think it could be interesting > if we give out sample data to everyone who wants to be involved. Then > we could collect all the submissions for the meeting and compare > the code and design. > > I would be happy to put the slides together if there is enough interest. > Does anyone have any suggestions for sample data? Maybe the Perl Survey > results from last year? > I plan to contact Baker's Square and see if they'll provide some data for a good pie chart. Yes. Really. Clyde -- My cell phone is so low end, it's rotary dial. From joshua.mcadams at gmail.com Wed Dec 24 19:06:35 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Wed, 24 Dec 2008 21:06:35 -0600 Subject: [Chicago-talk] Fwd: [Buffalo-pm] Larry Wall at Google Chicago In-Reply-To: <200812241055.36876.phil@turboschedule.com> References: <200812241055.36876.phil@turboschedule.com> Message-ID: <49d805d70812241906g43e06a5ata20c1ceece1a16fb@mail.gmail.com> For those of us who were at YAPC, here is Larry's talk at Google this year... http://www.youtube.com/watch?v=JzIWdJVP-wo ---------- Forwarded message ---------- From: phil Date: Wed, Dec 24, 2008 at 9:55 AM Subject: [Buffalo-pm] Larry Wall at Google Chicago To: Buffalo Perl Mongers Larry was in Chicago this past summer for YAPC and gave a talk about Perl6 at Google's Chicago office. You can see it at YouTube using the link below: http://www.youtube.com/watch?v=JzIWdJVP-wo Also, I've discovered Google Tech Talks (search YouTube for this) which has a whole raft of Computer Science talks some of which are very interesting. Merry Christmas . _______________________________________________ Buffalo Perl Mongers Homepage http://buffalo.pm.org Buffalo-pm mailing list Buffalo-pm at pm.org http://mail.pm.org/mailman/listinfo/buffalo-pm From joshua.mcadams at gmail.com Wed Dec 24 19:11:06 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Wed, 24 Dec 2008 21:11:06 -0600 Subject: [Chicago-talk] Chart off 2009? In-Reply-To: <20081222234822.GC17210@prettybrd.com> References: <20081222194238.GB17210@prettybrd.com> <49500BAC.5020403@alanmead.org> <20081222234822.GC17210@prettybrd.com> Message-ID: <49d805d70812241911m7bd0ff6che8b55b98f3565107@mail.gmail.com> I'll do some Chart::OFC work and add it to the Chart-off. On Mon, Dec 22, 2008 at 5:48 PM, Lee Aylward wrote: > On Mon, Dec 22, 2008 at 03:50:36PM -0600, Alan Mead wrote: >> Lee, >> >> What kind of charts (and in what format) are you interested in producing? I've >> done some work on producing bar graphs using GD and I'd be interested in >> helping if I can. >> >> -Alan >> > > I am not entirely sure what the best type of chart is going to be. I am > comparing weekly sales numbers between two years. Right now I am using > Chart::Clicker to build bar graphs, using two bars for each week. > > It looks like there is some interest in doing a Chart-off, so I'll look > around for a good set of sample data. > > -- > Lee > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iEYEARECAAYFAklQJ0YACgkQornF2yojAAd9fwCeIwXiQAchIn0JFmdb0dkKz8uA > tzIAn2l4d+KkjB7k5It8swY+GzjwLO5a > =mD4J > -----END PGP SIGNATURE----- > > _______________________________________________ > Chicago-talk mailing list > Chicago-talk at pm.org > http://mail.pm.org/mailman/listinfo/chicago-talk > From brian.d.foy at gmail.com Thu Dec 25 11:42:37 2008 From: brian.d.foy at gmail.com (brian d foy) Date: Thu, 25 Dec 2008 11:42:37 -0800 Subject: [Chicago-talk] Chart off 2009? In-Reply-To: <49d805d70812241911m7bd0ff6che8b55b98f3565107@mail.gmail.com> References: <20081222194238.GB17210@prettybrd.com> <49500BAC.5020403@alanmead.org> <20081222234822.GC17210@prettybrd.com> <49d805d70812241911m7bd0ff6che8b55b98f3565107@mail.gmail.com> Message-ID: <2715accf0812251142g7c052012m3d901923dfd90d63@mail.gmail.com> On Wed, Dec 24, 2008 at 7:11 PM, Joshua McAdams wrote: > I'll do some Chart::OFC work and add it to the Chart-off. Does anyone want to suggest a common data set? It would be nice to work on different things, but also have a cetegory where we are all plotting exactly the same thing (same domain with same data) so we can put them side by side for direct comparison. :) -- brian d foy http://www.pair.com/~comdog/ From amead2 at alanmead.org Thu Dec 25 12:12:46 2008 From: amead2 at alanmead.org (Alan Mead) Date: Thu, 25 Dec 2008 14:12:46 -0600 Subject: [Chicago-talk] Chart off 2009? In-Reply-To: <2715accf0812251142g7c052012m3d901923dfd90d63@mail.gmail.com> References: <20081222194238.GB17210@prettybrd.com> <49500BAC.5020403@alanmead.org> <20081222234822.GC17210@prettybrd.com> <49d805d70812241911m7bd0ff6che8b55b98f3565107@mail.gmail.com> <2715accf0812251142g7c052012m3d901923dfd90d63@mail.gmail.com> Message-ID: <4953E93E.1010802@alanmead.org> brian d foy wrote: > Does anyone want to suggest a common data set? It would be nice to > work on different things, but also have a cetegory where we are all > plotting exactly the same thing (same domain with same data) so we can > put them side by side for direct comparison. :) > We are free to use the below data. I have additional items and other psychological data sets, if there is interest in these sorts of data. http://erlab.psyc.iit.edu/alan/data/ -Alan -- Alan D. Mead, Ph.D. Assistant Professor, Institute of Psychology Scientific Adviser, Center for Research and Service Illinois Institute of Technology 3101 South Dearborn, 2nd floor Chicago IL 60616 Skype: alandmead +312.567.5933 (Campus) +815.588.3846 (Home Office) +312.567.3493 (Fax) http://www.iit.edu/~mead http://www.center.iit.edu http://www.alanmead.org Be not afraid of life. Believe that life is worth living, and your belief will help create the fact. -- Henry James From joshua.mcadams at gmail.com Wed Dec 31 08:31:43 2008 From: joshua.mcadams at gmail.com (Joshua McAdams) Date: Wed, 31 Dec 2008 10:31:43 -0600 Subject: [Chicago-talk] January Meeting Message-ID: <49d805d70812310831i617e6c17n171044f01db642ff@mail.gmail.com> Let's kick off the new year right and start holding regular meetings again. I'll reserve some space at Google for January 27th, so mark your calendars! There have been a few topics of discussion thrown around including a "Chart-Off" and an update on Andrew's FRDCSA update. Anyone else got something that they'd like to talk about or hear a talk about? Once we nail down a few topics, I'll post an announcement on the chicago.pm.org site. BTW, the site might go down for a little while today... I'm moving it to a new sever.