
正文
vb.net邮件客户端 用vba发邮件
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
我用vb.net 弄了个jmail接收邮件,但是运行报错,请各位帮忙看下到底是什么问题,非常感谢!
JMAIL组件没有安装。或注册。。
最好下载4.4pro破解版安装。
或者regsvr32 注册下 dll文件
相关问答
Q1: 怎么在VB.net中编写发送邮件?
知道vb.net邮件客户端了 是vb.net邮件客户端你是用自己的邮箱做发信人的吧一定是vb.net邮件客户端你的邮箱没有开smtp服务权限vb.net邮件客户端,你到你的邮箱的设置里把“容许通过smtp发送邮件”选上就行了
Q2: 如何用VB.Net收发邮件
在Identity2.0里面封装了IIdentityMessageService接口,可以用来发送接收邮件。
看看
Imports System.Threading.Tasks
Imports System.Security.Claims
Imports Microsoft.AspNet.Identity
Imports Microsoft.AspNet.Identity.EntityFramework
Imports Microsoft.AspNet.Identity.Owin
Imports Microsoft.Owin
Imports Microsoft.Owin.Security
public function SendAsync(message as IdentityMessage) as task
dim credentialUserName = "邮箱登录名"
dim sentFrom = "你的邮箱地址"
dim pwd= "邮箱登录密码";
dim client as new System.Net.Mail.SmtpClient("smtp服务器地址")
client.Port = 25'mtp邮件服务器端口
client.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network
client.UseDefaultCredentials = false
dim credentials as new System.Net.NetworkCredential(credentialUserName, pwd)
client.EnableSsl = true
client.Credentials = credentials
dim mail as new System.Net.Mail.MailMessage(sentFrom, message.Destination)
mail.Subject = message.Subject
mail.Body = message.Body
return client.SendMailAsync(mail)
end function
关于vb.net邮件客户端和用vba发邮件的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。






