Click here to Skip to main content
15,906,463 members
Home / Discussions / C#
   

C#

 
AnswerRe: Show specific rows in datagrid Pin
Harvey Saayman13-Jul-08 22:19
Harvey Saayman13-Jul-08 22:19 
QuestionThe name 'Ctype' does not exist in the current context Pin
Kirun13-Jul-08 19:08
Kirun13-Jul-08 19:08 
AnswerRe: The name 'Ctype' does not exist in the current context Pin
stancrm13-Jul-08 19:35
stancrm13-Jul-08 19:35 
AnswerRe: The name 'Ctype' does not exist in the current context Pin
Guffa13-Jul-08 20:47
Guffa13-Jul-08 20:47 
QuestionCannot receive server email Pin
mimilaw13-Jul-08 18:06
mimilaw13-Jul-08 18:06 
AnswerRe: Cannot receive server email Pin
N a v a n e e t h13-Jul-08 18:23
N a v a n e e t h13-Jul-08 18:23 
GeneralRe: Cannot receive server email Pin
mimilaw13-Jul-08 19:07
mimilaw13-Jul-08 19:07 
AnswerRe: Cannot receive server email Pin
obarahmeh13-Jul-08 21:01
obarahmeh13-Jul-08 21:01 
mimilaw wrote:
My application send a email by using SmtpMail but it doesn't work. I have check the smtp on web server, it's functional. Does anybody have any ideas?


What's the problem if you write the smtp mail address, i.e: without using 'dns.gethostname()'.
I am using the smtp to send emails, and it is working well with no problems, ans the following is my code:

MailMessage message = new MailMessage("FromAddress@yourCompany.com", "ToAddress@yourCompany.com",
"Application Alerts ", "Alert Email from your application System");

SmtpClient smtpClient = new SmtpClient("Your SMTP Name");


smtpClient.UseDefaultCredentials = false;
smtpClient.Credentials = new NetworkCredential("The login Name", "Login Password","Your SMTP Name");

Attachment attachment = new Attachment("Attachment Path");
message.Attachments.Add(attachment);
smtpClient.Send(message);

Kind Regards
OBarahmeh

Questionlistbox Pin
netJP12L13-Jul-08 17:35
netJP12L13-Jul-08 17:35 
AnswerRe: listbox Pin
Ed.Poore13-Jul-08 23:25
Ed.Poore13-Jul-08 23:25 
QuestionAnonymous functions ? Pin
Mohammad Dayyan13-Jul-08 13:45
Mohammad Dayyan13-Jul-08 13:45 
AnswerRe: Anonymous functions ? Pin
Vimalsoft(Pty) Ltd13-Jul-08 15:38
professionalVimalsoft(Pty) Ltd13-Jul-08 15:38 
GeneralRe: Anonymous functions ? Pin
Mohammad Dayyan14-Jul-08 2:49
Mohammad Dayyan14-Jul-08 2:49 
GeneralRe: Anonymous functions ? Pin
Vimalsoft(Pty) Ltd14-Jul-08 2:53
professionalVimalsoft(Pty) Ltd14-Jul-08 2:53 
QuestionUserControl Pin
nelsonpaixao13-Jul-08 13:25
nelsonpaixao13-Jul-08 13:25 
QuestionInsert image to mysql using c# Pin
SHINOJK13-Jul-08 12:33
SHINOJK13-Jul-08 12:33 
AnswerRe: Insert image to mysql using c# Pin
Vimalsoft(Pty) Ltd13-Jul-08 15:31
professionalVimalsoft(Pty) Ltd13-Jul-08 15:31 
Questionhow to change icon size on the desktop? Pin
isso8713-Jul-08 9:29
isso8713-Jul-08 9:29 
AnswerRe: how to change icon size on the desktop? Pin
DaveyM6913-Jul-08 14:29
professionalDaveyM6913-Jul-08 14:29 
QuestionHandling COM object with an infinite loop Pin
Vitaly Belman13-Jul-08 9:25
Vitaly Belman13-Jul-08 9:25 
AnswerRe: Handling COM object with an infinite loop Pin
Alan Balkany14-Jul-08 4:49
Alan Balkany14-Jul-08 4:49 
AnswerRe: Handling COM object with an infinite loop Pin
Frank Horn14-Jul-08 9:28
Frank Horn14-Jul-08 9:28 
QuestionPassing mouse events over to the parent Pin
-Dy13-Jul-08 8:27
-Dy13-Jul-08 8:27 
AnswerRe: Passing mouse events over to the parent Pin
Luc Pattyn13-Jul-08 9:09
sitebuilderLuc Pattyn13-Jul-08 9:09 
GeneralRe: Passing mouse events over to the parent Pin
-Dy13-Jul-08 11:00
-Dy13-Jul-08 11:00 

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.