Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [apex-email-service]

Email services are automated processes that use Apex classes to process the contents, headers, and attachments of inbound email.

Filter by
Sorted by
Tagged with
2 votes
0 answers
57 views

Customize the standard outbound email from Salesforce

We have enabled EnhancedEmail in our org and our users are able to email the customers directly from Contact record as shown below Since this sending of email from Salesforce to a contact is a ...
Exps's user avatar
  • 263
0 votes
0 answers
16 views

Case creation through Email after combining approx. 18 mailbox - Suggestion requested for Solutioning

We are working to migrate our 18 mailboxes from different domains to one domain and business wants that there should be only one mailbox i.e [email protected] Now, this is interesting ask, ...
Tarun Kumar's user avatar
0 votes
0 answers
42 views

Outlook button to update/delete a record in salesforce

The use case is - A subscriber (contact) is sent an email regarding a specific product to which he's subscribed to. At the end of the email is "Unsubscribe" button through which he can ...
Pooja's user avatar
  • 11
0 votes
0 answers
118 views

Apex Email Service incoming emails - how to properly trim down body size?

I built an apex email service setup to receive email communications on our Lead and Opportunities, and very quickly I started receiving a lot of "Undeliverable" errors due to the email body ...
robb.blob's user avatar
0 votes
0 answers
87 views

Email service is not running

I have an apex class sending an email to a custom email service, The email service is either not running, or is not working. Apex snippet that sends the email to the service: public static void ...
Trace's user avatar
  • 127
0 votes
1 answer
56 views

When inserting a EmailMessage manually, the Activities Timeline shows "Upcoming & Overdue" but one that is autogenerated by SFDC is bucketed via month

Perhaps it isn't possible, but I find it strange that autogenerated EmailMessage records are bucketed into the correct month, but manually inserted EmailMessage records show up as "Upcoming & ...
rmarq423's user avatar
  • 967
0 votes
0 answers
223 views

Custom email to case: Inline images not visible in email object

We have enabled custom email to case for our client. When an email is sent with inline image, the images are added as a attachment under Attachment/ Notes of Email message object. But I'm unable to ...
Sfdc Developer's user avatar
-1 votes
1 answer
144 views

Request.getCurrent().getRequestId() returns null

I implemented one feature where either a case is created from chat, api, UI, or Email, I am trying to get Request.getCurrent().getRequestId(). I tried creating an case from email but Request....
Sukruti's user avatar
  • 462
0 votes
0 answers
162 views

Email service - Missing inline images from the inbound emails

I am using apex class and email service to create records on a custom object. The problem is when a client sends an email with inline images, it does not appear in the email body in Salesforce. ...
Marjan's user avatar
  • 15
-1 votes
1 answer
1k views

Email reply should be captured to lead object record from where email is sent

I have a scenario Like. From lead object through activity email is sent to customer if customer replies to that email i have to show that reply in activity of that particular record in lead object.can ...
AdityaSD's user avatar
0 votes
1 answer
813 views

Insert failed. REQUIRED_FIELD_MISSING, Required fields are missing: [External Data Source]: [External Data Source]

I am trying to store the attachments from an incoming email to the ContenDocument, ContentVersion, and ContentDocumentLink objects. Below is the method/function: @testVisible private static void ...
Marjan's user avatar
  • 15
0 votes
0 answers
113 views

Attach files from inbound emails to multiple records

We are using email service and apex class to create records on a custom object whenever an email is received. If the email contains an attachment, it is attached to the 'Notes & Attachment' under ...
Marjan's user avatar
  • 15
0 votes
1 answer
74 views

Apex Email Service Blocking External Emails

I recently created an email service In my production org. The email service creates contacts from emails sent to the service address. The handler works when I send it emails from my company email, but ...
Ryan Sherry's user avatar
0 votes
0 answers
108 views

Email Opt out field on Contact - usage

We have the Email opt out field on Contact, lead, Person account I am trying to find a documentation that specifically mentions the usage or this field. With individual object, we can control finer ...
SEuser's user avatar
  • 1,855
0 votes
0 answers
146 views

Email service class not creating records for custom object

I am using Salesforce email service to create records on a custom case object when an email is received. I have the following apex class that handles the incoming emails. It is working fine for ...
Marjan's user avatar
  • 15
0 votes
0 answers
203 views

Getting error 'Invalid type: EmailMessage'

I have create one class which implements Messaging.InboundEmailHandler. It was working fine until now, but now I am getting Invalid type: EmailMessage while editing the class. And, when testing the ...
Ruturaj Chothe's user avatar
0 votes
1 answer
412 views

Forwarded emails not creating a case record in Salesforce

We are using a custom object (TT_Case__c) to create records/cases whenever an email is received on our work email address. I have created an email service in Salesforce which uses the following apex ...
Marjan's user avatar
  • 15
1 vote
0 answers
75 views

Error implementing EmailServicesFunction metadata

I am trying to implement EmailServicesFunction metadatservice but getting error when I execute it in anonymous window. Error occured processing component NotificationReplyService. An Apex Class must ...
karan bilakhiya's user avatar
2 votes
0 answers
763 views

Cannot access sObjectType 'OrgWideEmailAddress'

I am encountering an exceptionally unusual issue. I have a User A (running under Profile A). This profile has minimal permissions. It has only Permission Set A Permission Set A gives "View Setup ...
jreid42's user avatar
  • 121
-2 votes
1 answer
235 views

Email SendTo addresses using custom Label is showing invalid email error [closed]

Following code showing error : EXCEPTION_THROWN [105]|System.EmailException: SendEmail failed. First exception on row 0; first error: INVALID_EMAIL_ADDRESS, Email address is invalid: List<...
Mona's user avatar
  • 3
0 votes
1 answer
352 views

Inbound email creates new record instead of linking the email to original record

I am using email service and apex to automatically create records on custom object when a client sends an email to the address defined in email service. The record does get created and we can also ...
Marjan's user avatar
  • 15
0 votes
0 answers
263 views

apex email to case image not showing in Description field(RichText)

I have the following code to create Email-to-Case using Apex. The issue I am having is when an image is sent in the email body I am getting a broken image. can someone point me what is the mistake ...
Tamil's user avatar
  • 724
0 votes
1 answer
471 views

Email Routing in Gmail to Email Service Address in Salesforce

I am setting up Email Services in Salesforce. I have created an Apex Class which performs a logic and have created a new Email Service Address as well. When, I send an email to the new Email Service ...
Madhurima's user avatar
  • 1,395
1 vote
1 answer
113 views

Custom log for outbound email apex

I'm writing a somewhat generic class for my organization. The goal is to allow to send email using apex with a one line call. This is working nice but I would like to offer some logs when we have a ...
Julien Souchi's user avatar
0 votes
2 answers
478 views

I want to send an email to Opportunity owner when the quote's expiry date is tomorrow using batch apex

I have tried the below code but it is not working.It is showing error like 'variable does not exist:SBQQ__ExpirationDate__c' Can anyone help me in this. public class Task2 implements Database....
Raju's user avatar
  • 7
0 votes
1 answer
84 views

Beginner Apex Class - For Cases [closed]

I was thrown into the Salesforce position (without training) and I am being asked to create a way for incoming emails to cases to be parsed out into the details section. The incoming emails always ...
ben's user avatar
  • 1
0 votes
2 answers
2k views

Relating an Email Message To Task is it Possible?

I have a requirement that involves an email service. In the email service I should be Creating a Task (Done) and creating an email message and put it as a related Object Under the Task that is created....
Snorlax's user avatar
  • 37
0 votes
0 answers
169 views

Apex code to trigger email is not sending Email from Einstein bot

I'm calling an apex from Einstein bot to send an Email. The apex code is running fine and its returning success = True but I'm not receiving Email on the recipient side. I have checked access of apex ...
Vishal's user avatar
  • 1
0 votes
0 answers
110 views

Verfication Email link from 'EmailToApexHandler' doesn't work

I have followed the steps outlined in the answer of how-to-leverage-org-wide-email-address-within-an-email-service to verify the Email Service Address generated by Salesforce. I'm attempting to verify ...
Ram's user avatar
  • 11
1 vote
3 answers
2k views

Sending email functionality is not working for site guest user of org

We have one visualforce page which is working fine previously for sending emails but now it is not working. All other functions from that visualforce page are working fine But send mail functionality ...
Darshana's user avatar
1 vote
1 answer
1k views

Sending Email from Guest User Profile- Email No Receiving Email

I have created an LWC with a form by collecting the basic info, Then i will be sending the info to the email service. Below is the code string emailAddress = GetEmailServiceAddressUtility....
SK2889's user avatar
  • 919
0 votes
3 answers
4k views

Not able to send email using Messaging.sendEmail if I am Community Guest User

Requirement: Take input (Name, Phone) from user into LWC modal and on click of submit button fire email, using Apex Messaging class, if user is Community Guest User. Current Issue: When logged in as ...
Aastha 's user avatar
0 votes
1 answer
2k views

Inbound Email Activity History

Is there a way to have inbound emails on the Activity History? We want to see inbound emails on the Activity history in lightning. There is the email related list but we want all the inbound outbound ...
user107526's user avatar
0 votes
1 answer
5k views

Email To Case Thread Id linking issue

I observed our sandbox does not have Thread id feature as we have created this org after recent release of salesforce where Message-ID and reference header is activated. What I want is that customer ...
Sukruti's user avatar
  • 462
0 votes
1 answer
998 views

Assignment rule not firing from Global action "New case"

I have a case assignment rule which works well when creating new cases from the cases list view. But I have a Global action, "new case" when I try creating case from here, assignment rule is ...
user2233326's user avatar
1 vote
1 answer
916 views

Validation rule on email global action

I have a requirement where the users will be sending outbound emails from lead, opportunity and other custom object records. Now, the recipients of these emails will be internal salesforce users, but ...
SFDCUser's user avatar
0 votes
1 answer
627 views

Issue with Inbound emails tracking in Salesforce

I have an email service which creates a task when an inbound email comes to salesforce. I have created this on opportunity and the logic is as follows: global class OppsEmailService implements ...
SFDCUser's user avatar
0 votes
0 answers
734 views

Removing hyperlink/converting to plain text in inbound email handler

I have an inbound email service that parses through emails and fills in the relevant fields in salesforce records- including a field identifying which team completed the work. The email contains the ...
LXerson's user avatar
  • 11
1 vote
2 answers
1k views

Can we show a pop up message when an email is received in Salesforce?

We are sending an email message from custom LWC component embedded in a record detail page in Salesforce. When the recipient replies to that email, the reply comes to Salesforce through email service ...
Sarang's user avatar
  • 2,585
1 vote
0 answers
1k views

Email to Case using Apex: Right contact not populating in email message

I am using custom email to case Apex class to create case records. After the case is created I am changing the contact name to some other person. When I goto the email composer salesforce is picking ...
Tamil's user avatar
  • 724
0 votes
1 answer
699 views

getCaseIdFromEmailHeaders input from Messaging.InboundEmail type issue

I am trying to use the function getCaseIdFromEmailHeaders from a custom email service in Salesforce. I am not sure what I am missing. The class already implements... public Messaging....
Crash667's user avatar
  • 239
3 votes
1 answer
7k views

sending html email from APEX using templates

When I am doing a test send using the data in the quote object record, I am getting an html formatted email with values. In the doc: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/...
Col's user avatar
  • 71
1 vote
1 answer
2k views

Sending Lightning Email Template from Apex code

I'm trying to send an Lightning Email Template via APEX, have not been able to do so. I get no exception or anything, just no email gets sends. With various System.debug() commands I'm able to ...
JonB's user avatar
  • 133
0 votes
0 answers
245 views

Attachment is getting blank while sending email via Apex

I have created the below class for sending an email from Apex public with sharing class GivingStatementControllerNew { @AuraEnabled public static boolean sendEmail() { String [] toAddresses = ...
Dhruv Patel's user avatar
2 votes
1 answer
1k views

Calculate Incoming Email Size

I am using an Email Handler for inbound emails and we are wanting to do some tracking on the size of incoming emails. We will eventually be putting some limits on max attachment sizes that we want to ...
SBB's user avatar
  • 173
1 vote
1 answer
296 views

Apex Email CPU Limit

I am facing Too many SOQL Error. Reason: Using "renderStoredEmailTemplate" method inside for loop that counts against SOQL query for every iteration. global class FlowInput { @...
Adarsh Srinivasan's user avatar
0 votes
1 answer
473 views

Messaging.InboundEmailHandler email test class not covering whole class [duplicate]

Please help cover bold lines dont know why email.plainTextBody.length() >=255 is not covering if(email.plainTextBody!=null && email.plainTextBody.length() >=255) { bodyString= email....
priya dhawan's user avatar
0 votes
1 answer
732 views

Call to Messaging.InboundEmailResult handleInboundEmail from other apex method

I have the email service class "Messaging.InboundEmailHandler" I create visualforce email template"CreateLead" I create visulforce component "createLead" Now I want to ...
user avatar
0 votes
1 answer
2k views

Can we deploy EmailServicesAddress in Email Services between orgs using change set or otherwise?

I have developed an email service from Setup --> Email service that will receive inbound email to an email address specified in this service. I am able to deploy this Email Service using change set ...
Sarang's user avatar
  • 2,585
0 votes
0 answers
3k views

Flow does not allow organization wide mail address if automated mail address

I created a flow which send email to the customer. The flow used the organization-wide email address. The email address is user a specific email. But if the customer answers the email it will be sent ...
peXeq's user avatar
  • 471

1
2 3 4 5
9