The LANSA Email Setup on IBM i task includes the following steps.
Step 1. Configure TCP/IP
Step 2. Configure Simple Mail Transfer Protocol (SMTP)
Step 3. Setup the Mail Server Framework (MSF)
Step 4. Set System Value QUTCOFFSET
Step 5. Test your Configuration
You may also wish to review the 5.1 Sample LANSA Email Function.