发送电子邮件将任何单词扔给其他任何工作 [英] send email throw any netword to any other nerwork

查看:107
本文介绍了发送电子邮件将任何单词扔给其他任何工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Using System.net.mail;             
 MailMessage mail = new MailMessage();
                SmtpClient SmtpServer = new SmtpClient("smtp.leadforce.in");
                SmtpServer.Host = "50.97.99.170";
                mail.From = new MailAddress("rajaservice88@gmail.com");
                mail.To.Add(TextBox1.Text);
                mail.Subject = TextBox2.Text;
                mail.Body = TextBox3.Text;
                mail.Priority = MailPriority.High;
                SmtpServer.Port = 25;
                SmtpServer.Credentials = new          System.Net.NetworkCredential("vertex@leadforce.in", "password");
                SmtpServer.EnableSsl = true;
                SmtpServer.Send(mail);
                Label1.Text = "send msg";


我想通过我的网站Leadforce.in-
发送邮件引发hostgotor host hostgotor smtp详细信息-25后,host-Host ="50.97.99.170";
与我的页面email.aspx在一起,但是我无法发送邮件将我的网站丢给我.如果我们的脚本有任何错误,请帮助我,当我们说hostgotor时,他们告诉我我的脚本有错误,请检查并帮助我.
谢谢!


I want to send mail throw hostgotor with my site leadforce.in-
host hostgotor smtp details- post-25, host-Host = "50.97.99.170";
with my page email.aspx , But I can''t send mail throw my site. Please help me if we have any error in my script, when we say hostgotor , they told me error in my script ,please check it and help me .
Thanks !

推荐答案

最有可能是凭据中的问题.

但也许此链接可以帮助您:

http://support.winhost.com/KB/a650/how- to-send-email-in-aspnet.aspx [ ^ ]
Most probably the problem seems like in the credentials.

But may be this link can help :

http://support.winhost.com/KB/a650/how-to-send-email-in-aspnet.aspx[^]


这篇关于发送电子邮件将任何单词扔给其他任何工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆