E-mails landing in junk folder! FROM address not getting validated!
843834Dec 9 2008 — edited Dec 14 2008Hi,
I am designing an application which is going to send emails to a group of people in my office every month. I have been given a dedicated SMTP server for that.
The java code which I have written is sending mails to its recipients but the problem is that they are landing in their junk folder.
One thing I have found out is, the java code is not validating the FROM address. i.e even If I enter an invalid email id, It is being sent. The worst part is if I use a valid email id, it is not being recognized as a legitimate one.
The FROM address in the mail is literally a "String" in which u can put anything! (Eg. The emails are being sent if I put the FROM address as "1234567"!! )
One of the option is to make that mail as "not Junk" in the outlook. But I cant ask everyone to change their filter settings.
Is there any way in which the java code can first authenticate whether the FROM address is existing and then send the email if it is valid. (I am not talking about the SMTP authentication!)
I browsed a lot but couldn't find the answer for this. Please help me with this.
Regards,
harsha_t