‘Java_Mail’ Posts
Receive POP3 Emails using Java
Take a look at this example on how to read pop3 emails. But there are 3 parameters you need to prepare: your pop3 server, username and passowrd for that server. Pretty straight forward, not much to explain. All that is missing is the readContent() function which prints the message.getContent(). First you need to understand that [...]
Sending Email through GMail
In my last 2 posts I have shown you how to send SMTP email using Java. But I still haven’t shown how to send an Email through a secured SMTP server. To do so I’ll show you how to use GMail secured SMTP server to send Emails. Take a look at this class: The basic [...]
Send a multipart SMTP email message with java
In my last post I have shown how to send a simple SMTP email message. This is good only for simple text messages, no HTML or attachments. In this post I’ll show how to send multipart email messages, which can include HTML code, attachments and inner images. First, take a look at this example from [...]
Send a simple SMTP email message with java
The next code will show you the simplest way to send an email in java. The only thing you need is an email address and the smtp host address of your email supplier. This code can only send a simple formatted text, without HTML or attachments. In the future I will show how to do [...]