473,324 Members | 2,535 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,324 software developers and data experts.

Receiving Mail

Hi,

I am doing receive mail,I can receive date,from and subject.
can I receive to,cc,bcc and content.
I need urgently,plz help me.


Thanks in advance.
Dec 18 '07 #1
3 1205
Dököll
2,364 Expert 2GB
Hi,

I am doing receive mail,I can receive date,from and subject.
can I receive to,cc,bcc and content.
I need urgently,plz help me.


Thanks in advance.
Hello, sruthini!

Can you post what you have thus far?

In a bit!
Dec 19 '07 #2
Hi,
I post my code here
[code=java]

Properties props = new Properties();

Session session = Session.getInstance(props, null);
Store store = session.getStore("pop3");
store.connect(host, username, password);
Folder folder = store.getFolder("INBOX");
folder.open(Folder.READ_ONLY);
Message message[] = folder.getMessages();
System.out.println();
for (int i=0, n=message.length; i<n; i++)
{
date = message[i].getSentDate();
From = message[i].getFrom();
Subject=message[i].getSubject();
f=From[i].toString();
d=date.toString();
}
System.out.println(d);
System.out.println(f);
System.out.println(Subject);
//message[i].getFilesize()
folder.close(false);
store.close();
}
[code]

Here I can get form,subject and date.how can I get To,Cc and content.
Dec 19 '07 #3
Hi,

I need urgently,plz anybody help me....

thanks in advance.
Dec 21 '07 #4

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

Similar topics

0
by: BigSizeXXL | last post by:
hi, i'm new to python and have a couple of questions about working with smtp. i read that you need a pop3 service for receiving mails. i want to create my own (private) mail service. i'm using a...
1
by: Sajsal | last post by:
Hi all I am developing a web app in which the client wants an email sending and receiving functionality. Is it possible in C#. If yes where should I start. If anyone could tell that how long...
1
by: Jigar Mehta | last post by:
Hye friends!!! Jigar Mehta from India. Currently making one program in VC++ like outlook express that sends and receives mails from the server (pop3, and smtp server only)... I can not find...
2
by: mamatha | last post by:
Hi, I want to send Email in VB to mutiple users through SMTP and receiving emails thruegh IMAP.How can i built.If any one knows the source code or URL please let me know Mamatha
5
by: sophocles the wise | last post by:
I am researching this topic without a satisfactory solution so far. Please let me know which is the easiest way to receive email using VB code. All I need is to test source address or subject line...
1
by: Alex C. Barberi | last post by:
I have this code to get the messages from a mail server, but whenever I try to connect it gives me the error "Cast from string " " to type 'Double' is not valid." Why is it doing this? Here is a...
5
by: smahaboob | last post by:
Hi good morning to all, iam creating email application in asp.net, When iam executing my application it is executing but iam not able receive mails. My mails are...
1
by: markus1313 | last post by:
Dead simple question. I've setup a Windows XP box to run RT (Request Tracker). Part of the tool's functionality is to send and receive e-mails. Can I use the SMTP functionality that comes with IIS to...
13
by: davjoh | last post by:
The following describes the problem I am having. Can anyone help? $send_to = "davjoh123@yahoo.com"; $send_to = "production@advisiongraphics.com"; $send_to =...
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...
0
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...
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: 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: 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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shćllîpôpď 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.