Skip to content

Commit a2a9b23

Browse files
author
SendGrid's DX Team
authored
Merge pull request #877 from sendgrid/twilio
Twilio example and branding update
2 parents 57acb4d + 4b6ede6 commit a2a9b23

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+377
-301
lines changed

.github/PULL_REQUEST_TEMPLATE

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<!--
22
We appreciate the effort for this pull request but before that please make sure you read the contribution guidelines given above, then fill out the blanks below.
33

4+
**All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.**
45

56
Please enter each Issue number you are resolving in your PR after one of the following words [Fixes, Closes, Resolves]. This will auto-link these issues and close them when this PR is merged!
67
e.g.
@@ -10,6 +11,7 @@ Closes #2
1011
# Fixes #
1112

1213
### Checklist
14+
- [ ] I acknowledge that all my contributions will be made under the project's license
1315
- [ ] I have made a material change to the repo (functionality, testing, spelling, grammar)
1416
- [ ] I have read the [Contribution Guide] and my PR follows them.
1517
- [ ] I updated my branch with the development branch.
@@ -21,4 +23,4 @@ Closes #2
2123
-
2224
-
2325

24-
If you have questions, please send an email to [Sendgrid](mailto:[email protected]), or file a Github Issue in this repository.
26+
If you have questions, please send an email to [Twilio Sendgrid](mailto:[email protected]), or file a Github Issue in this repository.

CODE_OF_CONDUCT.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
# SendGrid Community Code of Conduct
1+
# Twilio SendGrid Community Code of Conduct
22

3-
The SendGrid open source community is made up of members from around the globe with a diverse set of skills, personalities, and experiences. It is through these differences that our community experiences successes and continued growth. When you're working with members of the community, we encourage you to follow these guidelines, which help steer our interactions and strive to maintain a positive, successful and growing community.
3+
The Twilio SendGrid open source community is made up of members from around the globe with a diverse set of skills, personalities, and experiences. It is through these differences that our community experiences successes and continued growth. When you're working with members of the community, we encourage you to follow these guidelines, which help steer our interactions and strive to maintain a positive, successful and growing community.
44

55
### Be Open
66
Members of the community are open to collaboration, whether it's on pull requests, code reviews, approvals, issues or otherwise. We're receptive to constructive comments and criticism, as the experiences and skill sets of all members contribute to the whole of our efforts. We're accepting of all who wish to take part in our activities, fostering an environment where anyone can participate, and everyone can make a difference.
77

88
### Be Considerate
9-
Members of the community are considerate of their peers, which include other contributors and users of SendGrid. We're thoughtful when addressing the efforts of others, keeping in mind that often the labor was completed with the intent of the good of the community. We're attentive in our communications, whether in person or online, and we're tactful when approaching differing views.
9+
Members of the community are considerate of their peers, which include other contributors and users of Twilio SendGrid. We're thoughtful when addressing the efforts of others, keeping in mind that often the labor was completed with the intent of the good of the community. We're attentive in our communications, whether in person or online, and we're tactful when approaching differing views.
1010

1111
### Be Respectful
12-
Members of the community are respectful. We're respectful of others, their positions, their skills, their commitments and their efforts. We're respectful of the volunteer efforts that permeate the SendGrid community. We're respectful of the processes outlined in the community, and we work within them. When we disagree, we are courteous in raising our issues. Overall, we're good to each other. We contribute to this community not because we have to, but because we want to. If we remember that, these guidelines will come naturally.
12+
Members of the community are respectful. We're respectful of others, their positions, their skills, their commitments and their efforts. We're respectful of the volunteer efforts that permeate the Twilio SendGrid community. We're respectful of the processes outlined in the community, and we work within them. When we disagree, we are courteous in raising our issues. Overall, we're good to each other. We contribute to this community not because we have to, but because we want to. If we remember that, these guidelines will come naturally.
1313

1414
## Additional Guidance
1515

1616
### Disclose Potential Conflicts of Interest
1717
Community discussions often involve interested parties. We expect participants to be aware when they are conflicted due to employment or other projects they are involved in and disclose those interests to other project members. When in doubt, over-disclose. Perceived conflicts of interest are important to address so that the community’s decisions are credible even when unpopular, difficult or favorable to the interests of one group over another.
1818

1919
### Interpretation
20-
This Code is not exhaustive or complete. It is not a rulebook; it serves to distill our common understanding of a collaborative, shared environment and goals. We expect it to be followed in spirit as much as in the letter. When in doubt, try to abide by [SendGrid’s cultural values](https://sendgrid.com/blog/employee-engagement-the-4h-way) defined by our “4H’s”: Happy, Hungry, Humble and Honest.
20+
This Code is not exhaustive or complete. It is not a rulebook; it serves to distill our common understanding of a collaborative, shared environment and goals. We expect it to be followed in spirit as much as in the letter. When in doubt, try to abide by [Twilio SendGrid’s cultural values](https://sendgrid.com/blog/employee-engagement-the-4h-way) defined by our “4H’s”: Happy, Hungry, Humble and Honest.
2121

2222
### Enforcement
23-
Most members of the SendGrid community always comply with this Code, not because of the existence of this Code, but because they have long experience participating in open source communities where the conduct described above is normal and expected. However, failure to observe this Code may be grounds for suspension, reporting the user for abuse or changing permissions for outside contributors.
23+
Most members of the Twilio SendGrid community always comply with this Code, not because of the existence of this Code, but because they have long experience participating in open source communities where the conduct described above is normal and expected. However, failure to observe this Code may be grounds for suspension, reporting the user for abuse or changing permissions for outside contributors.
2424

2525
## If you have concerns about someone’s conduct
2626
**Initiate Direct Contact** - It is always appropriate to email a community member (if contact information is available), mention that you think their behavior was out of line, and (if necessary) point them to this Code.
2727

2828
**Discuss Publicly** - Discussing publicly is always acceptable. Note, though, that approaching the person directly may be better, as it tends to make them less defensive, and it respects the time of other community members, so you probably want to try direct contact first.
2929

30-
**Contact the Moderators** - You can reach the SendGrid moderators by emailing [email protected].
30+
**Contact the Moderators** - You can reach the Twilio SendGrid moderators by emailing [email protected].
3131

32-
## Submission to SendGrid Repositories
33-
Finally, just a reminder, changes to the SendGrid repositories will only be accepted upon completion of the [SendGrid Contributor Agreement](https://cla.sendgrid.com).
32+
## Submission to Twilio SendGrid Repositories
33+
Finally, just a reminder, changes to the Twilio SendGrid repositories will only be accepted upon completion of the [Twilio SendGrid Contributor Agreement](https://cla.sendgrid.com).
3434

3535
## Attribution
3636

37-
SendGrid thanks the following, on which it draws for content and inspiration:
37+
Twilio SendGrid thanks the following, on which it draws for content and inspiration:
3838

3939
* [Python Community Code of Conduct](https://www.python.org/psf/codeofconduct/)
4040
* [Open Source Initiative General Code of Conduct](https://opensource.org/codeofconduct)

CONTRIBUTING.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
Hello! Thank you for choosing to help contribute to one of the SendGrid open source libraries. There are many ways you can contribute and help is always welcome. We simply ask that you follow the following contribution policies.
1+
Hello! Thank you for choosing to help contribute to one of the Twilio SendGrid open source libraries. There are many ways you can contribute and help is always welcome. We simply ask that you follow the following contribution policies.
2+
3+
All third party contributors acknowledge that any contributions they provide will be made under the same open source license that the open source project is provided under.
24

3-
- [CLAs and CCLAs](#cla)
45
- [Roadmap & Milestones](#roadmap)
56
- [Feature Request](#feature-request)
67
- [Submit a Bug Report](#submit-a-bug-report)
@@ -14,17 +15,6 @@ Hello! Thank you for choosing to help contribute to one of the SendGrid open sou
1415
<a name="roadmap"></a>
1516
We use [GitHub Projects](https://github.com/sendgrid/sendgrid-csharp/projects) to help define current roadmaps, please feel free to grab an issue from our [GitHub Issues](https://github.com/sendgrid/sendgrid-csharp/issues). Please indicate that you have begun work on it to avoid collisions. Once a PR is made, community review, comments, suggestions and additional PRs are welcomed and encouraged.
1617

17-
<a name="cla"></a>
18-
## CLAs and CCLAs
19-
20-
Before you get started, SendGrid requires that a SendGrid Contributor License Agreement (CLA) be filled out by every contributor to a SendGrid open source project.
21-
22-
Our goal with the CLA is to clarify the rights of our contributors and reduce other risks arising from inappropriate contributions. The CLA also clarifies the rights SendGrid holds in each contribution and helps to avoid misunderstandings over what rights each contributor is required to grant to SendGrid when making a contribution. In this way the CLA encourages broad participation by our open source community and helps us build strong open source projects, free from any individual contributor withholding or revoking rights to any contribution.
23-
24-
SendGrid does not merge a pull request made against a SendGrid open source project until that pull request is associated with a signed CLA. Copies of the CLA are available [here](https://gist.github.com/SendGridDX/98b42c0a5d500058357b80278fde3be8#file-sendgrid_cla).
25-
26-
When you create a Pull Request, after a few seconds, a comment will appear with a link to the CLA. Click the link and fill out the brief form and then click the "I agree" button and you are all set. You will not be asked to re-sign the CLA unless we make a change.
27-
2818
There are a few ways to contribute, which we'll enumerate below:
2919

3020
<a name="feature-request"></a>
@@ -80,7 +70,7 @@ git clone https://github.com/sendgrid/sendgrid-csharp.git
8070

8171
### Environment Variables
8272

83-
First, get your free SendGrid account [here](https://sendgrid.com/free?source=sendgrid-csharp).
73+
First, get your free Twilio SendGrid account [here](https://sendgrid.com/free?source=sendgrid-csharp).
8474

8575
Next, update your Environment with your [SENDGRID_APIKEY](https://app.sendgrid.com/settings/api_keys).
8676

@@ -107,7 +97,7 @@ A working .NET 4.5.2 example project for testing.
10797

10898
**[/src/SendGrid/SendGridClient.cs](https://github.com/sendgrid/sendgrid-csharp/blob/master/src/SendGrid/SendGridClient.cs)**
10999

110-
The main interface to the SendGrid API is the class `SendGridClient`.
100+
The main interface to the Twilio SendGrid API is the class `SendGridClient`.
111101

112102
**[/tests/SendGrid.Tests/Integration.cs](https://github.com/sendgrid/sendgrid-csharp/blob/master/tests/SendGrid.Tests/Integration.cs)**
113103

ExampleCoreProject/Example.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static async Task Execute()
2323

2424
// Send a Single Email using the Mail Helper
2525
var from = new EmailAddress("[email protected]", "Example User");
26-
var subject = "Hello World from the SendGrid CSharp Library Helper!";
26+
var subject = "Hello World from the Twilio SendGrid CSharp Library Helper!";
2727
var to = new EmailAddress("[email protected]", "Example User");
2828
var plainTextContent = "Hello, Email from the helper [SendSingleEmailAsync]!";
2929
var htmlContent = "<strong>Hello, Email from the helper! [SendSingleEmailAsync]</strong>";
@@ -40,7 +40,7 @@ static async Task Execute()
4040
msg = new SendGridMessage()
4141
{
4242
From = new EmailAddress("[email protected]", "Example User"),
43-
Subject = "Hello World from the SendGrid CSharp Library Helper!",
43+
Subject = "Hello World from the Twilio SendGrid CSharp Library Helper!",
4444
PlainTextContent = "Hello, Email from the helper [SendSingleEmailAsync]!",
4545
HtmlContent = "<strong>Hello, Email from the helper! [SendSingleEmailAsync]</strong>"
4646
};
@@ -56,7 +56,7 @@ static async Task Execute()
5656
// Send a Single Email using the Mail Helper, entirely with convenience methods
5757
msg = new SendGridMessage();
5858
msg.SetFrom(new EmailAddress("[email protected]", "Example User"));
59-
msg.SetSubject("Hello World from the SendGrid CSharp Library Helper!");
59+
msg.SetSubject("Hello World from the Twilio SendGrid CSharp Library Helper!");
6060
msg.AddContent(MimeType.Text, "Hello, Email from the helper [SendSingleEmailAsync]!");
6161
msg.AddContent(MimeType.Html, "<strong>Hello, Email from the helper! [SendSingleEmailAsync]</strong>");
6262
msg.AddTo(new EmailAddress("[email protected]", "Example User"));
@@ -77,7 +77,7 @@ static async Task Execute()
7777
'email': '[email protected]'
7878
}
7979
],
80-
'subject': 'Hello World from the SendGrid C# Library!'
80+
'subject': 'Hello World from the TWilio SendGrid C# Library!'
8181
}
8282
],
8383
'from': {

ExampleCoreProject/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
// set of attributes. Change these attribute values to modify the information
66
// associated with an assembly.
77
[assembly: AssemblyConfiguration("Release")]
8-
[assembly: AssemblyCompany("SendGrid")]
8+
[assembly: AssemblyCompany("Twilio SendGrid")]
99
[assembly: AssemblyProduct("Example")]
10-
[assembly: AssemblyTrademark("SendGrid")]
10+
[assembly: AssemblyTrademark("Twilio SendGrid")]
1111

1212
// Setting ComVisible to false makes the types in this assembly not visible
1313
// to COM components. If you need to access a type in this assembly from

ExampleNet45ASPNetProject/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
**The SendGrid C# .NET library provide an easy way to send emails. This example application shows how to integrate with an ASP.NET application.**
1+
**The Twilio SendGrid C# .NET library provide an easy way to send emails. This example application shows how to integrate with an ASP.NET application.**
22

33
# Installation
44

ExampleNet45ASPNetProject/SendGrid.ASPWebFormsSamples/Services/SendGridService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ public SendGridService()
1414
// Retrieve the API key from an appSettings variable from the web.config
1515
var apiKey = ConfigurationManager.AppSettings["SendGrid_API_Key"];
1616

17-
// Initialize the SendGrid client
17+
// Initialize the Twilio SendGrid client
1818
_client = new SendGridClient(apiKey);
1919
}
2020

2121
public async Task<Response> Send(EmailMessageInfo messageInfo)
2222
{
23-
// Prepare the SendGrid email message
23+
// Prepare the Twilio SendGrid email message
2424
var sendgridMessage = new SendGridMessage
2525
{
2626
From = new EmailAddress(messageInfo.FromEmailAddress),
@@ -45,10 +45,10 @@ public async Task<Response> Send(EmailMessageInfo messageInfo)
4545
sendgridMessage.AddBcc(new EmailAddress(messageInfo.BccEmailAddress));
4646
}
4747

48-
// Send the message to SendGrid, and save the API response
48+
// Send the message to Twilio SendGrid, and save the API response
4949
var response = await _client.SendEmailAsync(sendgridMessage);
5050

51-
// Return the SendGrid response
51+
// Return the Twilio SendGrid response
5252
return response;
5353
}
5454
}

ExampleNet45Project/Example.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static async Task Execute()
2323

2424
// Send a Single Email using the Mail Helper
2525
var from = new EmailAddress("[email protected]", "Example User");
26-
var subject = "Hello World from the SendGrid CSharp Library Helper!";
26+
var subject = "Hello World from the Twilio SendGrid CSharp Library Helper!";
2727
var to = new EmailAddress("[email protected]", "Example User");
2828
var plainTextContent = "Hello, Email from the helper [SendSingleEmailAsync]!";
2929
var htmlContent = "<strong>Hello, Email from the helper! [SendSingleEmailAsync]</strong>";
@@ -40,7 +40,7 @@ static async Task Execute()
4040
msg = new SendGridMessage()
4141
{
4242
From = new EmailAddress("[email protected]", "Example User"),
43-
Subject = "Hello World from the SendGrid CSharp Library Helper!",
43+
Subject = "Hello World from the Twilio SendGrid CSharp Library Helper!",
4444
PlainTextContent = "Hello, Email from the helper [SendSingleEmailAsync]!",
4545
HtmlContent = "<strong>Hello, Email from the helper! [SendSingleEmailAsync]</strong>"
4646
};
@@ -56,7 +56,7 @@ static async Task Execute()
5656
// Send a Single Email using the Mail Helper, entirely with convenience methods
5757
msg = new SendGridMessage();
5858
msg.SetFrom(new EmailAddress("[email protected]", "Example User"));
59-
msg.SetSubject("Hello World from the SendGrid CSharp Library Helper!");
59+
msg.SetSubject("Hello World from the Twilio SendGrid CSharp Library Helper!");
6060
msg.AddContent(MimeType.Text, "Hello, Email from the helper [SendSingleEmailAsync]!");
6161
msg.AddContent(MimeType.Html, "<strong>Hello, Email from the helper! [SendSingleEmailAsync]</strong>");
6262
msg.AddTo(new EmailAddress("[email protected]", "Example User"));
@@ -77,7 +77,7 @@ static async Task Execute()
7777
'email': '[email protected]'
7878
}
7979
],
80-
'subject': 'Hello World from the SendGrid C# Library!'
80+
'subject': 'Hello World from the Twilio SendGrid C# Library!'
8181
}
8282
],
8383
'from': {

ExampleNet45Project/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
// set of attributes. Change these attribute values to modify the information
66
// associated with an assembly.
77
[assembly: AssemblyTitle("ExampleNet45")]
8-
[assembly: AssemblyDescription("An Example SendGrid .NET 4.5.2 project")]
8+
[assembly: AssemblyDescription("An Example Twilio SendGrid .NET 4.5.2 project")]
99
[assembly: AssemblyConfiguration("Release")]
10-
[assembly: AssemblyCompany("SendGrid")]
10+
[assembly: AssemblyCompany("Twilio SendGrid")]
1111
[assembly: AssemblyProduct("ExampleNet45")]
12-
[assembly: AssemblyTrademark("SendGrid")]
12+
[assembly: AssemblyTrademark("Twilio SendGrid")]
1313

1414
// Setting ComVisible to false makes the types in this assembly not visible
1515
// to COM components. If you need to access a type in this assembly from

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2012-2018 SendGrid, Inc.
3+
Copyright (c) 2012-2019 Twilio SendGrid, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)