I know this is not the right place for such question but anyway...I'm trying to retrieve(POP3, not IMAP) messages from Gmail account, well it works but the problem is that i'm receiving the sent messages also, not only the received messages. What's the best way to check whether an email message is sent message? I think i can do that by checking the "from" header because it contains the email of the sender, correct me if i'm wrong. And does only Gmail(sending sent messages) do that or other mail service providers do that also?

The "From" header contains the alleged email of the sender, yes.

Be a part of the DaniWeb community

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