Send Email to all Account related contacts
This is working example of Email to Account related Contacts in Visualforce Page For this code to work you need to concatenate your url with Account id. <apex:page controller="sendEmail"> <apex:messages /> <apex:pageBlock title="Send an Email to Your {!account.name} Representatives"> <p>Fill out the fields below to test how you might send an email to a user.</p> <br /> <apex:dataTable value="{!account.Contacts}" var="contact" border="1"> <apex:column > <apex:facet name="header">Name</apex:facet> {!contact.Name} </apex:column> <apex:column > <apex:facet name="header">Email</apex:facet> {!contact.Email} </apex:column> </apex:dataTable> <apex:form > <br /><br /> <apex:outputLabel value="Subject" for="Subject"/>:<br /> <apex:inputText value="{!s...