The text of this article is not in this database — only its details are. Read it on the old site: How to create Session
4 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: How to create Session
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
bhagender singheditedPosted Feb 11, 2011, 11:06 PMEdited Feb 11, 2011, 11:07 PM
sir meri niche di gayi coding work nahi kar rahi hai i odn knwo y can u pls help me out plsssss ///////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net.Mail; namespace smtp { public partial class Form1 : Form { public SmtpClient client = new SmtpClient(); public MailAddress msg = new MailAddress(); public System.Net.NetworkCredential smtcred = new System.Net.NetworkCredential("[email protected]","***********"); public Form1() { InitializeComponent(); } public void sendmail(string sentTo,string sendFrom,string subject,string body) { try { //smtp hostsetup client.Host = "smtp.gmail.com"; client.Port = 465; client.UseDefaultCredentials = false; client.Credentials = smtcred; client.EnableSsl = true; //convert string to mailaddress MailAddress to = new MailAddress(sentTo); MailAddress from = new MailAddress(sendFrom); //setupp message setting msg.Subject = subject; msg.Body = body; msg.From = from; msg.To.Add(to); //send mail client.Send(msg); } catch (Exception ex) { MessageBox.Show(ex.Message,"ERROR"); } } private void Form1_Load(object sender, EventArgs e) { } private void snd_email_Click(object sender, EventArgs e) { sendmail("[email protected]","[email protected]","hello dear i m yuvraj","yah it's works"); } } }
bhagender singhPosted Feb 9, 2011, 10:32 PM
can u help me mujhe default.aspx page se navigate kartey huey default3.aspx page par sesison ke through data le jaana hai
suhail pawanePosted Jan 25, 2011, 4:44 AM
its really helpfull