Pages

Showing posts with label godaddy. Show all posts
Showing posts with label godaddy. Show all posts

Wednesday, January 18, 2012

Email sending problem on godaddy shared hosting server

Include below namespace

using System.Net;
using System.Net.Mail;
using System.Net.Configuration;

C# Code Here

string strFromEmail= "";
string strToEmail = "";
string strSubject= "";
string strBody= "";

MailMessage mailMessage = new MailMessage(strFromEmail, strToEmail, strSubject, strBody);
mailMessage.IsBodyHtml = true;

SmtpClient smtpClient = new SmtpClient();
smtpClient.Host = "relay-hosting.secureserver.net";
smtpClient.Port = 25;
smtpClient.Credentials = CredentialCache.DefaultNetworkCredentials;
smtpClient.Send(mailMessage);

Thanks

Wednesday, September 16, 2009

Operation must use an updateable query.

Hi one my friend is getting this error "Operation must use an updateable query"

Solution:

Error Message:
Operation must use an updateable query. /file.asp 12
Cause:
The most common reason this error is generated is the database or directory containing the database you are trying to access does not have the correct permissions.
Resolution:
Either move the database to the "access_db" directory or add read/write permissions to the directory where the database resides.

Shared Button