Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Sending a simple email using Email::Send::Gmail

by Krambambuli (Deacon)
on Oct 25, 2008 at 17:08 UTC ( #719521=note: print w/ replies, xml ) Need Help??


in reply to Sending a simple email using Email::Send::Gmail

Instead of

username => 'magic_monitoring@gmail.com',
try to use just
username => 'magic_monitoring',
I was able to reproduce the problem on my WS, and the problem went away when I changed my credentials not to contain @gmail.com.


Krambambuli
---


Comment on Re: Sending a simple email using Email::Send::Gmail
Select or Download Code
Replies are listed 'Best First'.
Re^2: Sending a simple email using Email::Send::Gmail
by diffredential (Beadle) on Oct 25, 2008 at 19:33 UTC
    Thanks for answering! I've changed username => 'diffredential', but the same error appears after running it:
    diffred@fredlab:~/pathscripts$ ./sendemail.pl Net::SMTP::SSL>>> Net::SMTP::SSL(1.01) Net::SMTP::SSL>>> IO::Socket::SSL(1.17) Net::SMTP::SSL>>> IO::Socket::INET(1.29) Net::SMTP::SSL>>> IO::Socket(1.29) Net::SMTP::SSL>>> IO::Handle(1.25) Net::SMTP::SSL>>> Exporter(5.58) Net::SMTP::SSL>>> Net::Cmd(2.29) Net::SMTP::SSL=GLOB(0x8580dd0)<<< 220 mx.google.com ESMTP g11sm3962449 +gve.8 Net::SMTP::SSL=GLOB(0x8580dd0)>>> EHLO localhost.localdomain Net::SMTP::SSL=GLOB(0x8580dd0)<<< 250-mx.google.com at your service, [ +80.32.103.182] Net::SMTP::SSL=GLOB(0x8580dd0)<<< 250-SIZE 35651584 Net::SMTP::SSL=GLOB(0x8580dd0)<<< 250-8BITMIME Net::SMTP::SSL=GLOB(0x8580dd0)<<< 250-AUTH LOGIN PLAIN Net::SMTP::SSL=GLOB(0x8580dd0)<<< 250 ENHANCEDSTATUSCODES Error sending email: Email::Send::Gmail: error authenticating username + diffredential at /usr/local/share/perl/5.8.8/Email/Send.pm line 243 at ./sendemail.pl line 29 diffred@fredlab:~/pathscripts$
    Any other ideas? :(
      When installing IO::Socket::SSL, I had to also install Net::SSLeay and while I did that I was warned that

      *** Found OpenSSL-0.9.8b installed in /usr                                              
      *** Be sure to use the same compiler and options to compile your OpenSSL, perl,         
          and Net::SSLeay. Mixing and matching compilers is not supported.                    
      

      Is it possible that the modules you have installed don't play well together ?


      Krambambuli
      ---
        Thanks for answering! I don't have Net::SSLeay installed, and when trying to install it (sudo cpan Net::SSLeay) don't install it properly:
        diffred@fredlab:~$ sudo cpan Net::SSLeay ... ... ... SSLeay.c:811: error: declaration for parameter ‘XS_Net__SSLeay_CTX_tls +v1_new’ but no such parameter SSLeay.c:793: error: declaration for parameter ‘XS_Net__SSLeay_CTX_v23 +_new’ but no such parameter SSLeay.c:775: error: declaration for parameter ‘XS_Net__SSLeay_CTX_v3_ +new’ but no such parameter SSLeay.c:757: error: declaration for parameter ‘XS_Net__SSLeay_CTX_v2_ +new’ but no such parameter SSLeay.c:739: error: declaration for parameter ‘XS_Net__SSLeay_CTX_new +’ but no such parameter SSLeay.c:719: error: declaration for parameter ‘XS_Net__SSLeay_hello’ +but no such parameter SSLeay.c:701: error: declaration for parameter ‘XS_Net__SSLeay_constan +t’ but no such parameter SSLeay.xs:354: error: declaration for parameter ‘ssleay_ctx_cert_verif +y_cbs’ but no such parameter SSLeay.xs:204: error: declaration for parameter ‘ssleay_RSA_generate_k +ey_cb_t’ but no such parameter SSLeay.xs:203: error: declaration for parameter ‘ssleay_session_secret +_cb_t’ but no such parameter SSLeay.xs:202: error: declaration for parameter ‘ssleay_ctx_cert_verif +y_cb_t’ but no such parameter SSLeay.xs:201: error: declaration for parameter ‘ssleay_ctx_passwd_cb_ +t’ but no such parameter SSLeay.xs:195: error: declaration for parameter ‘ssleay_ctx_passwd_cbs +’ but no such parameter SSLeay.xs:132: error: declaration for parameter ‘ssleay_ctx_verify_cal +lbacks’ but no such parameter SSLeay.xs:128: error: declaration for parameter ‘perl_filehandle_t’ bu +t no such parameter SSLeay.c:7029: error: expected ‘{’ at end of input make: *** [SSLeay.o] Error 1 FLORA/Net-SSLeay-1.35.tar.gz /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible diffred@fredlab:~$
        Any ideas how can I install this module? (Maybe I need it to run my gmail script?)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://719521]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2015-07-30 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls