Skip to content

Templating issue with Mail library - config documentation? #31

@Budsy

Description

@Budsy

When using the template processing of the SendTemplatedEmailAsync() method, I get errors:

InvalidOperationException: Sequence contains no elements
System.Linq.Enumerable.First(IEnumerable source)

        await emailSender.SendTemplatedEmailAsync("mykey", context, user);

System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

I appears that the system is not finding the templates. I probably have my config wrong or something. My issues has more to do with a need to have a clearer documentation of the configuration needed. The samples seem to have a few different arrangements of configuration elements in the .json files. Also, the libraries should throw meaningful exception messages if possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions