Other Email Options

There are many other options you can use with Easy Email which are not included in their own example. However the following code snippets should help you get started!

Options

Set From Name

By default the from name of your email will be your email address but this can be changed to anything, such as your company name.

message.SetFromName("My Company");
            

Track Opens

Changing this value to false will turn off the tracking of whether your emails are opened.

message.SetTrackOpens(true);
            

Track Clicks

Changing this value to false will turn off the tracking of whether the links in your emails are clicked on.

message.SetTrackClicks(true);
            

Google Analytics Domains

You can add or remove Google Analytics Domains for your email.

message.AddGoogleAnalyticsDomain("google.com");
message.RemoveGoogleAnalyticsDomain("google.com");
            

Google Analytics Campaigns

With this option you can set a Google Analytics Campaign for your email.

message.SetGoogleAnalyticsCampaign("test");