Click here to Skip to main content
16,016,570 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am sending xml via a webrequest, and if the webrequest is successful, it creates an email.
however, I am currently getting a error, from the web response, such as- "The domain reply.domain.com doesn't have a valid MX record"

How can I setup up mx record for my email address?
C#
pubic static string xml()
{
XElement xeRoot = new XElement("mail_job");

XElement xeStatus = new XElement("subject", "Draft");
xeRoot.Add(xeStatus);

XElement xeDisplayDate = new XElement("from_name", "####");
xeRoot.Add(xeDisplayDate);

XElement xeDisplayTitle = new XElement("from_address", "info@reply.domain.com");
xeRoot.Add(xeDisplayTitle);

XElement xeTemplate = new XElement("reply_address", "info@reply.domian.com");
xeRoot.Add(xeTemplate);
}


 public static string WRequest()
{
string URL = Response.createEmailURL();
string method = "POST";
string postData = xml();

string responseData = "";
int statusCode;
//rest of the code

}


Any hints would be most helpful?
Thank you
Posted

1 solution

reply.domain.com is not exists ?
change it for some working address
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900