0

以下是我的代码:

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

但我没有任何用户或任何东西可以登录。

4

1 回答 1

0

通过添加 xyz Sender 以及 smtp 代替 smtps 来修复它:

from("file:input?noop=true")
                .log(LoggingLevel.INFO, "Read from the input file")
                .setHeader("to", simple("fz@digga.com"))
                .setHeader("from", simple("support@digga.com"))
                .to("smtp://scan.buzu.com")
于 2020-02-19T06:11:20.913 回答