Posted on: 10/3/2014 1:38:36 PM | Views : 454

Dear all, 
I am writing to seek help, in how can I send email with a mx-record through XML.  
I am trying to send email via XML to 3rd party client through a web request and in order to send the email, i need to pass a email (####@gmail.com)  to my XML code and bind the gmail address to the mx-record (alt3.gmail-smtp-in.l.google.com). 
I am little unsure, how bind together mail address and its mx-record.  I could not find much examples online, to help me build the logic. 
I currently have a XML method and mx-record look-up method, as shown below:
public static string mailMX() { string domainName = "gmail.com"; string mail = ""; var response = DnsClient.Default.Resolve(domainName , RecordType.Mx); var records = response.AnswerRecords.OfType<MxRecord& ...

Go to the complete details ...