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
bwinkleskybwinklesky 

email api

Does anybody know the exact syntax (VB or C#) to send an email using the email api?  so far i have something like this, but I can't get the "result" part to work correctly. Any help is appreciated!! 
 

Dim messages As SingleEmailMessage = New SingleEmailMessage()

messages.bccAddresses("test@test.com").ToString()

messages.toAddresses("test@test.com").ToString()

messages.plainTextBody = "test"

Dim result As sforce.SendEmailResult()

result = sfWebHost.sendEmail(messages)

werewolfwerewolf
In what way does it not work correctly?  Is it failing to compile, or does it give a runtime error?