JvMail (JEDI) component not sending mail

前端 未结 2 401
醉话见心
醉话见心 2021-01-24 17:40

JvMail component is not functioning right or I am messing something up.

procedure TForm1.RzURLLabel1Click(Sender: TObject);
begin
if cxLookUpComboBox1.Text =\'\         


        
相关标签:
2条回答
  • 2021-01-24 18:06

    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');

    0 讨论(0)
  • 2021-01-24 18:06

    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.

    0 讨论(0)
提交回复
热议问题