Writing java programmes gives you the ability to send emails. Three things are required to send emails using Java: The JavaMail API is a programme that allows you to send and receive Activation Framework for Java (JAF)