Mandrill-dotnet | .NET wrapper for Mandrill | REST library
kandi X-RAY | Mandrill-dotnet Summary
kandi X-RAY | Mandrill-dotnet Summary
Mandrill Dot Net is a library that wraps the Mandrill mail API to easily get started in sending mail. It contains methods that accepts requests that matches the structure of the Mandrill API docs. Required properties are accepted in the Request's constructor.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Mandrill-dotnet
Mandrill-dotnet Key Features
Mandrill-dotnet Examples and Code Snippets
Community Discussions
Trending Discussions on Mandrill-dotnet
QUESTION
I am implementing mandrill in .net application using this package (https://github.com/shawnmclean/Mandrill-dotnet) Now there is a model "EmailMessage" that is used to send an email. Inside of EmailMessage model there is a property "GlobalMergeVars":
...ANSWER
Answered 2019-Jan-23 at 06:49I'm sorry to be the bearer of bad news, but if there's no public setter you cannot directly set the value from outside the class. Other options would be through a constructor or a method that allows such. But it does not seem as if you have any such options available.
On a side note, just check if that property does not perhaps have a parent property that you can set as a whole. For example in C# when working with Fonts, to set the Font of a label for instance. Some of the Font object's properties are "read-only" and cannot be set externally. But the Font object itself can be set. So in such cases you have to create a new Font object locally and set the needed props and then assign/set that as the new Font.
Hope you find a work-around in time.
UPDATE:
Sir Rufo just gave you the solution:
The answer is: read at github.com/shawnmclean/Mandrill-dotnet/blob/master/src/Mandrill/… starting from line 376. That method is designed for your case
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Mandrill-dotnet
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page