serendipiti
New Member
سلام
من از asp.net2.0 می خوام ایمیل ارسال کنم.این قسمت کد رو نوشتم.
MailMessage mail = new MailMessage();
//set the addresses
mail.From = new MailAddress("mymail.yahoo.com");
mail.To.Add("[email protected]");
//set the content
mail.Subject = "This is an email";
mail.Body = "to khari.";
//send the message
SmtpClient smtp = new SmtpClient("smtp.yahoo.com") ;
smtp.Send(mail);
اما تنطیمات web.config رو بلد نیستم.,نمی دونم که host رو چه جوری تنظیم کنم.اگه کسی میتونه کمکم کنه .ممنون میشم.
من از asp.net2.0 می خوام ایمیل ارسال کنم.این قسمت کد رو نوشتم.
MailMessage mail = new MailMessage();
//set the addresses
mail.From = new MailAddress("mymail.yahoo.com");
mail.To.Add("[email protected]");
//set the content
mail.Subject = "This is an email";
mail.Body = "to khari.";
//send the message
SmtpClient smtp = new SmtpClient("smtp.yahoo.com") ;
smtp.Send(mail);
اما تنطیمات web.config رو بلد نیستم.,نمی دونم که host رو چه جوری تنظیم کنم.اگه کسی میتونه کمکم کنه .ممنون میشم.