diff options
author | Tyler Bischel <tyler.bischel@sendgrid.com> | 2012-01-16 23:06:25 -0800 |
---|---|---|
committer | Tyler Bischel <tyler.bischel@sendgrid.com> | 2012-01-16 23:06:25 -0800 |
commit | 32bae16f1cdfd3ef1a2768b9a9a425aacdcbe186 (patch) | |
tree | 2c99849d5068709e5d2b05dfd5e6bd4c6d13ebaa /SendGrid/SendGridMail/Transport/SMTP.cs | |
parent | 9f24ab50b3e2658128d98bd006e1a65b305179a2 (diff) | |
parent | f5fd9054b23d5f8c4c915da36ad2eaa59f302918 (diff) | |
download | sendgrid-csharp-32bae16f1cdfd3ef1a2768b9a9a425aacdcbe186.zip sendgrid-csharp-32bae16f1cdfd3ef1a2768b9a9a425aacdcbe186.tar.gz sendgrid-csharp-32bae16f1cdfd3ef1a2768b9a9a425aacdcbe186.tar.bz2 |
merged and added some new tests
Diffstat (limited to 'SendGrid/SendGridMail/Transport/SMTP.cs')
-rwxr-xr-x | SendGrid/SendGridMail/Transport/SMTP.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/SendGrid/SendGridMail/Transport/SMTP.cs b/SendGrid/SendGridMail/Transport/SMTP.cs index 606afcd..a878ce8 100755 --- a/SendGrid/SendGridMail/Transport/SMTP.cs +++ b/SendGrid/SendGridMail/Transport/SMTP.cs @@ -72,7 +72,7 @@ namespace SendGridMail.Transport /// <param name="credentials">Sendgrid user credentials</param>
/// <param name="host">MTA recieving this message. By default, sent through SendGrid.</param>
/// <param name="port">SMTP port 25 is the default. Port 465 can be used for Secure SMTP.</param>
- public static SMTP GenerateInstance(NetworkCredential credentials, String host = SmtpServer, Int32 port = Port)
+ public static SMTP GetInstance(NetworkCredential credentials, String host = SmtpServer, Int32 port = Port)
{
var client = new SmtpWrapper(host, port, credentials, SmtpDeliveryMethod.Network);
return new SMTP(client, credentials, host, port);
@@ -86,7 +86,7 @@ namespace SendGridMail.Transport /// <param name="host"></param>
/// <param name="port"></param>
/// <returns></returns>
- internal static SMTP GenerateInstance(ISmtpClient client, NetworkCredential credentials, String host = SmtpServer, Int32 port = Port)
+ internal static SMTP GetInstance(ISmtpClient client, NetworkCredential credentials, String host = SmtpServer, Int32 port = Port)
{
return new SMTP(client, credentials, host, port);
}
|