Email Senders and Recipients
by, 04-25-2012 at 09:31 PM (829 Views)
Recipient and sender of email addresses are presented in JavaMail, by InternetAddress class instances. Email addresses are taken by the constructor as a string, & AddressException are raised when there is no resemblance b/w valid email address and address. Personal name is provided as a string, for 2nd parameter.
Sender address could be set by calling setForm() method, at MimeMessage object. Sender address has these given types:
- Registered administrationís address, for application.
- Userís address for current request in which Google account has been signed in. Email address of current user can be determined with Users API. Account shall be Gmail account or present at that domain who is management is done by Google Apps.
- Email address that is valid for reception for the app.