Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David Christiansen 13 posts 163 karma points
    May 14, 2019 @ 15:11
    David Christiansen
    0

    Looking for library.SendMail in V8

    As title says In v7 it was possible to use library.Sendmail() from a surface controller. Where is that moved after library became obsolete?

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    May 15, 2019 @ 06:49
    Richard Soeteman
    100

    Hi David,

    Having a look at the source it gives 2 opions (I think)

    1. Add IEmailSender to the constructor of your controller so it gets injected. This allows you to send a MailMessage Async which is used for sending security related messages
    2. Just use the standard .net SMTP Client. The notificationservice is also using this https://docs.microsoft.com/en-us/dotnet/api/system.net.mail.smtpclient.-ctor?view=netframework-4.8

    Hope this helps,

    Richard

  • David Christiansen 13 posts 163 karma points
    May 22, 2019 @ 13:01
    David Christiansen
    0

    Thanks for the reply, it works, bit still puzzled why they removed it

Please Sign in or register to post replies

Write your reply to:

Draft