Tuesday, June 28, 2011

SMTP email testing

 To run local integration test, install apache james mail server.
 1. Start the server by [james]\bin\run.bat
 2. Map the email host to you smtp server if required in hosts file
 3. Run the test and check [james]\apps\james\var\mail\outgoing for emails sent out

 To add a user in james :
  1. telnet localhost 4555
  2. login as root/root
  3. adduser [name] [pass]
Also refer : james-2.3.2\apps\james\SAR-INF\config.xml for default user/pass
Code to read email link

Simples



No comments: