我通过我的vps:[email protected]用plesk创建了这个电子邮件地址。我知道这是有效的,因为它发送自动回复。我正在使用另一封电子邮件(即Gmail),并使用名为Play-Mailer的插件(使用play framework java 2.6)向客户端发送新闻通讯和发票。这适用于Gmail配置:
play.mailer {
host=smtp.gmail.com
port=465
ssl=true
tls=false
user=example-user
password=*****
debug=false
mock=false
}
当我尝试使用自己的电子邮件时:
play.mailer {
host=example.org /*i tried smtp.example.org also */
port=465
ssl=false
tls=false
user= campus
password=*****
debug=true
mock=false
}
每次我收到此错误:
Execution exception
[EmailException: Sending the email to the following server failed : example.org:465]
您正在使用的端口是465
,因此SSL应该是true
,邮件主机也应该是smtp.example.org
。
端口465与SMTP有关,SSL用于通信。