C# Class SendGrid.Helpers.Mail.Mail

Class Mail builds an object that sends an email through SendGrid.
Exibir arquivo Open project: sendgrid/sendgrid-csharp Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddAttachment ( Attachment attachment ) : void
AddCategory ( string category ) : void
AddContent ( Content content ) : void
AddCustomArgs ( string key, string value ) : void
AddHeader ( string key, string value ) : void
AddPersonalization ( Personalization personalization ) : void
AddSection ( string key, string value ) : void
Get ( ) : string
Mail ( ) : Newtonsoft.Json
Mail ( Email from, string subject, Email to, Content content ) : Newtonsoft.Json

Method Details

AddAttachment() public method

public AddAttachment ( Attachment attachment ) : void
attachment Attachment
return void

AddCategory() public method

public AddCategory ( string category ) : void
category string
return void

AddContent() public method

public AddContent ( Content content ) : void
content Content
return void

AddCustomArgs() public method

public AddCustomArgs ( string key, string value ) : void
key string
value string
return void

AddHeader() public method

public AddHeader ( string key, string value ) : void
key string
value string
return void

AddPersonalization() public method

public AddPersonalization ( Personalization personalization ) : void
personalization Personalization
return void

AddSection() public method

public AddSection ( string key, string value ) : void
key string
value string
return void

Get() public method

public Get ( ) : string
return string

Mail() public method

public Mail ( ) : Newtonsoft.Json
return Newtonsoft.Json

Mail() public method

public Mail ( Email from, string subject, Email to, Content content ) : Newtonsoft.Json
from Email
subject string
to Email
content Content
return Newtonsoft.Json