-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(EmailMessage): change EmailMessage parameter to pointer in Email…
…Sender interface for efficiency.
- Loading branch information
1 parent
7e90948
commit b0252ff
Showing
37 changed files
with
155 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ if err != nil { | |
} | ||
|
||
// Define email message | ||
message := *gomail.NewEmailMessage(sender,[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage(sender,[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>"). | ||
AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ if err != nil { | |
} | ||
|
||
// Define email message using an alias email address | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,7 +83,7 @@ if err != nil { | |
} | ||
|
||
// Define email message using an alias email address | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -143,7 +143,7 @@ if err != nil { | |
} | ||
|
||
// Define email message using an alias email address | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,7 +84,7 @@ if err != nil { | |
} | ||
|
||
// Define email message using an alias email address | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,7 +77,7 @@ if err != nil { | |
} | ||
|
||
// Define email message using an alias email address | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ if err != nil { | |
} | ||
|
||
// Define email message | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ if err != nil { | |
} | ||
|
||
// Define email message | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ if err != nil { | |
} | ||
|
||
// Define email message | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ if err != nil { | |
} | ||
|
||
// Define email message | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ if err != nil { | |
} | ||
|
||
// Define email message | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ if err != nil { | |
} | ||
|
||
// Define email message | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,7 @@ if err != nil { | |
} | ||
|
||
// Define email message | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ if err != nil { | |
} | ||
|
||
// Define email message | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ if err != nil { | |
} | ||
|
||
// Define email message | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ if err != nil { | |
} | ||
|
||
// Define email message | ||
message := *gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
message := gomail.NewEmailMessage("[email protected]",[]string{"[email protected]"}, "Test Email with attachment", "This is the plain text part of the email."). | ||
SetHTML("<p>This is the <b>HTML</b> part of the <i>email</i>.</p>").AddAttachments(gomail.Attachment{ | ||
Filename: "attachment.jpg", Content: attachmentContent, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,11 @@ type MockTokenManager struct { | |
err error | ||
} | ||
|
||
// TestEmailSenderImplementation checks if gmailMessageSenderWrapper implements the EmailSender interface | ||
func TestEmailSenderImplementation(t *testing.T) { | ||
var _ gomail.EmailSender = (*gmailMessageSenderWrapper)(nil) | ||
} | ||
|
||
func (m *MockTokenManager) GetToken() ([]byte, error) { | ||
return m.token, m.err | ||
} | ||
|
@@ -100,15 +105,15 @@ func (m *mockInvalidTokenManager) GetToken() ([]byte, error) { | |
func TestSendEmailWithMockService(t *testing.T) { | ||
emailSender := buildMockGmailMessageSenderWrapper(nil) | ||
|
||
message := *gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email.") | ||
message := gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email.") | ||
|
||
err := emailSender.SendEmail(message) | ||
assert.NoError(t, err) | ||
} | ||
|
||
func TestSendEmailWithSendMessageError(t *testing.T) { | ||
emailSender := buildMockGmailMessageSenderWrapper(errors.New("send message error")) | ||
message := *gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email.") | ||
message := gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email.") | ||
|
||
err := emailSender.SendEmail(message) | ||
assert.Error(t, err) | ||
|
@@ -117,7 +122,7 @@ func TestSendEmailWithSendMessageError(t *testing.T) { | |
func TestSendEmailWithMockServiceError(t *testing.T) { | ||
emailSender := buildMockGmailMessageSenderWrapper(errors.New("mock service error")) | ||
|
||
message := *gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email.") | ||
message := gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email.") | ||
|
||
err := emailSender.SendEmail(message) | ||
assert.Error(t, err) | ||
|
@@ -126,7 +131,7 @@ func TestSendEmailWithMockServiceError(t *testing.T) { | |
func TestSendEmailWithBCC(t *testing.T) { | ||
emailSender := buildMockGmailMessageSenderWrapper(nil) | ||
|
||
message := *gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email."). | ||
message := gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email."). | ||
SetBCC([]string{"[email protected]"}) | ||
|
||
err := emailSender.SendEmail(message) | ||
|
@@ -317,7 +322,7 @@ func TestNewGmailEmailSenderJWTAccessInvalidJson(t *testing.T) { | |
func TestSendEmailWithNilGmailService(t *testing.T) { | ||
emailSender := &gmailMessageSenderWrapper{} | ||
|
||
message := *gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email.") | ||
message := gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email.") | ||
|
||
err := emailSender.SendEmail(message) | ||
assert.Error(t, err) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,15 +14,15 @@ import ( | |
// HTML content, and multiple attachments. | ||
// | ||
// Parameters: | ||
// - message: An EmailMessage struct containing the details of the email to be sent. | ||
// - message: A pointer to an EmailMessage struct containing the details of the email to be sent. | ||
// | ||
// Returns: | ||
// - []byte: A byte slice containing the complete MIME message. | ||
// - error: An error if constructing the MIME message fails, otherwise nil. | ||
// | ||
// Example: | ||
// | ||
// message := *gomail.NewEmailMessage( | ||
// message := gomail.NewEmailMessage( | ||
// "[email protected]", | ||
// []string["[email protected]"], | ||
// "Test Email", | ||
|
@@ -36,7 +36,7 @@ import ( | |
// log.Fatalf("Failed to build MIME message: %v", err) | ||
// } | ||
// fmt.Println(string(mimeMessage)) | ||
func BuildMimeMessage(message gomail.EmailMessage) ([]byte, error) { | ||
func BuildMimeMessage(message *gomail.EmailMessage) ([]byte, error) { | ||
var msg bytes.Buffer | ||
|
||
// Determine boundaries | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,19 +11,19 @@ import ( | |
|
||
func TestBuildMimeMessage(t *testing.T) { | ||
tests := []struct { | ||
message gomail.EmailMessage | ||
message *gomail.EmailMessage | ||
contains []string | ||
}{ | ||
{ | ||
*gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email."), | ||
gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email."), | ||
[]string{"From: [email protected]", "To: [email protected]", "Subject: Test Email", "This is a test email."}, | ||
}, | ||
{ | ||
*gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "<p>This is a test email.</p>"), | ||
gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "<p>This is a test email.</p>"), | ||
[]string{"From: [email protected]", "To: [email protected]", "Subject: Test Email", "Content-Type: text/html", "<p>This is a test email.</p>"}, | ||
}, | ||
{ | ||
*gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email."). | ||
gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email."). | ||
SetCC([]string{"[email protected]"}). | ||
SetBCC([]string{"[email protected]"}). | ||
SetAttachments([]gomail.Attachment{ | ||
|
@@ -32,7 +32,7 @@ func TestBuildMimeMessage(t *testing.T) { | |
[]string{"From: [email protected]", "To: [email protected]", "Cc: [email protected]", "Subject: Test Email", "This is a test email.", "Content-Disposition: attachment; filename=\"test.txt\"", base64.StdEncoding.EncodeToString([]byte("This is a test attachment."))}, | ||
}, | ||
{ | ||
*gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email."). | ||
gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email."). | ||
SetCC([]string{"[email protected]"}). | ||
SetBCC([]string{"[email protected]"}). | ||
SetReplyTo("[email protected]"), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,11 @@ import ( | |
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
// TestEmailSenderImplementation checks if mailgunEmailSender implements the EmailSender interface | ||
func TestEmailSenderImplementation(t *testing.T) { | ||
var _ gomail.EmailSender = (*mailgunEmailSender)(nil) | ||
} | ||
|
||
// Mock implementations for Mailgun | ||
type mockMailgun struct{} | ||
|
||
|
@@ -45,7 +50,7 @@ func TestMailgunEmailSender_SendEmail(t *testing.T) { | |
mailgunClient: &mockMailgun{}, | ||
} | ||
|
||
message := *gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email."). | ||
message := gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email."). | ||
SetCC([]string{"[email protected]"}). | ||
SetBCC([]string{"[email protected]"}). | ||
SetReplyTo("[email protected]"). | ||
|
@@ -65,7 +70,7 @@ func TestMailgunEmailSender_SendEmailWithSendError(t *testing.T) { | |
mailgunClient: &mockMailgunWithError{}, | ||
} | ||
|
||
message := *gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email.") | ||
message := gomail.NewEmailMessage("[email protected]", []string{"[email protected]"}, "Test Email", "This is a test email.") | ||
|
||
err := emailSender.SendEmail(message) | ||
assert.Error(t, err) | ||
|
@@ -77,7 +82,7 @@ func TestMailgunEmailSender_SendEmailWithEmptyFields(t *testing.T) { | |
mailgunClient: &mockMailgun{}, | ||
} | ||
|
||
message := *gomail.NewEmailMessage( | ||
message := gomail.NewEmailMessage( | ||
"[email protected]", | ||
[]string{}, | ||
"", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.