javamail in spring sending mail with empty from address to yahoo and gmail
i am using org.springframework.mail.javamail.JavaMailSender; for mail sending,
it send emails fine to outlook and hotmail, but send email with empty from addresss in yahoo and gmail, any idea why???
Re: javamail in spring sending mail with empty from address to yahoo and gmail
Some email servers does not allow to send emails with empty address. It is security rules. You must to full there fields every time.
Re: javamail in spring sending mail with empty from address to yahoo and gmail
thanks for reply, yes, as I said it sending correct emails to outlook and hotmail, mean its showing the from email correctly. the problem is only for hotmail and gmail.
Re: javamail in spring sending mail with empty from address to yahoo and gmail
Do you have a problem like this smtp;551 This is not a relay host?
Re: javamail in spring sending mail with empty from address to yahoo and gmail
no,i actually dot not get any message, the mail just delivers successfully but when it reaches to gmail or yahoo, its empty in case of yahoo and (unknown sender) in case of gmail.
Re: javamail in spring sending mail with empty from address to yahoo and gmail
hi,
can i know are you configuring any parameter for from address and i will appretiated if you can tell me whether your from address mail is a local server or gmail, yahoo server mail.