Skip to content

Commit

Permalink
Merge pull request #95 from apattath/main
Browse files Browse the repository at this point in the history
Update advanced SendEmail sample to include 'replyTo' property.
  • Loading branch information
kagbakpem authored May 1, 2023
2 parents b84429e + 7ebdd84 commit 16ab823
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SendEmailAdvanced/SendEmailToMultipleRecipients/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ static async Task Main(string[] args)
}
};

// Add optional ReplyTo address which is where any replies to the email will go to.
emailMessage.ReplyTo.Add(new EmailAddress("<REPLY_TO_EMAIL>", "<REPLY_TO_DISPLAY_NAME>"));

try
{
EmailSendOperation emailSendOperation = await emailClient.SendAsync(WaitUntil.Completed, emailMessage);
Expand Down

0 comments on commit 16ab823

Please sign in to comment.