我用什么作为MX记录的主机名? - Mailgun

时间:2018-01-14 18:31:12

标签: mailgun

抱歉新手问题。

在MX记录的Mailgun文档中,doesn't state要使用的主机名。

所以我使用了default domain name,就像example.com一样。但这似乎不起作用。我的TXT和CNAME记录已经过验证,但我的MX记录不是。

我应该将什么作为验证MX记录的主机名?

2 个答案:

答案 0 :(得分:4)

我已将我的域名设为mg。(mydomain).ca。因此,在将主机名更改为mg之后,它才起作用。

答案 1 :(得分:0)

public void OnComplete(object Capture, string ReaderSerialNumber, DPFP.Sample Sample) { Bitmap bitmap; bitmap = ConvertSampleToBitmap(Sample); Bitmap img = new Bitmap(bitmap, Picture.Size); this.Invoke(new Function(delegate () { Picture.Image = img; // fit the image into the picture box //string ping; using (MemoryStream m = new MemoryStream()) { img.Save(m, ImageFormat.Bmp); m.Position = 0; DPFP.Template Template = new DPFP.Template(m); MemoryStream fingerprintData = new MemoryStream(); Template.Serialize(fingerprintData); fingerprintData.Position = 0; BinaryReader br = new BinaryReader(fingerprintData); Byte[] bytes = br.ReadBytes((Int32)fingerprintData.Length); string ping = BitConverter.ToString(bytes); MySqlConnectionStringBuilder connBuilder = new MySqlConnectionStringBuilder(); connBuilder.Add("Server", "localhost"); connBuilder.Add("Port", "3306"); connBuilder.Add("Database", "db_fingerprint"); connBuilder.Add("Username", "root"); connBuilder.Add("Password", ""); MySqlConnection conn = new MySqlConnection(connBuilder.ConnectionString); MySqlCommand cmd = conn.CreateCommand(); cmd.CommandText = "INSERT INTO tbl_finger VALUES(@finger_id, @finger_tag, @stud_id)"; cmd.Parameters.AddWithValue("finger_id", ""); cmd.Parameters.AddWithValue("stud_id", txtstud_num.Text); cmd.Parameters.AddWithValue("finger_tag", ping); conn.Open(); int a = cmd.ExecuteNonQuery(); if (a > 0) { MessageBox.Show("Fingerprint Registered."); cmd.CommandText = "UPDATE tbl_students SET is_registered = 1 WHERE stud_id = '" + txtstud_num.Text + "';"; cmd.ExecuteNonQuery(); } else { MessageBox.Show("No Fingerprint Registered."); } conn.Close(); } })); } 将允许您通过@而不是callme@ho.mecallme@mail.ho.me来发送电子邮件。