Skip to content

Found a bug in your code. #3

@hshamir

Description

@hshamir

In the AppConfigurations.cs file

  1. _domainForApiKey should be _fromName

[ public string FromName
{
get
{
if (!String.IsNullOrEmpty(_fromName))
return _fromName;
else
{

                NameValueCollection appSettings =
                   ConfigurationManager.AppSettings;

                # **_domainForApiKey** = appSettings["FromName"];
                return _fromName;
            }
        }
        set
        {
            _fromName = value;
        }
    }

]

  1. _domainForApiKey should be _fromEmail

public string FromEmail
{
get
{
if (!String.IsNullOrEmpty(_fromEmail))
return _fromEmail;
else
{

                NameValueCollection appSettings =
                   ConfigurationManager.AppSettings;

                _domainForApiKey = appSettings["FromEmail"];
                return _fromEmail;
            }
        }
        set
        {
            _fromEmail = value;
        }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions