How to execute a PHP file from C# code
-
Hi All, I am a new programmer in .net and need some help from you.. I m using .net framework 1.1 and it has capability of sending only unauthenticated emails by using SmtpMail class.. The server on which my site is running uses authenticated email and I am unable to send email throgh C# script, because I can't enter username and password of the sender email... So, is there any option to call a php file lying on any other server, to which we pass some variables and it will send the email... or Do you have any other ideas.. I hope you people certainly help me to find out the solution.. Thanks in advance. Suman Singh
-
Hi All, I am a new programmer in .net and need some help from you.. I m using .net framework 1.1 and it has capability of sending only unauthenticated emails by using SmtpMail class.. The server on which my site is running uses authenticated email and I am unable to send email throgh C# script, because I can't enter username and password of the sender email... So, is there any option to call a php file lying on any other server, to which we pass some variables and it will send the email... or Do you have any other ideas.. I hope you people certainly help me to find out the solution.. Thanks in advance. Suman Singh
You could do a web request call to your PHP page. SMTP Authentication in .net 1.1 is non existent, however .net 2.0 is much improved. have you considered creating your own SMTP client connecting to PORT 25
-
Hi All, I am a new programmer in .net and need some help from you.. I m using .net framework 1.1 and it has capability of sending only unauthenticated emails by using SmtpMail class.. The server on which my site is running uses authenticated email and I am unable to send email throgh C# script, because I can't enter username and password of the sender email... So, is there any option to call a php file lying on any other server, to which we pass some variables and it will send the email... or Do you have any other ideas.. I hope you people certainly help me to find out the solution.. Thanks in advance. Suman Singh
Hi! I didn't test it, but according to this site you should be able to authenticate to a SMTP server in .NET 1.1. Hope this helps.
-
Hi All, I am a new programmer in .net and need some help from you.. I m using .net framework 1.1 and it has capability of sending only unauthenticated emails by using SmtpMail class.. The server on which my site is running uses authenticated email and I am unable to send email throgh C# script, because I can't enter username and password of the sender email... So, is there any option to call a php file lying on any other server, to which we pass some variables and it will send the email... or Do you have any other ideas.. I hope you people certainly help me to find out the solution.. Thanks in advance. Suman Singh
If you mean true SMTP authentication and I'd say what the others said was totally correct but if you meant that your mail was accesible only through a PHP web based frontend and you had no SMTP access then you'd have to sniff out the GET and POST paramaters that are being trnasmitted when you click the Submit button on your browser and use C# to do the HTTP POST and GET. Suman, if what I'm getting at is what you need, do reply, and i can fill you in a bit more.