Salesforce.com-Tips and Tricks
Greytrix is one of the oldest Sage Development Partner of two decades for Sage product lines and Reseller of Sage ERP and CRM. Greytrix has been awarded "Sage Partner of the Year" numerous times both as developers and resellers. In these blogs, Greytrix will endeavour to share its knowledge with regards to implementation, training, customisation, components and technology and help users to understand in depth techno – functional aspects of Salesforce.com To leverage the Greytrix advantage write to us at salesforce@greytrix.com
Follow us on LinkedIn Follow us on Twitter Follow us on Facebook Follow us on YouTube
Skip to content
  • Home

Send an Email with Attachment from Salesforce

By greysalesforce | March 29, 2017
12 Comments

This blog signifies how Salesforce user can send Email from Salesforce using the custom methods and design the Email layout as per their choice. User can develop email templates or craft an email with the help of apex code. For sending the mail the user can utilize triggers, workflow rules or process builder as per their wish. But what if the user wishes to send an email along with the attachment. Well, this is where Salesforce is currently falling short.

Get more from Salesforce CRM | Salesforce Development Services

Although the user can send an email from Salesforce by using various methods, sending an email along with attachments is not quite possible. So, here’s a step by step guide on how to send an email along with attachments from Salesforce. The components that we will require for this functionality is a VisualForce page and an Apex class.

1. Create an Apex class and use the code mentioned in the below image.

Apex class

Apex class

Apex class

Apex class

2. Now for VisualForce page, use the below mentioned code.

Visualforce page

Visualforce page

The apex class consists of logic that will store the attachment and then send the mail accordingly. The VisualForce page is a mere interface which simply helps in implementing the functionality.

The user enters the email address in the field “Send To” and then enters the respective Subject and the body of the mail. The user then clicks on “Browse” to select the file to be sent as an attachment and then the user clicks on “Attach & Send”. Once the user clicks on this button the attachment selected gets stored/inserted into Document object and the mail is sent along with attachment to the mentioned email address.

Interface

Interface

Email

Email

Email recieved by the recipient

Email recieved by the recipient

About Us
Greytrix as a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners across the globe. We offers Consultation, Configuration, Training and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that requires apex code incorporation into the Salesforce platform.

Greytrix has some unique solutions for Cloud CRM such as Salesforce integration with Sage Enterprise Management (Sage X3), Sage Intacct, Sage 100 and Sage 300 (Sage Accpac). We also offer best-in-class Cloud CRM Salesforce customization and development services along with services such as Salesforce Data Migration, Integrated App development, Custom App development and Technical Support to business partners and end users.

Greytrix GUMU™ integration for Sage ERP – Salesforce is a 5-star app listed on Salesforce AppExchange.

For more information, please contact us at salesforce@greytrix.com. We will be glad to assist you.

Related Posts

  • Adding/Creating Feildset in Salesforce.
  • Translate Picklist into Multiple Languages
  • Access frequently used Salesforce pages, Reports, Dashboards and others by using shortcuts

Category: Salesforce Services Tags: Apex Class, Apex Triggers, Classic Email Templates, Email Attachment, Email File Attachment, Process Builder, Salesforce Auto Email, Salesforce Auto Email Attachments, Salesforce Development, Salesforce Email Attachment, Salesforce EmailTemplate, Send Email Via Salesforce, SingleEmailMessage, VisualForce Page for email, Workflow rules
Post navigation
← Add a Utility bar to your Lightning Apps Two-factor Authentication →

Greytrix Websites and Blogs

  • Greytrix
  • GUMU™ Cloud
  • Greytrix Africa
  • Greytrix Australia
  • Sage X3 – Tips, Tricks and Components
  • Sage 100 & 500 ERP Tips and Tricks
  • Sage 300 – Tips, Tricks and Components
  • Sage CRM – Tips, Tricks and Components
  • Sage Business Cloud – Tips, Tricks and Components

GUMU™ Salesforce Sage Integration

https://www.youtube.com/watch?v=X9Dg4uwGT-0

Categories

  • GUMU™ Features
  • GUMU™ Salesforce
  • GUMU™ Tricks & Tips
  • Salesforce Services
  • Uncategorized
sage enterprise management services

Recent Posts

  • How to Upload Logo in Salesforce CPQ Template
  • How to Use Custom Permission in Salesforce?
  • Set default address code initially for Sage X3 in Salesforce using GUMU™ Lightning Version
  • Primary Contact Promotion from Salesforce to Sage 300 Cloud Using Salesforce Lightning Version
  • Updated PDF Format of Customer Transactions from Sage 300C for faster response from GUMU™ Real-Time Inquiry – Part 2

Popular blogs

  • Thinking of enhancing your business processes? Get the best ERP – CRM connector on Salesforce AppExchange!
  • GUMU™ for Salesforce – Sage ERP Integration
  • Leverage real-time enterprise data for better insights of your Customers with Salesforce – Sage 300 integration
  • GUMU™ Integration for Salesforce with Sage 300

Archives

Awards

Greytrix Top ISV Partner
Greytrix Revenue Growth Enterprise Business
Greytrix Africa Highest Revenue
Greytrix Prtner of the Year
Greytrix Partner Award
Copyright 2023
Salesforce.com-Tips and Tricks
Iconic One Theme | Powered by Wordpress