I'm up to Chapter 13 of the book, and everything has worked fine up to date.
I am trying to get the first email example to work and I keep getting an error on the AirEmail_send(msg:recipients) line:
DSPLY javax.mail.MessagingException: Unknown SMTP host: sm
DSPLY TransportSend Error
I’m a novice when it comes to networks, but managed to get some assistance from our network people who gave me the url of the SMPT server that we need to use. I was able to ping this URL from our iSeries and got the 5 out 5 responses successfully.
I changed this line in AIR13_01 to include my email address:
msg = AirEmail_newMessage('xxxx.xxxxxxxxxxxx@xxx.com.au'
:'password'
: 'exch-smtp2.xxxxx.xxxx');
I had a look at the SVAIREMAIL code and saw that I could either pass it in or set the svDefaultHost value to the 'exch-smtp2.xxxxx.xxxx' value.
Obviously I have crossed out the real characters.
Is there anything obviously wrong, or are there some suggestions as to what other avenues I might be able to pursue?
Thanks.
I am trying to get the first email example to work and I keep getting an error on the AirEmail_send(msg:recipients) line:
DSPLY javax.mail.MessagingException: Unknown SMTP host: sm
DSPLY TransportSend Error
I’m a novice when it comes to networks, but managed to get some assistance from our network people who gave me the url of the SMPT server that we need to use. I was able to ping this URL from our iSeries and got the 5 out 5 responses successfully.
I changed this line in AIR13_01 to include my email address:
msg = AirEmail_newMessage('xxxx.xxxxxxxxxxxx@xxx.com.au'
:'password'
: 'exch-smtp2.xxxxx.xxxx');
I had a look at the SVAIREMAIL code and saw that I could either pass it in or set the svDefaultHost value to the 'exch-smtp2.xxxxx.xxxx' value.
Obviously I have crossed out the real characters.
Is there anything obviously wrong, or are there some suggestions as to what other avenues I might be able to pursue?
Thanks.
Comment