-
email client
I have downloaded java mail client program class files forım the page at this link Java Tips - How to create an e-mail client in Java . And I downloaded Javamail api. I compiled the files and run the program . I modified them to get connected to gmail and able to access its mails but the problem is i am unable to send mail through this. can you please tell me where is the problem.Thanks in advance.
-
Do you have a particular code snippet or/and an error message (stack trace!) or something else?
-
Have you configured SMTP?
You need to find out which one do you use,
when you created mail account your ISP gave you params for SMTP
that you have to put in your code (with or without username and password):
....
Code:
Properties props = System.getProperties();
/*smtp host: smtp.sbb.rs*/
props.put("mail.smtp.host","smtp.my_Internet_Service_provider.com");
Session session = Session.getDefaultInstance(props);
...
regards
-
dude i am also doing the same project ..an u pls mail me th e project.its very urgent...........and on which concept have u done the project..............my mail id is sniffer139@gmail.com
-
There are many examples on this forums for this topic
use Search