同步操作将从 githubsync/vertx-examples 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Here you’ll find some examples how to use Vert.x mail-service to send mails to a SMTP server either from the local machine or via the event bus on another machine.
By default these example starts a "fake" mails server (just logging on the console):
LocalSmtpServer.start(2526);
If you want to use a different SMTP server, just remove this line and configure the options.
The examples use a few different configs
Just send a mail without authentication.
Send a mail to an external smtp server (e.g. googlemail, sendgrid, aol etc) requiring a login.
The login will currently use DIGEST-MD5, CRAM-MD5, PLAIN and LOGIN in order of
preference. If the server announces AUTH but you don’t need it (e.g. if you are
authenticated by a local ip address) turn login off with LoginOption.DISABLE
.
To specifically select an AUTH method or define the order of preference, you
can do setAuthMethods("METHOD1 METHOD2")
.
Send a mail with supplied headers (e.g. Received, Message-ID, Reply-To)
This example shows how you can send headers in a mail.
This example shows how to send inlined images in mails.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。