diff options
Diffstat (limited to 'SendGrid/SendGridMail/SendGrid.cs')
-rw-r--r-- | SendGrid/SendGridMail/SendGrid.cs | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/SendGrid/SendGridMail/SendGrid.cs b/SendGrid/SendGridMail/SendGrid.cs index 6ce6c81..fe6a99b 100644 --- a/SendGrid/SendGridMail/SendGrid.cs +++ b/SendGrid/SendGridMail/SendGrid.cs @@ -40,13 +40,11 @@ namespace SendGrid Headers = new Dictionary<string, string>();
}
- public SendGridMessage(MailAddress from, MailAddress[] to, MailAddress[] cc, MailAddress[] bcc,
- String subject, String html, String text, IHeader header = null) : this(header)
+ public SendGridMessage(MailAddress from, MailAddress[] to,
+ String subject, String html, String text, IHeader header = null) : this()
{
From = from;
To = to;
- Cc = cc;
- Bcc = bcc;
_message.Subject = subject;
@@ -108,32 +106,6 @@ namespace SendGrid }
}
- public MailAddress[] Cc
- {
- get { return _message.CC.ToArray(); }
- set
- {
- _message.CC.Clear();
- foreach (var mailAddress in value)
- {
- _message.CC.Add(mailAddress);
- }
- }
- }
-
- public MailAddress[] Bcc
- {
- get { return _message.Bcc.ToArray(); }
- set
- {
- _message.Bcc.Clear();
- foreach (var mailAddress in value)
- {
- _message.Bcc.Add(mailAddress);
- }
- }
- }
-
public String Subject
{
get { return _message.Subject; }
|