所以我一直在尝试使用google的smtp服务器设置联系表单但是我在标题中写了错误。我试图在线查找解决方案,我已经将密码更改为强密码,我禁用了gmail帐户的安全性,我从服务器的Web浏览器登录到gmail帐户。关于如何解决这个问题的任何想法?
Dim strFrom = "EMAIL@gmail.com"
Dim strTo = "RECEPIENT@EMAIL.net"
Dim MailMsg As New MailMessage(New MailAddress(strFrom.Trim()), New MailAddress(strTo))
MailMsg.BodyEncoding = Encoding.Default
MailMsg.Subject = "This is a test"
MailMsg.Body = "This is a sample message using SMTP authentication"
MailMsg.Priority = MailPriority.High
MailMsg.IsBodyHtml = True
'Smtpclient to send the mail message
Dim SmtpMail As New SmtpClient
Dim basicAuthenticationInfo As New System.Net.NetworkCredential("EMAIL@gmail.com", "PASSWORD")
SmtpMail.Host = "smtp.gmail.com"
SmtpMail.Port = "587"
SmtpMail.UseDefaultCredentials = False
SmtpMail.Credentials = basicAuthenticationInfo
SmtpMail.Send(MailMsg)
答案 0 :(得分:0)
你是如此亲密。
您需要添加以下设置才能正常工作:
sendpraat 0 praat \
'runScript: "path/to/your/script", "1.wav", "1.TextGrid", 0.1, 0.2'