I'm new to this group. I joined because it seemed like a place I
might be able to learn more about google and gmail access.
I would like to do some scripting (prefer PHP) that reads a gmail
message, optionally adds the sender to my contacts, send an email back
to the sender (from the gmail name/mailbox I'm working with at the
time), and again - optionally - mark that email as 'read'... all from
the one script, if possible.
I'm sure that none of this is rocket science, but I'm having a tough
time finding any real 'tutorial' or 'example' on it.
If you were going to approach this, what would you do?
Thanks - appreciate your guidance of a lost newbie.
not to be a smart ass but i would do the as as you. ask. this group has some very smart individuals in it when it comes to gmail.
--- On Fri, 1/9/09, garymarbach <garymarb...@gmail.com> wrote:
From: garymarbach <garymarb...@gmail.com>
Subject: [GMusers] Hi. Some Rocket Science...
To: "GMusers- GMail Beta & Beyond" <GMusers@googlegroups.com>
Date: Friday, January 9, 2009, 6:31 AM
I'm new to this group. I joined because it seemed like a place I
might be able to learn more about google and gmail access.
I would like to do some scripting (prefer PHP) that reads a gmail
message, optionally adds the sender to my contacts, send an email back
to the sender (from the gmail name/mailbox I'm working with at the
time), and again - optionally - mark that email as 'read'... all from
the one script, if possible.
I'm sure that none of this is rocket science, but I'm having a tough
time finding any real 'tutorial' or 'example' on it.
If you were going to approach this, what would you do?
Thanks - appreciate your guidance of a lost newbie.
> not to be a smart ass but i would do the as as you. ask. this group
> has some very smart individuals in it when it comes to gmail.
> --- On *Fri, 1/9/09, garymarbach <garymarb...@gmail.com>* wrote:
> From: garymarbach <garymarb...@gmail.com>
> Subject: [GMusers] Hi. Some Rocket Science...
> To: "GMusers- GMail Beta & Beyond" <GMusers@googlegroups.com>
> Date: Friday, January 9, 2009, 6:31 AM
> I'm new to this group. I joined because it seemed like a place I
> might be able to learn more about google and gmail access.
> I would like to do some scripting (prefer PHP) that reads a gmail
> message, optionally adds the sender to my contacts, send an email back
> to the sender (from the gmail
> name/mailbox I'm working with at the
> time), and again - optionally - mark that email as 'read'... all from
> the one script, if possible.
> I'm sure that none of this is rocket science, but I'm having a tough
> time finding any real 'tutorial' or 'example' on it.
> If you were going to approach this, what would you do?
> Thanks - appreciate your guidance of a lost newbie.
Marilyn - I've read your post a couple of times and don't understand
it - sorry. Mine is a question about doing something pretty straight
forward - its just that I haven't found a tutorial for it. I didn't
imply anything about others knowledge levels at all - and would not do
that.
garymarbach wrote:
> I'm new to this group. I joined because it seemed like a place I
> might be able to learn more about google and gmail access.
> I would like to do some scripting (prefer PHP) that reads a gmail
> message, optionally adds the sender to my contacts, send an email back
> to the sender (from the gmail name/mailbox I'm working with at the
> time), and again - optionally - mark that email as 'read'... all from
> the one script, if possible.
> I'm sure that none of this is rocket science, but I'm having a tough
> time finding any real 'tutorial' or 'example' on it.
> If you were going to approach this, what would you do?
> Thanks - appreciate your guidance of a lost newbie.
On Fri, Jan 9, 2009 at 9:31 AM, garymarbach <garymarb...@gmail.com> wrote: > I would like to do some scripting (prefer PHP) that reads a gmail > message, optionally adds the sender to my contacts, send an email back > to the sender (from the gmail name/mailbox I'm working with at the > time), and again - optionally - mark that email as 'read'... all from > the one script, if possible.
You should be able to do everything you want to do simply by enabling IMAP in Gmail then accessing it using the standard POP IMAP library. You should be able to find tutorials for using the standard library fairly easily and you can figure out what to give
Adding a sender to your contacts list probably can't be done through IMAP, for that you will need a web automation library.
I still limit my use of PHP to web-based projects.
That siad, WWW::Mechanize for perl and the same named library for ruby both work very well for this purpose. Python also has an excellent web automation library as well.
I believe there is a similar package for PHP.
If you are familiar with perl or ruby or python you will probably find this project will be much easier to complete using one of them instead of PHP :).
Look at the IMAP libraries available for PHP; that is the easiest way to programatically manipulate a Gmail mailbox you own. I have done this kind of work using ruby as the programming language and it was relatively easy.
If you search Google :p for
Gmail and IMAP and PHP
I bet you will find tutorials or blog posts (I found blog posts) that helped me out.
If not Gmail specific tutorials, there are many PHP tutorials on programmatic control of IMAP I am sure :).
If PHP fails you, try ruby or perl, both have well done IMAP libraries.
i dont believe they have ever created a tutorial. at least one that i have ever heard about..
--- On Sun, 1/11/09, garymarbach <garymarb...@gmail.com> wrote:
From: garymarbach <garymarb...@gmail.com>
Subject: [GMusers] Re: Hi. Some Rocket Science...
To: "GMusers- GMail Beta & Beyond" <GMusers@googlegroups.com>
Date: Sunday, January 11, 2009, 6:51 AM
Marilyn - I've read your post a couple of times and don't understand
it - sorry. Mine is a question about doing something pretty straight
forward - its just that I haven't found a tutorial for it. I didn't
imply anything about others knowledge levels at all - and would not do
that.
garymarbach wrote:
> I'm new to this group. I joined because it seemed like a place I
> might be able to learn more about google and gmail access.
> I would like to do some scripting (prefer PHP) that reads a gmail
> message, optionally adds the sender to my contacts, send an email back
> to the sender (from the gmail name/mailbox I'm working with at the
> time), and again - optionally - mark that email as 'read'... all
from
> the one script, if possible.
> I'm sure that none of this is rocket science, but I'm having a
tough
> time finding any real 'tutorial' or 'example' on it.
> If you were going to approach this, what would you do?
> Thanks - appreciate your guidance of a lost newbie.
Godaddy has told me that I can't have IMAP access via my website.
I have seen cases where they supply some access and their customer
service folks simply don't know what is available and what is not
available .... but I haven't learned yet how to tell if I really can
access IMAP stuff from my site. I should probably test that. So, if
anyone knows a simple test to do to see if IMAP is accessible from my
site (preferable a PHP oriented test), please let me know.
That said, I'm hoping that PERL, Ruby, or Python approaches can do
what I need to do without requiring IMAP... What do you think? Is
that possible?
If IMAP is the ONLY way to achieve this stuff, I guess I will need to
get another host...
Thank you all for the great assistance!
Gary
On Jan 9, 6:31 am, garymarbach <garymarb...@gmail.com> wrote:
> I'm new to this group. I joined because it seemed like a place I
> might be able to learn more about google and gmail access.
> I would like to do some scripting (prefer PHP) that reads a gmail
> message, optionally adds the sender to my contacts, send an email back
> to the sender (from the gmail name/mailbox I'm working with at the
> time), and again - optionally - mark that email as 'read'... all from
> the one script, if possible.
> I'm sure that none of this is rocket science, but I'm having a tough
> time finding any real 'tutorial' or 'example' on it.
> If you were going to approach this, what would you do?
> Thanks - appreciate your guidance of a lost newbie.