This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
hi. im using javamail for the smtp server i specified our smtp server. when sending emails in the same organization javamail works fine. but when i specify an address on a different domain a SendingFailedException is displayed. i read that the problem is the setting of SMTP server. but when i use outlook to send an email on a different domain using the same SMTP server, i am able to send the email. thanks
Many SMTP servers do not allow relaying of messages to other servers. IE... you are registered with ISP1 and while using their dialup can access their SMTP and send to whoever. If you dialup on ISP2 and try to send a message to an ISP2 address through ISP1's SMTP (through Outlook Express) you will most likely get an error. This gives you some options, Get another SMTP server that allows relays (There is a list on this board somewhere), or Write directly to the relevand SMTP. IE... if you are sending to ISP1, use ISP1's SMTP, if its for ISP2, use ISP2's SMTP (This is a pain, so the first option is best)