JvMail (JEDI) component not sending mail

喜你入骨 提交于 2019-12-02 08:22:06
Sir Rufo

The documentation is clear to that

Notes:

The format of an address specified by parameter Address is [address type][e-mail address]. Examples of valid addresses are FAX:206-555-1212 and SMTP:M@X.COM.

Description:

The following code adds a recipient to the Recipient list: JvMail1.Recipient.AddRecipient('SMTP:someone@somedomain.com', 'Some one');

I don't provide any other solution or awesome in depth explanation on why you need to add smtp, so feel free to downvote this answer. :)

You already have a workaround, so instead I'll give some real world advice on how to fix this:

  1. Just prepend the damn smtp: via code if that's what it takes
  2. Write a TODO comment that says you need to figure out what's going on here
  3. Move on to your next task

Of course, unless sending email is really at the core of your application, or if you really have nothing better to do.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!