Skip to content

SMTP Mail CreateMessage Method overload #5628

@FSchneiderYav

Description

@FSchneiderYav

Hello,

i want to use the function
procedure CreateMessage(FromName: Text; FromAddress: Text; Recipients: List of [Text]; Subject: Text; Body: Text; HtmlFormatted: Boolean)
but if I call the function with this parameters

lcuSMTPMail.CreateMessage(
  "Sender Name",
  "Sender Mail",
  RecipientMailAddrList,
  MailSubject,
  BodyText,
  true);

The compiler get's an Error and thinks, that I want to use function
procedure CreateMessage(FromName: Text; FromAddress: Text; Recipient: Text; Subject: Text; Body: Text; HtmlFormatted: Boolean)
So the compiler shows me the error "Argument 3: cannot convert from 'List of [Text]' to 'Text' AL(AL0133)

5. Versions:

  • AL Language: 4.0.206840
  • Business Central: DE Business Central 15.2 (Platform 15.0.38951.0 + Application 15.2.39040.0)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions