Forums Register Login

Sending mails from same domain

+Pie Number of slices to send: Send
I am using Java mail API to send emails. I have installed SMTP server on my system.
So in Java class, I am setting the property "mail.smtp.host" as "127.0..0.1".

The email id to which I am sending emails is "abc@tes.com". In the "from" field the email id being set is "user@gmail.com". The emails are send perfectly fine.
to="abc@tes.com"
from= "user@gmail.com"

Now I changed the from email address to "user@tes.com" (the domain for "to" and "from" is the same). Now the emails have stopped going. In other words, whenever I change the domain of "from" address to be different from the domain of "to" address the emails go fine. As soon as I give the same domain ("tes" in this case) for both "to" and "from" email address the emails stop going. Can someone please let me know why this problem? Is this a SMTP restriction or Java mail restriction?

Thank you
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1070 times.
Similar Threads
Email Address Validation
Email Host Configuration Problem
JavaMail w/ Tomat problem
JavaMail w/ Tomat problem
javamail and smtp
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:22:24.