0

I want to implement an Email Contact form on my website ( Source Code ) where i'll prompt the user the Subject and Body line and handle sending the emails myself with a C# email client I have already written Here.

I'm wondering what is the best/ fastest/ etc. way of accomplishing implementing the C# functionality into the website. This is an Angular 4 w/ Material 2 website being hosted with Firebase.

Any advice would be greatly appreciated, as I wouldn't want to do something needlessly resource intensive seeing as this is the only backend functionality I currently plan on implementing.

Thank you

Daniel Turcich
  • 1,764
  • 2
  • 26
  • 48

1 Answers1

0

As per my knowledge two ways, you can do this

  1. Merge your both the applications into a single application and use $.post
  2. Expose post method in the .Net application to send a mail which accepts mail details as the parameter and post the main body to function using angular script(here you need may need to handle cross-domain issues also I think).

The 2nd option looks better as long as your method exposed as web.api to receive to requests.

Rudresha Parameshappa
  • 3,826
  • 3
  • 25
  • 39
  • The first approach was to combine both the applications and make single applications and no need to worry about the cross-domain issue. Basically both the approach are same. – Rudresha Parameshappa Nov 06 '17 at 15:56