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

C#

 
Questiondisplay radar! Pin
Member 1183104920-Aug-15 19:33
professionalMember 1183104920-Aug-15 19:33 
SuggestionRe: display radar! Pin
Richard MacCutchan20-Aug-15 21:40
mveRichard MacCutchan20-Aug-15 21:40 
QuestionCategoryName in PerformanceCounter Pin
LeHuuTien20-Aug-15 16:13
LeHuuTien20-Aug-15 16:13 
AnswerRe: CategoryName in PerformanceCounter Pin
Wendelius20-Aug-15 17:39
mentorWendelius20-Aug-15 17:39 
GeneralRe: CategoryName in PerformanceCounter Pin
LeHuuTien20-Aug-15 19:03
LeHuuTien20-Aug-15 19:03 
QuestionI want drag and drop a table on server side Pin
Member 1101608620-Aug-15 2:24
Member 1101608620-Aug-15 2:24 
AnswerRe: I want drag and drop a table on server side Pin
Eddy Vluggen20-Aug-15 2:59
professionalEddy Vluggen20-Aug-15 2:59 
QuestionEmail Sending Pin
Shrimants Satpute19-Aug-15 21:26
Shrimants Satpute19-Aug-15 21:26 
C#
MailMessage mail = new MailMessage();
try
{
    SmtpClient smtp = new SmtpClient();


    System.Net.NetworkCredential nc = new System.Net.NetworkCredential("[DELETED]@gmail.com", "[DELETED]");
    smtp.Port = 587;
    smtp.Host = "smtp.gmail.com";
    smtp.EnableSsl = true;
    smtp.UseDefaultCredentials = false;
    smtp.Credentials = nc;

    mail.To.Add("shreeraje2345@gmail.com");
    mail.From = new MailAddress(txtEmail.Text);
    mail.Subject = txtName.Text;

    string body = "From: " + txtName.Text + "\n";
    body += "Email: " + txtEmail.Text + "\n";
    body += "Applied For Job ID: " + lblJobId.Text + "\n";
    body += "Applied For Job Position: " + lblJobName.Text + "\n";
    body += "DOB:" + txtDOB.Text + "\n";
    body += "Qualification:" + dllQualifn.SelectedItem.Text + "\n";
    body += "Specialization:" + dllSpcialn.SelectedItem.Text + "\n";
    body += "Address:" + txtAddress.Text + "\n";
    body += "Pincode:" + txtPincode.Text + "\n";
    body += "State:" + txtState.Text + "\n";
    body += "City:" + txtCity.Text + "\n";
    body += "Wheather Experience:" + dllW_Exp.SelectedItem.Text + "\n";
    body += "Years Of Experience:" + txtY_Exp.Text + "\n";
    body += "Verification Code:" + txtCaptcha.Text + "\n";
    mail.Body = body;
    mail.Attachments.Add(new Attachment(PhotoUpload.FileContent, System.IO.Path.GetFileName(PhotoUpload.FileName)));
    mail.Attachments.Add(new Attachment(ResumeUpload.FileContent, System.IO.Path.GetFileName(ResumeUpload.FileName)));



    smtp.Send(mail);
    lblMessage.Text = "Your Application has been send sucessfully";


work on local host but not work when i use on godadday host

[edit]Email details removed, Code block added - OriginalGriff[/edit]

modified 20-Aug-15 3:40am.

AnswerRe: Email Sending Pin
Michael_Davies19-Aug-15 21:33
Michael_Davies19-Aug-15 21:33 
AnswerRe: Email Sending Pin
OriginalGriff19-Aug-15 21:41
mveOriginalGriff19-Aug-15 21:41 
AnswerRe: Email Sending Pin
Bilgehan Berberoğlu19-Aug-15 21:49
professionalBilgehan Berberoğlu19-Aug-15 21:49 
AnswerRe: Email Sending Pin
F-ES Sitecore20-Aug-15 0:53
professionalF-ES Sitecore20-Aug-15 0:53 
AnswerRe: Email Sending Pin
Afzaal Ahmad Zeeshan20-Aug-15 1:47
professionalAfzaal Ahmad Zeeshan20-Aug-15 1:47 
QuestionC# Pin
Member 1148413019-Aug-15 20:51
Member 1148413019-Aug-15 20:51 
SuggestionRe: C# Pin
Richard MacCutchan19-Aug-15 20:55
mveRichard MacCutchan19-Aug-15 20:55 
AnswerRe: C# Pin
OriginalGriff19-Aug-15 21:38
mveOriginalGriff19-Aug-15 21:38 
AnswerRe: C# Pin
Abhipal Singh20-Aug-15 7:44
professionalAbhipal Singh20-Aug-15 7:44 
GeneralRe: C# Pin
clientSurfer26-Aug-15 9:32
professionalclientSurfer26-Aug-15 9:32 
QuestionAbout LightSwitch application Pin
Super Lloyd19-Aug-15 18:31
Super Lloyd19-Aug-15 18:31 
QuestionImplementing a LogHelper class - is this approach right Pin
Bartosz Jarmuż19-Aug-15 6:00
Bartosz Jarmuż19-Aug-15 6:00 
AnswerRe: Implementing a LogHelper class - is this approach right Pin
Eddy Vluggen19-Aug-15 7:16
professionalEddy Vluggen19-Aug-15 7:16 
GeneralRe: Implementing a LogHelper class - is this approach right Pin
Bartosz Jarmuż19-Aug-15 7:53
Bartosz Jarmuż19-Aug-15 7:53 
GeneralRe: Implementing a LogHelper class - is this approach right Pin
Pete O'Hanlon19-Aug-15 8:02
mvePete O'Hanlon19-Aug-15 8:02 
GeneralRe: Implementing a LogHelper class - is this approach right Pin
Bartosz Jarmuż19-Aug-15 8:55
Bartosz Jarmuż19-Aug-15 8:55 
GeneralRe: Implementing a LogHelper class - is this approach right Pin
Eddy Vluggen19-Aug-15 8:44
professionalEddy Vluggen19-Aug-15 8:44 

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.