in reply to Re: Sending email from a Vista machine with ActiveState PPM modules
in thread Sending email from a Vista machine with ActiveState PPM modules

With the Mail::WebMail::Gmail from a non-ActiveState PPM, how do I install this (with all the various dependencies) on a Windows machine

You first add the necessary repositories to your ppm repository list. The 3 reps listed at randyk's webpage will probably suffice. Looking at ppm help, I think this means that you run the following three commands:
ppm repo add http://www.bribes.org/perl/ppm ppm repo add http://trouchelle.com/ppm10/ ppm repo add http://cpan.uwinnipeg.ca/PPMPackages/10xx/
That done, it should then just be a matter of running:
ppm install Mail-WebMail-Gmail
Cheers,
Rob

Replies are listed 'Best First'.
Re^3: Sending email from a Vista machine with ActiveState PPM modules
by drblove27 (Sexton) on Apr 11, 2008 at 14:43 UTC
    Thank you for your advice! But I have an error, I am running this code (from the authors site)

    use strict; use Crypt::SSLeay; use HTTP::Cookies; use HTTP::Headers; use HTTP::Request::Common; use LWP::UserAgent; use Mail::Webmail::Gmail; my ( $gmail ) = Mail::Webmail::Gmail->new(username => 'secret', passwo +rd => 'also_secret' ); ### Test Sending Message #### my $msgid = $gmail->send_message( to => 'blah@yahoo.com', subject => t +ime(), msgbody => 'Test' ); print "Msgid: $msgid\n"; if ( $msgid ) { if ( $gmail->error() ) { print $gmail->error_msg(); } else { ### Create new label ### my $test_label = "tl_" . time(); $gmail->edit_labels( label => $test_label, action => 'create' +); if ( $gmail->error() ) { print $gmail->error_msg(); } else { ### Add this label to our new message ### $gmail->edit_labels( label => $test_label, action => 'add' +, 'msgid' => $msgid ); if ( $gmail->error() ) { print $gmail->error_msg(); } else { print "Added label: $test_label to message $msgid\n"; } } } }
    I then get the following error:

    Use of uninitialized value $host in concatenation (.) or string at C:/ +Perl/lib/LWP/Protocol/http.pm line 25. Use of uninitialized value $page in pattern match (m//) at C:/Perl/sit +e/lib/Mail/Webmail/Gmail.pm line 1425. Msgid: Use of uninitialized value $msgid in concatenation (.) or string at E: +\Bioreka\gmail\test.pl line 12.
    I found this here: http://rt.cpan.org/Public/Bug/Display.html?id=21094

    I did this:

    https://www.google.com/accounts/UnlockCaptcha?

    And no luck.... any thoughts?