Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
Questiondyanamic crystal report Pin
pupilstuff17-Jun-09 3:02
pupilstuff17-Jun-09 3:02 
QuestionDelegate Pin
Matt Cavanagh17-Jun-09 2:39
Matt Cavanagh17-Jun-09 2:39 
AnswerRe: Delegate Pin
Luc Pattyn17-Jun-09 2:55
sitebuilderLuc Pattyn17-Jun-09 2:55 
GeneralRe: Delegate Pin
Matt Cavanagh17-Jun-09 3:18
Matt Cavanagh17-Jun-09 3:18 
GeneralRe: Delegate Pin
Luc Pattyn17-Jun-09 3:32
sitebuilderLuc Pattyn17-Jun-09 3:32 
GeneralRe: Delegate Pin
Matt Cavanagh17-Jun-09 5:19
Matt Cavanagh17-Jun-09 5:19 
AnswerRe: Delegate Pin
Ennis Ray Lynch, Jr.17-Jun-09 7:28
Ennis Ray Lynch, Jr.17-Jun-09 7:28 
QuestionSystem.Net.Mail not working Pin
dptalt17-Jun-09 2:33
dptalt17-Jun-09 2:33 
I cannot get the System.Net.Mail to send out an email message from my Windows application. The Try Catch reports an the error message 'Failure sending message'. What is causing the error? Below is the code I'm using.


MailAddress objFromMailAddress = new MailAddress(fromemailaddress, "Test");
MailAddress objToMailAddress = new MailAddress(toemailaddress);
MailMessage objMailMessage = new MailMessage(objFromMailAddress, objToMailAddress);

objMailMessage.Subject = "Subject";
objMailMessage.IsBodyHtml = false;
objMailMessage.Body = "Email message";

NetworkCredential objNetworkCredential = new NetworkCredential(outgoingusername, outgoingpassword, "smtp.1and1.com");

SmtpClient objSmtpClient = new SmtpClient();

objSmtpClient.Host = "smtp.1and1.com";
objSmtpClient.Port = 110;
objSmtpClient.UseDefaultCredentials = false;
objSmtpClient.Credentials = objNetworkCredential;

try
{
objSmtpClient.Send(objMailMessage);
}
catch (Exception pError)
{
}
AnswerRe: System.Net.Mail not working Pin
Rob Philpott17-Jun-09 2:38
Rob Philpott17-Jun-09 2:38 
GeneralRe: System.Net.Mail not working Pin
Dave Kreskowiak17-Jun-09 8:24
mveDave Kreskowiak17-Jun-09 8:24 
GeneralRe: System.Net.Mail not working Pin
Rob Philpott17-Jun-09 9:07
Rob Philpott17-Jun-09 9:07 
GeneralRe: System.Net.Mail not working Pin
Dave Kreskowiak17-Jun-09 13:30
mveDave Kreskowiak17-Jun-09 13:30 
AnswerRe: System.Net.Mail not working Pin
dptalt18-Jun-09 1:34
dptalt18-Jun-09 1:34 
Questionpass '' char to storedprocedure !!!!!!!!! Pin
zeeShan anSari17-Jun-09 2:20
zeeShan anSari17-Jun-09 2:20 
AnswerRe: pass '' char to storedprocedure !!!!!!!!! Pin
MohitBhambral17-Jun-09 2:32
MohitBhambral17-Jun-09 2:32 
GeneralRe: pass '' char to storedprocedure !!!!!!!!! Pin
zeeShan anSari17-Jun-09 2:47
zeeShan anSari17-Jun-09 2:47 
AnswerPass null to stored T-SQL Proc via LINQ Pin
ProtoBytes17-Jun-09 2:56
ProtoBytes17-Jun-09 2:56 
AnswerRe: Pass null to stored T-SQL Proc via LINQ Pin
zeeShan anSari17-Jun-09 3:07
zeeShan anSari17-Jun-09 3:07 
GeneralRe: Pass null to stored T-SQL Proc via LINQ Pin
zeeShan anSari17-Jun-09 3:38
zeeShan anSari17-Jun-09 3:38 
AnswerRe: Pass null to stored T-SQL Proc via LINQ [modified] Pin
ProtoBytes17-Jun-09 4:20
ProtoBytes17-Jun-09 4:20 
QuestionCrystal Report Pin
rema r17-Jun-09 1:38
rema r17-Jun-09 1:38 
AnswerRe: Crystal Report Pin
K030617-Jun-09 2:54
K030617-Jun-09 2:54 
Questionproject doubt Pin
vinithakizhussery17-Jun-09 0:28
vinithakizhussery17-Jun-09 0:28 
AnswerRe: project doubt Pin
OriginalGriff17-Jun-09 0:32
mveOriginalGriff17-Jun-09 0:32 
GeneralRe: project doubt Pin
DaveyM6917-Jun-09 0:39
professionalDaveyM6917-Jun-09 0:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.