0
我安裝了Griffon 1.2和郵件插件。Griffon 1.2 - 郵件插件不看郵件主機參數
griffon install-plugin mail
我創建了一個測試:
sendMail(mailhost: '192.168.0.19',
to: '[email protected]',
from: '[email protected]',
subject: 'Test Mail',
text:'''
Hello
World''')
但它不使用郵件主機PARAM。它會嘗試到本地主機使用:
javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25
我通過telnet命令驗證SMTP服務器和工作。