function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MingChang.HouMingChang.Hou 

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~~~