An external developer created apex to send an email to users when a form is submitted. The email works, but the sender email address that shows in the email appears to be the developer's email. I don't know how to change this. The correct ReplyTo address is set and the correct Sender DisplayName shows, but the developer's email address appears as the sender's email when you look closely at it. Also, the guy's picture shows up in Gmail with the message because he has that type of address. I don't want my users to see a person's picture that doesn't work at our company.
Email method from comments:
Messaging.SingleEmailMessage mailToSend = new Messaging.SingleEmailMessage();
mailToSend.setToAddresses(emailsAddress);
mailToSend.setReplyTo('[email protected]');
mailToSend.setSenderDisplayName('NIIMBL'); mailToSend.saveAsActivity = false;
mailToSend.setSubject('Membership Information');
mailToSend.setPlainTextBody('Thank you for contacting NIIMBL! A member of the
NIIMBL team will contact you shortly.'); Messaging.sendEmail(new
Messaging.SingleEmailMessage[] {mailToSend});