以下是我的代码:
from("file:input?noop=true")
.log(LoggingLevel.INFO, "Read from the input file")
.setHeader("to", simple("fz@digga.com"))
.to("smtps://scan.buzu.com")
在早期的 java 代码中,我们只提供 to(any xyz) 和 from(any xyz) 并且只托管 scan.buzu.com。我们没有提供其他参数,即没有用户名、密码或任何东西我不确定上述实现在骆驼中是否可以仅使用主机名来实现?
当我将它从 smtps 更改为 smptp 时,它说正在运行
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 504 5.5.2 <camel@localhost>: Sender address rejected: need fully-qualified address
但我没有任何用户或任何东西可以登录。