Send email with or without attachment using java mail.