我注册了一个免费虚拟主机的账号。该站点提供MySQL数据库,我正尝试使用windows应用程序访问它,但无法连接到服务器。请考虑我的代码:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MySql.Data.MySqlClient;
namespace MySql
这是我的代码(是的,我审查了我的电子邮件/密码)(当你点击按钮时)
Dim Mail As New MailMessage
Mail.Subject = "test email"
Mail.To.Add("*****")
Mail.From = New MailAddress("*****") '
Mail.Body = "This is an email!"
Dim SMTP As New SmtpClient("smtp.gmail.com")
SMTP.EnableSsl = True
SMTP.Cr