473,320 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

gmail

how to access to gmail with user and password ,i write something but it not work

Expand|Select|Wrap|Line Numbers
  1. #!/usr/bin/perl
  2.  
  3. use CGI;
  4. use LWP::UserAgent;
  5. use strict;
  6.  
  7.   print "Content-type: text/html\n\n";
  8.  
  9.   # Create a new user agent for HTTP request
  10.   my $ua = LWP::UserAgent->new( );
  11.  
  12.  my $URL = 'https://www.google.com/accounts/ServiceLoginAuth?service=mail'
  13.  
  14.  # Create HTTP request object
  15.   my $req =  HTTP::Request->new( POST => $URL);
  16.  
  17.  # Authenticate the user
  18.   $req->authorization_basic( $user, $pass);
  19.  
  20.  
Nov 6 '08 #1
1 1595
numberwhun
3,509 Expert Mod 2GB
What are you trying to do, send emails? Have you tried this module from CPAN?
Nov 6 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Sam Huang | last post by:
http://gmail.google.com/gmail/-a-7224721828-b4ee8b62be-bb23aa-3bf5 http://gmail.google.com/gmail/-a-7224721828-90a6e663c0-91e95d-08ee...
4
by: delraydog | last post by:
If you've used the Google Gmail spell checker you know that it 'changes' the text area to another type of control that lets them show hyperlinks for the incorrect words. How does Google change the...
21
by: thomson | last post by:
Hi folks, Does any one have any idea which platform does GMAIL works, whether its JSP, ASPX or any other Regards thomson
7
by: julian_m | last post by:
Is there any way to set up the php.ini file, in order to be able to use gmail to send mails from a local machine? I've tryied with SMTP = smtp.gmail.com smtp_port = 25 but I can't figure...
1
by: ClickList | last post by:
Hello Friends I'm using the follow code in my website to send/receive e-mails: SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587); smtp.DeliveryMethod = SmtpDeliveryMethod.Network;...
4
by: MMAS | last post by:
I've got my .net application set up to use gmail as a mail server (see code below). Everything works quite well, actually, EXCEPT for one particular email account. I've created an "admin" account...
4
by: cybervigilante | last post by:
I sent HTML formatted email, using PHP, to my Yahoo address from my server, and it came out fine, styles and all. I sent it to my gmail address to test it and all I see is the raw html code. But I...
4
by: gregpinero | last post by:
I'm trying to get a list of messages from GMAIL using it's new IMAP access. So far I've tried running this command but it just hangs. Any ideas? I figured that's the first line to run from...
6
by: henryrhenryr | last post by:
Hi I'm really hoping for some ideas! I have been setting up phpmailer on my server and it was working nicely on my local server so I uploaded to my live server and tested. The mystery is that...
9
by: mmm | last post by:
After reading about and using the smtplib module, I thought code such as below would ignore the 'Cc: ' body line below when sending messages and instead simply use the RECEIVERS list session =...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.