本文介绍了如何在文本框字体是印地语时使用c#窗口应用程序发送电子邮件.....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文本框,字体是印地文我想在印地文发送邮件可以吗



我的代码是这样的:



 MailMessage message =  new  MailMessage(); 
SmtpClient smtp = new SmtpClient();

message.From = new MailAddress( [email protected]);
message.To.Add( new MailAddress( + dataGridView1.Rows [kk] .Cells [ 2 ]。Value.ToString()+ ));
message.Subject = + tb_subject.Text + ;
message.Body = + tb_ptrank.Text + Environment.NewLine + tb_body.Text + ;

smtp.Port = 587 ;
smtp.Host = smtp.gmail.com;
smtp.EnableSsl = true ;
smtp.UseDefaultCredentials = false ;
smtp.Credentials = new NetworkCredential( 电子邮件 pwd);
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.Send(message);
解决方案

i have a textbox that font are hindi i want send mail in hindi can it possible

my code is like that:

MailMessage message = new MailMessage();
                  SmtpClient smtp = new SmtpClient();

                  message.From = new MailAddress("[email protected]");
                  message.To.Add(new MailAddress("" + dataGridView1.Rows[kk].Cells[2].Value.ToString() + ""));
                  message.Subject = ""+tb_subject.Text+"";
                  message.Body = ""+tb_ptrank.Text+ Environment.NewLine+ tb_body.Text+"";

                  smtp.Port = 587;
                  smtp.Host = "smtp.gmail.com";
                  smtp.EnableSsl = true;
                  smtp.UseDefaultCredentials = false;
                  smtp.Credentials = new NetworkCredential("email", "pwd");
                  smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
                  smtp.Send(message);
解决方案


这篇关于如何在文本框字体是印地语时使用c#窗口应用程序发送电子邮件.....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 16:41