microsoft / hack-together

Hack Together: Microsoft Graph and .NET is a hackathon for .NET developers to learn Microsoft Graph and Microsoft 365.
MIT License
523 stars 85 forks source link

Project: SendMail Contact Form using MS Graph API App Only #162

Open zawhtut opened 1 year ago

zawhtut commented 1 year ago

Project name

Mail Contact Form

Description

I have created a Blazor web application with a contact form that allows website visitors to send a message to the website owner. To send the message, I used Microsoft Graph API and app-only authentication so that users do not need to log in. The message is sent directly to the website owner's Outlook email address. This ensures that the website owner is notified immediately of any messages sent through the contact form.

Repo URL

https://github.com/zawhtut/MailContactForm

Team members

Zaw Htut

waldekmastykarz commented 1 year ago

Thank you for your submission @zawhtut! Would you be willing to record a short video to demonstrate the app? It's not required for the hackathon but it would help us showcase your work internally at Microsoft and publicly in the community ๐Ÿ˜Š

zawhtut commented 1 year ago

Yes... Thanks @waldekmastykarz... I will be doing it now...๐Ÿ˜ƒ๐Ÿ™... ย This is the minimum viable product for now. So I hard-coded my userId and email in appsettings. I was trying to do the next step, which is to register the owner's email with delegated flow for the initial setup time and deregister it later with appropriate mechanisms. My long-term goal is to turn it into a Blazor component that can be packaged in NuGet.ย 

zawhtut commented 1 year ago

https://user-images.githubusercontent.com/10856644/225246135-f17529de-43be-46a7-961a-f2661616eb75.mp4