You need to sign in to do that
Don't have an account?
call SendMail() fail
I try to call the sforce API "sendMail" but meet some error!
The code is like as follow :
sforce.SendEmailResult[] ser = null;
sforce.Email[] m_mails = new sforce.Email[1];
sforce.Email m_mail = new sforce.Email();
m_mail.senderDisplayName = "AAA";
m_mail.subject = "Test Salesforce sendMail";
m_mail.replyTo = "a@a.a.a";
m_mail.saveAsActivity = true;
m_mail.emailPriority = EmailPriority.Highest;
m_mail.useSignature = true;
m_mails[0] = m_mail;
ser = binding.sendMail(m_mails); -----> running to this has the error occur
error message:
Must specify a {http://www.w3.org/2001/XMLSchema-instance}type attribute value for the {urn:partner.soap.sforce.com}
messages element.
My develop tool is using visual studio 2005 and the project creates by C sharp.
Thanks for your help~~~