Click here to Skip to main content
15,891,976 members
Home / Discussions / C#
   

C#

 
QuestionXML - access "next child".. how? Pin
Joplinazz23-Aug-08 7:52
Joplinazz23-Aug-08 7:52 
AnswerRe: XML - access "next child".. how? Pin
Mbah Dhaim23-Aug-08 8:53
Mbah Dhaim23-Aug-08 8:53 
GeneralRe: XML - access "next child".. how? Pin
Joplinazz23-Aug-08 9:27
Joplinazz23-Aug-08 9:27 
AnswerRe: XML - access "next child".. how? Pin
dybs23-Aug-08 10:24
dybs23-Aug-08 10:24 
GeneralRe: XML - access "next child".. how? Pin
Joplinazz24-Aug-08 2:31
Joplinazz24-Aug-08 2:31 
GeneralRe: XML - access "next child".. how? Pin
dybs24-Aug-08 5:37
dybs24-Aug-08 5:37 
AnswerRe: XML - access "next child".. how? Pin
Samer Aburabie24-Aug-08 8:37
Samer Aburabie24-Aug-08 8:37 
QuestionEmail Sender not sending to gmail,hotmail etc but will send to the domain from it is sent addresses Pin
new2pgrmg23-Aug-08 5:59
new2pgrmg23-Aug-08 5:59 
Hi all,

I am modifying an application that will send email via smtp.My problem is its not sending emails to gmail,aol etc.Getting an eror"Mailbox unavailable. The server response was: 5.7.1 Unable to relay for [email]"

I searched and found its issue with authetication.

My questions are:

1)Is it possible to sent mail to gmail,hotmail,aol etc from a application like this.

2)Whats the username and pasword for authntication .I found this code when i searched but confused about how to implement.Any help is welcome.

The link is "

My code looks like this:

public void sendSmtp()
{
if (!ValidateEmailSender()) return;
clsEmailSender emailSender = new clsEmailSender();

MailAddress sendFrom = new MailAddress("devjn@itsoft.com");
MailAddress sendTo = new MailAddress(txtEmailTo.Text);
MailMessage myMessage = new MailMessage(sendFrom, sendTo);
if(txtEmailCc.Text!="")
{
MailAddress sendCc = new MailAddress(txtEmailCc.Text);
myMessage.CC.Add(sendCc);
}

if (txtEmailBcc.Text != "")
{
MailAddress sendBcc = new MailAddress(txtEmailBcc.Text);
myMessage.Bcc.Add(sendBcc);

}




myMessage.Subject = txtEmailSubject.Text;

myMessage.Body = txtEmailBody.Text;

SmtpClient emailClient = new SmtpClient("mail.tri.com", 28);



emailClient.Send(myMessage);


}

AnswerRe: Email Sender not sending to gmail,hotmail etc but will send to the domain from it is sent addresses Pin
Mbah Dhaim24-Aug-08 10:42
Mbah Dhaim24-Aug-08 10:42 
AnswerRe: Email Sender not sending to gmail,hotmail etc but will send to the domain from it is sent addresses Pin
#realJSOP25-Aug-08 2:58
mve#realJSOP25-Aug-08 2:58 
QuestionPrinting a Certificate Form Pin
Ian Uy23-Aug-08 4:13
Ian Uy23-Aug-08 4:13 
AnswerRe: Printing a Certificate Form Pin
Abhijit Jana23-Aug-08 4:25
professionalAbhijit Jana23-Aug-08 4:25 
GeneralRe: Printing a Certificate Form Pin
Paul Conrad23-Aug-08 6:07
professionalPaul Conrad23-Aug-08 6:07 
AnswerRe: Printing a Certificate Form Pin
Paul Conrad23-Aug-08 6:10
professionalPaul Conrad23-Aug-08 6:10 
Question"Save As" Dailog box problem Pin
Saum_Vora23-Aug-08 1:19
Saum_Vora23-Aug-08 1:19 
QuestionFunction to insert an integer into a sorted array of integers Pin
Samiullah22-Aug-08 21:06
Samiullah22-Aug-08 21:06 
AnswerRe: Function to insert an integer into a sorted array of integers Pin
zafersavas22-Aug-08 22:55
zafersavas22-Aug-08 22:55 
GeneralRe: Function to insert an integer into a sorted array of integers Pin
Samiullah23-Aug-08 0:43
Samiullah23-Aug-08 0:43 
GeneralRe: Function to insert an integer into a sorted array of integers [modified] Pin
PIEBALDconsult23-Aug-08 4:25
mvePIEBALDconsult23-Aug-08 4:25 
GeneralRe: Function to insert an integer into a sorted array of integers Pin
oobimoo24-Aug-08 7:12
oobimoo24-Aug-08 7:12 
AnswerRe: Function to insert an integer into a sorted array of integers Pin
#realJSOP25-Aug-08 2:59
mve#realJSOP25-Aug-08 2:59 
QuestionGo to a specified node in treeview Pin
Laji5922-Aug-08 20:26
Laji5922-Aug-08 20:26 
AnswerRe: Go to a specified node in treeview Pin
DaveyM6922-Aug-08 21:31
professionalDaveyM6922-Aug-08 21:31 
GeneralRe: Go to a specified node in treeview Pin
Abdul Rahman Hamidy22-Aug-08 23:22
Abdul Rahman Hamidy22-Aug-08 23:22 
AnswerRe: Go to a specified node in treeview Pin
Kevin Marois23-Aug-08 7:08
professionalKevin Marois23-Aug-08 7:08 

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.