Hi Support Team,
I have uploaded my website on x10hosting recently which has a few regular static HTML pages, and one .ASPX page which is like a member signup page where the user enters some personal information (name, phone, etc..) At the bottom, there is a button called "Send Email" which uses SmtpClient class in .NET 2.0 framework to send the entered information on the page into an email from my email account: bkshukla@audichya.x10hosting.com.
However, I am getting a server error "Request Timed Out" [Error 500]
Below is the code:
MailMessage msg = newMailMessage("bkshukla@audichyabandhoo.x10hosting.com", pushukla@yahoo.com);
msg.Body = "Dear Audichya Bandhoo," + Environment.NewLine + "Please acknowledge my personal details as below and confirm my membership in the 'Audhichya Forum Website'";
msg.Body = msg.Body + "My Portfolio: " + txtDescription.Text + Environment.NewLine;
SmtpClient smtp = newSmtpClient("mail.audichyabandhoo.x10hosting.com", 25);
NetworkCredential credentials = newNetworkCredential("bkshukla@audichyabandhoo.x10hosting.com", "<MY PASSWORD>");
smtp.UseDefaultCredentials = false;
smtp.Credentials = credentials;
smtp.Send(msg);
Could any .NET experts or Support members guide me if there is a problem with this code or if I need some configuration on my Email server?
Note: I have also tried to change my Email Authentication - SPF value to v: sPF1 +all
But I was not able to.
This is an urgent issue for me... Any help/suggestion would be appreciated!
I have uploaded my website on x10hosting recently which has a few regular static HTML pages, and one .ASPX page which is like a member signup page where the user enters some personal information (name, phone, etc..) At the bottom, there is a button called "Send Email" which uses SmtpClient class in .NET 2.0 framework to send the entered information on the page into an email from my email account: bkshukla@audichya.x10hosting.com.
However, I am getting a server error "Request Timed Out" [Error 500]
Below is the code:
MailMessage msg = newMailMessage("bkshukla@audichyabandhoo.x10hosting.com", pushukla@yahoo.com);
msg.Body = "Dear Audichya Bandhoo," + Environment.NewLine + "Please acknowledge my personal details as below and confirm my membership in the 'Audhichya Forum Website'";
msg.Body = msg.Body + "My Portfolio: " + txtDescription.Text + Environment.NewLine;
SmtpClient smtp = newSmtpClient("mail.audichyabandhoo.x10hosting.com", 25);
NetworkCredential credentials = newNetworkCredential("bkshukla@audichyabandhoo.x10hosting.com", "<MY PASSWORD>");
smtp.UseDefaultCredentials = false;
smtp.Credentials = credentials;
smtp.Send(msg);
Could any .NET experts or Support members guide me if there is a problem with this code or if I need some configuration on my Email server?
Note: I have also tried to change my Email Authentication - SPF value to v: sPF1 +all
But I was not able to.
This is an urgent issue for me... Any help/suggestion would be appreciated!
Last edited: