I am using IBM websphere commerce setup.
Here are the code details :
((JCAEmailConnection) this.getConnection())
.getManagedConnection().getTransport().sendMessage(
message, message.getAllRecipients());
I am sure that the code gets executed to this point. This line calls sendMessage function of com.sun.mail.smtp.SMTPTransport
getAllRecipients method is called from javax.mail.internet.MimeMessage
First scenario :
Mail is send successfully if there are some email addresses in the TO and BCC fields.
Wireshart snapshot 1
outcome: mail successfully sent.
Second scenario:
Mail is not successfully sent if there is nothing in the TO feild but only in BCC fields
Wireshart snapshot 2
outcome: mail not sent
According to this I was not able to send the email because without TO: RCPT command can not be sent.
So the question is why MAIL FROM: is not sent when there is no email address in the TO:? Atleast MAIL FROM: should have been sent.