This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Send mail from local machine mail server to gmail or other mail server in java

 
R K Sharma
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Mercury Server Log



Server Debug Output




But, I'm not receiving any mails. Anyone help me to resolve this issue.
 
Paul Clapham
Sheriff
Pie
Posts: 20196
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably you aren't receiving any e-mails from that code because your e-mail server (the one you sent the e-mails to) doesn't trust your program's e-mail server (the one you're sending the e-mails from). Your server will be doing something like examining the from-address on the e-mail and seeing if it came from the actual server for the from-address's domain. If it didn't, then it considers the e-mail to be a forgery.

And since the from-address is "test1@localhost", it's pretty clearly a forgery. You need to do two things: use a from-address which belongs to a domain, and send the e-mail from that domain's e-mail server.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic