All you need is your SMTP settings for your corporate account. Set these in your program using Java mail API and thats it. e.g.
Properties props = System.getProperties();
props.put("mail.smtp.host", "your server here");
Session session = Session.getDefaultInstance(props, null);
example: here and here