Is there any tool that extract below from gmail and save in to csv.

Name of Person
to: Email id
cc: Email id
Time stamp - DD/MM/YYYY
URL's in the email

Recommended Answers

All 3 Replies

Is there is any tool..as i have less knowledge of php

I'm sorry, I don't know if there is a tool that can do exactly this, search on Google, maybe you can find something that exports the messages to XML and then from there you can create your CSV files.

An alternative is to check their Data API:

By accessing the feed:

GET https://mail.google.com/mail/feed/atom/

You can get the unread messages in XML format, it looks like this:

    <title>Subject of the Email</title>
    <summary>First line of the email message...</summary>
    <link rel="alternate" href="http://mail.google.com/mail?account_id=yourmail@gmail.tld&amp;message_id=random_alnum&amp;view=conv&amp;extsrc=atom" type="text/html" />
        <name>Sender Name</name>

From the feed you can get some of the needed information, but you still do not get the full message body, so if you want to extract links from there you need an IMAP or POP access and a parser, as suggested in my previous post.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.