Click here to Skip to main content
15,911,035 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRe: Cookie problem in asp.net Pin
Amit Patel198519-Jun-09 4:38
Amit Patel198519-Jun-09 4:38 
QuestionProblem sending an E-mail Pin
Vimalsoft(Pty) Ltd18-Jun-09 23:25
professionalVimalsoft(Pty) Ltd18-Jun-09 23:25 
AnswerRe: Problem sending an E-mail Pin
himanshu256118-Jun-09 23:34
himanshu256118-Jun-09 23:34 
GeneralRe: Problem sending an E-mail Pin
Vimalsoft(Pty) Ltd18-Jun-09 23:46
professionalVimalsoft(Pty) Ltd18-Jun-09 23:46 
GeneralRe: Problem sending an E-mail Pin
Christian Graus18-Jun-09 23:48
protectorChristian Graus18-Jun-09 23:48 
GeneralRe: Problem sending an E-mail Pin
Vimalsoft(Pty) Ltd19-Jun-09 0:01
professionalVimalsoft(Pty) Ltd19-Jun-09 0:01 
GeneralRe: Problem sending an E-mail Pin
Christian Graus19-Jun-09 11:18
protectorChristian Graus19-Jun-09 11:18 
GeneralRe: Problem sending an E-mail Pin
Vimalsoft(Pty) Ltd21-Jun-09 20:16
professionalVimalsoft(Pty) Ltd21-Jun-09 20:16 
Good Morning Christian

i came across this code
protected void Button1_Click(object sender, EventArgs e)
  {
      MailMessage mm = new MailMessage();

      SmtpClient smtp = new SmtpClient();

      mm.From = new MailAddress("Vuyiswa@its.co.za");

      mm.To.Add(new MailAddress("Vuyiswa@its.co.za"));

      mm.To.Add(new MailAddress("RDG@its.co.za"));

      mm.Subject = "Hello";

      mm.Body = "<p>This is the E-mail Test for !Booking System</p>";

      mm.IsBodyHtml = true;

      smtp.Host = "smtp.gmail.com";

      smtp.EnableSsl = true;

      System.Net.NetworkCredential NetworkCred = new System.Net.NetworkCredential();

      NetworkCred.UserName = "vuyiswamb@gmail.com";

      NetworkCred.Password = "secret";

      smtp.UseDefaultCredentials = true;

      smtp.Credentials = NetworkCred;

      smtp.Port = 587;

      smtp.Send(mm);
  }

This code works in Gmail, i will contact the Server Administrator to tell me exactly what port and credetials do i need to use, because i get Port errors.

Thanks for your help

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

QuestionPopulating dropdownlist with javascript [modified] Pin
CrazyCoder2618-Jun-09 23:22
CrazyCoder2618-Jun-09 23:22 
AnswerRe: Populating dropdownlist with javascript Pin
himanshu256118-Jun-09 23:43
himanshu256118-Jun-09 23:43 
GeneralRe: Populating dropdownlist with javascript Pin
CrazyCoder2619-Jun-09 0:09
CrazyCoder2619-Jun-09 0:09 
QuestionHelp to sepration in checkListBox? [modified] Pin
kripa2118-Jun-09 23:18
kripa2118-Jun-09 23:18 
AnswerRe: Help to sepration in checkListBox? Pin
Herman<T>.Instance19-Jun-09 1:21
Herman<T>.Instance19-Jun-09 1:21 
GeneralRe: Help to sepration in checkListBox? Pin
kripa2119-Jun-09 2:26
kripa2119-Jun-09 2:26 
GeneralRe: Help to sepration in checkListBox? Pin
kripa2123-Jun-09 0:08
kripa2123-Jun-09 0:08 
Questiongridview Pin
vikas shukla18-Jun-09 22:07
vikas shukla18-Jun-09 22:07 
AnswerRe: gridview Pin
Christian Graus18-Jun-09 22:37
protectorChristian Graus18-Jun-09 22:37 
Questionplease tell me Pin
sivasampathkumar18-Jun-09 22:01
sivasampathkumar18-Jun-09 22:01 
AnswerRe: please tell me Pin
dan!sh 18-Jun-09 22:08
professional dan!sh 18-Jun-09 22:08 
AnswerRe: please tell me Pin
Manas Bhardwaj18-Jun-09 22:34
professionalManas Bhardwaj18-Jun-09 22:34 
AnswerRe: please tell me Pin
Christian Graus18-Jun-09 22:37
protectorChristian Graus18-Jun-09 22:37 
Questionhow to get imageurl of Dynamically created Image Button in click event ? Pin
garga118-Jun-09 21:33
garga118-Jun-09 21:33 
AnswerRe: how to get imageurl of Dynamically created Image Button in click event ? Pin
padmanabhan N18-Jun-09 22:33
padmanabhan N18-Jun-09 22:33 
GeneralRe: how to get imageurl of Dynamically created Image Button in click event ? Pin
garga119-Jun-09 0:38
garga119-Jun-09 0:38 
Questionif htmllink is inside template field of gridview [modified] Pin
vikas shukla18-Jun-09 20:27
vikas shukla18-Jun-09 20:27 

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.