# JettyPlus Mail Service Test

Before running this test, ensure that you have configured the Mail provider in your $JETTY_HOME/extra/etc/jettyplus.xml file as follows:

      <Call name="addService">
        <Arg>
          <New class="org.mortbay.jetty.plus.MailService">
            <Set name="Name">MailService</Set>
            <Set name="JNDI">mail/TestMail</Set>
            <!-- set up the id of the smtp user                 -->
            <Set name="User">XXX</Set>
            <!-- set up the password of the smtp user           -->
            <Set name="Password">XXX</Set>
            <!-- set up the hostname/ip addr of the smtp server -->
            <Put name="mail.smtp.host">XXX</Put>
            <!-- setup any javax.mail.smtp provider variables   -->
            <Put name="mail.pop3.user">zzz</Put>
            <Put name="mail.pop3.host">vvv</Put>
            <Put name="mail.from">me@me</Put>
            <Put name="mail.debug">false</Put>
          </New>
        </Arg>
      </Call>

Enter the email address of the recipient: |
Enter the email address of the sender: |