相关疑难解决方法(0)

在SMTP电子邮件VB.NET的主体中添加多行

我可以使用此代码在Exchange服务器上发送电子邮件

Try
        Dim SmtpServer As New SmtpClient
        Dim mail As New MailMessage
        SmtpServer.Credentials = New Net.NetworkCredential()
        SmtpServer.Port = 25
        SmtpServer.Host = "email.host.com"
        mail = New MailMessage
        mail.From = New MailAddress("myemail@email.com")
        mail.To.Add("otheremail@email.com")
        mail.Subject = "Equipment Request"
        mail.Body = "This is for testing SMTP mail from me" 


        SmtpServer.Send(mail)

    catch ex As Exception
        MsgBox(ex.ToString)
    End Try
Run Code Online (Sandbox Code Playgroud)

但是如何在身体上添加多条线?

vb.net smtp

6
推荐指数
1
解决办法
3万
查看次数

标签 统计

smtp ×1

vb.net ×1