Showing posts with label sharepoint. Show all posts
Showing posts with label sharepoint. Show all posts

Sunday, February 7, 2010

Just-In-Time Debugging

after we installed the visual studio on the server that runs the sharepoint, when an error occurs the system open a dialog box to debug the error with visual studio and wait until we click the ok or cancel button.

To solve the problem:

first: remove the connection between visual studio and errors!:
http://msdn.microsoft.com/en-us/library/k8kf6y2a(VS.80).aspx

then: stop just-in-time debugging from Registry:





http://msdn.microsoft.com/en-us/library/5hs4b7a6(VS.80).aspx





Sunday, February 15, 2009

Send SMS by Sharepoint

i found this sms provider ipip.com
they supported me with this code


private void button1_Click(object sender, EventArgs e)
{
string toPhoneNumber = toTextBox.Text;
string login = fromTextBox.Text;
string password = passTextBox.Text;
string compression = subjectTextBox.Text;
string body = bodyTextBox.Text;


MailMessage mail = new MailMessage();
mail.To = toPhoneNumber + "@sms.ipipi.com";
mail.From = login + "@ipipi.com";
mail.Subject = compression;
mail.Body = body;
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", login);
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", password);


System.Web.Mail.SmtpMail.SmtpServer = "ipipi.com";
System.Web.Mail.SmtpMail.Send(mail);



/*set the addresses
mail.From = new MailAddress("me@mycompany.com");
mail.To.Add("you@yourcompany.com");

//set the content
mail.Subject = "This is an email";
mail.Body = "this is a sample body";

//send the message
SmtpClient smtp = new SmtpClient("127.0.0.1");
smtp.Send(mail);*/
}
}
}


http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/bd801d6b-b934-428e-bff1-d52d82cd439e/