Problem using SMTPClient.jl

I’m struggling to get SMTPClient working because get_body and get_mime_msg are not defined. Same behaviour in REPL and ^F5 .

Apart from adding the package and the using SMTPClient line do I need to do anything else?

opt = SendOptions(
            isSSL = true,
            username = "[email protected]",
            passwd = "mypassword"
          )
          url = "smtp.office365.com:587"
          message = string("Text for body of email")
          subject = "the subject"
          to = ["<[email protected]>"]
          cc = ["<[email protected]>"]
          bcc = ["<[email protected]>"]
          from = "[email protected]"
          replyto = "[email protected]"
          attachments = [filename]
          
          mime_msg = get_mime_msg(message)
          
          body = get_body(to, from, subject, mime_msg; attachments)
          rcpt = vcat(to, cc, bcc)
          resp = send(url, rcpt, from, body, opt)

Windows10, VSCode 1.61.2, Julia 1.6.2

Thanks
Steve

I don’t know the reason for this, but a possible workaround is to dev the package.
See, https://github.com/aviks/SMTPClient.jl/issues/50

Thanks Rudi, issue resolved.