如何使用Visual Basic向000webhost电子邮件提供商发送电子邮件? [英] How do I send emails to 000webhost email provider with Visual Basic?

查看:97
本文介绍了如何使用Visual Basic向000webhost电子邮件提供商发送电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 www.000webhost.com 上有一个帐户。这个免费的虚拟主机还为您提供了网络电子邮件帐户.-我已经注册了一个:) -



我想要的是将带有Visual Basic Windows窗体的电子邮件发送到该电子邮件服务器。

我们都知道我们可以用Gmail做到这一点....



I have an account at www.000webhost.com. This free webhosting also gives you web-emails accounts.-I have register one :)-

What I want is to sent emails with Visual Basic Windows Forms to that email server.
We all know that we can do this with Gmail....

MyMailMessage.From() = New MailAddress("gmail-account")
            MyMailMessage.To.Add("gmail-to.send;)
            MyMailMessage.Subject = "anything"
            MyMailMessage.Body = "anything"
            Dim SMTP As New SmtpClient("smtp.gmail.com")
            SMTP.Port = 587
            SMTP.EnableSsl = True
            SMTP.Credentials = New System.Net.NetworkCredential("gmail-account", "gmail-password")
            SMTP.Send(MyMailMessage)





我还会写下你需要的信息来找到可以做到这一点的代码。



信息:



要配置Outlook Express等电子邮件客户端,您需要以下详细信息:



接收邮件服务器类型: POP3 IMAP

接收邮件(POP3 / IMAP) )服务器:mx.000webhost.com

传出(SMTP)服务器:您需要使用您的ISP(Internet服务提供商)SMTP服务器。致电您的ISP以了解您的SMTP(邮件发送)服务器。如果您无法获得SMTP服务器,可以使用WebMail进行电子邮件发送。



他们的网络邮件客户端 RoundCube ,AtMail,SquirrelMail





你能帮帮我们吗?



提前致谢,

GeorgeGkas



I will also write the Informations you will need to find a code that can do this.

Informations:

To configure email client such as Outlook Express you need these details:

Type of incoming mail server: POP3 or IMAP
Incoming mail (POP3 / IMAP) server: mx.000webhost.com
Outgoing (SMTP) server: you need to use your ISP (Internet Service Provider) SMTP server. Call your ISP to know your SMTP (mail sending) server. In case you are unable to get SMTP server, you can use WebMail for email sending.

Their webmail clients are : RoundCube , AtMail , SquirrelMail


Can you help me guys?

Thanks in advance,
GeorgeGkas

推荐答案

这篇关于如何使用Visual Basic向000webhost电子邮件提供商发送电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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