Thank You for your response, But I think you miss assimilate the info, I am using windows form, i wish to communicate with the PHP file directly from my windows form
I tried sending email using windows form, but not working, I guess due to some authentications of SMTP. So I think may be I can make a request to any HttpClient to communicate with my hosted PHP script passing some credentials so it can send the message using localhost. But that seems not working. My goal is just to send email using Windows form without using mail jet, send grid or mail gun
in any case, trying to mix languages is never the solution and just makes your code needlessly complicated (and prevents us from being able to help, because this isn't a php server)