SMTP Email using ASP.NET from x10hosting server

Status
Not open for further replies.

audichya

New Member
Messages
4
Reaction score
0
Points
0
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!
 
Last edited:

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
This is a programming help issue, not a free hosting issue. People who frequently visit this forum will not be as equipped to answer your programming questions. The programming-help forum is here.

Afterwards if you find that the server is at fault rather than your script, post back here.
 

audichya

New Member
Messages
4
Reaction score
0
Points
0
Okay, I have tried looking up for a fix in the "Programming" forums and tried a several things.
I feel that the server might have firewall blocking port 25.

Could the "Admin" please have a look? Its kinda urgent...
 
Status
Not open for further replies.
Top