Click here to Skip to main content
14,770,907 members
Home » Discussions » C#
   

C#

 
Questiondyanamic crystal report Pin
pupilstuff17-Jun-09 4:02
Memberpupilstuff17-Jun-09 4:02 
QuestionDelegate Pin
Matt Cavanagh17-Jun-09 3:39
MemberMatt Cavanagh17-Jun-09 3:39 
AnswerRe: Delegate Pin
Luc Pattyn17-Jun-09 3:55
sitebuilderLuc Pattyn17-Jun-09 3:55 
GeneralRe: Delegate Pin
Matt Cavanagh17-Jun-09 4:18
MemberMatt Cavanagh17-Jun-09 4:18 
GeneralRe: Delegate Pin
Luc Pattyn17-Jun-09 4:32
sitebuilderLuc Pattyn17-Jun-09 4:32 
GeneralRe: Delegate Pin
Matt Cavanagh17-Jun-09 6:19
MemberMatt Cavanagh17-Jun-09 6:19 
AnswerRe: Delegate Pin
Ennis Ray Lynch, Jr.17-Jun-09 8:28
MemberEnnis Ray Lynch, Jr.17-Jun-09 8:28 
QuestionSystem.Net.Mail not working Pin
dptalt17-Jun-09 3:33
Memberdptalt17-Jun-09 3: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 3:38
MemberRob Philpott17-Jun-09 3:38 
GeneralRe: System.Net.Mail not working Pin
Dave Kreskowiak17-Jun-09 9:24
mveDave Kreskowiak17-Jun-09 9:24 
GeneralRe: System.Net.Mail not working Pin
Rob Philpott17-Jun-09 10:07
MemberRob Philpott17-Jun-09 10:07 
GeneralRe: System.Net.Mail not working Pin
Dave Kreskowiak17-Jun-09 14:30
mveDave Kreskowiak17-Jun-09 14:30 
AnswerRe: System.Net.Mail not working Pin
dptalt18-Jun-09 2:34
Memberdptalt18-Jun-09 2:34 
Questionpass '' char to storedprocedure !!!!!!!!! Pin
zeeShan anSari17-Jun-09 3:20
MemberzeeShan anSari17-Jun-09 3:20 
AnswerRe: pass '' char to storedprocedure !!!!!!!!! Pin
MohitBhambral17-Jun-09 3:32
MemberMohitBhambral17-Jun-09 3:32 
GeneralRe: pass '' char to storedprocedure !!!!!!!!! Pin
zeeShan anSari17-Jun-09 3:47
MemberzeeShan anSari17-Jun-09 3:47 
AnswerPass null to stored T-SQL Proc via LINQ Pin
ProtoBytes17-Jun-09 3:56
MemberProtoBytes17-Jun-09 3:56 
AnswerRe: Pass null to stored T-SQL Proc via LINQ Pin
zeeShan anSari17-Jun-09 4:07
MemberzeeShan anSari17-Jun-09 4:07 
GeneralRe: Pass null to stored T-SQL Proc via LINQ Pin
zeeShan anSari17-Jun-09 4:38
MemberzeeShan anSari17-Jun-09 4:38 
AnswerRe: Pass null to stored T-SQL Proc via LINQ [modified] Pin
ProtoBytes17-Jun-09 5:20
MemberProtoBytes17-Jun-09 5:20 
QuestionCrystal Report Pin
rema r17-Jun-09 2:38
Memberrema r17-Jun-09 2:38 
AnswerRe: Crystal Report Pin
K030617-Jun-09 3:54
MemberK030617-Jun-09 3:54 
Questionproject doubt Pin
vinithakizhussery17-Jun-09 1:28
Membervinithakizhussery17-Jun-09 1:28 
AnswerRe: project doubt Pin
OriginalGriff17-Jun-09 1:32
mveOriginalGriff17-Jun-09 1:32 
GeneralRe: project doubt Pin
DaveyM6917-Jun-09 1:39
professionalDaveyM6917-Jun-09 1: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.