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

learn more… | top users | synonyms

0
votes
0answers
4 views

extend a class that implement Messaging.InboundEmailHandler (email service)

I use to develop in java where i can extend a class that implement an interface. This way, the child-class implement the interface too and extends the overrided methods. I am trying to do the same ...
1
vote
0answers
17 views

Can we send the follow up emails on the already send system email?

I have a requirement, as per which the system sends an email notification in each quarter to the Account contact for some document submission. Now, the system has to send a follow email after every 7 ...
1
vote
1answer
16 views

Email Service creating FeedPost not sending notification

I have a chatter group who members are set to receive notifications upon every chatter post. If I create a feeditem post via the UI or via APEX the users immediately get a email notification of the ...
2
votes
1answer
30 views

No Limit on Sending Individual Emails to Contact, Leads, Person Accounts and Users

As per the documentation: Single emails sent using the Salesforce application don't count toward this limit. There’s no limit on sending individual emails to contacts, leads, person accounts, ...
0
votes
1answer
29 views

Email received from Salesforce has weird 'Via' string

When I send an Email from SF to someone as myself(John Doe(john@johndoe.com), user receiving the email has some weird 'Via' string displayed along with my name when viewd in Gmail. Eg. John Doe via ...
1
vote
0answers
11 views

Options for a Simple Inbound Notification Methods to Trigger some processes

I have a dataloader process that pushes data into several different orgs. The process starts once a complex extract process has completed and created a set of files. I'd like to change the process ...
1
vote
2answers
25 views

Send Email only if the field value changes

I have a below trigger created where I use a field called Hiring Manger to identify the user's email id and send an email to the person that a project is assigned to them. But my trigger runs every ...
1
vote
1answer
72 views

Too many Email invocation with writing batch Apex Class

I have a legacy code in which it is sending email to a bulk of contacts. If the date range I'm selecting is more, I'm getting Too Many Email invocation error. I have also attached the picture of ...
0
votes
1answer
58 views

Trigger An Email

I need some assistance. We would like to set up an email to be sent the day after someone has attended one of our events. Any thought on how that can be done? Thanks ! It's based on the Campaign ...
1
vote
3answers
27 views

How to write apex batch class to avoid too many email invocation send email

I have a code in which is basically used to send email about appointments But when I try to send for a bunch of people for a date interval. The number of email to be sent is increased and as a result ...
3
votes
2answers
83 views

Do email results come in the same order as the list of emails

I populate a list of emails emailsToBeSent and send them all at once. However These emails are related to different sObjects. And to me it is important to know which sObject the returned results are ...
1
vote
1answer
45 views

why dynamic values are missing in emails?

I have email one email template. In that email template I'm Passing dynamic values like {!Student.Name}. But when i receive email the student name is not displaying. Here is my Html and Plain Text of ...
0
votes
0answers
23 views

Email services functionality failing for yahoo working fine in creating case

I am using email service which is working fine for google and other although fails for yahoo. I have tried debugging but unable to capture anything inside the debug log. Although the case is been ...
1
vote
0answers
17 views

Sending email licensing [closed]

I have a client who want to switch some features to salesforce. Requirements: 1. Sending email in regular bases (mass email). 2. Some notification email (single email). 3. Send a particular set of ...
2
votes
1answer
22 views

Asserts on sendEmail?

I've written a service class that sends emails based on a trigger. I've also written a test class that tests that code. All lines are covered. Here is my problem. How do I run an assert to ensure ...
0
votes
0answers
14 views

Inbound Email message association with Contact

In our org we have enabled Web-to-Case. Based on the region the Web-Case email associates with different different Account. And salesforce associates the email to a Contact. So, how can I restrict ...
2
votes
1answer
23 views

Does enabling Compliance BCC Emails include mail sent from APEX classes?

If the option Compliance BCC Email is enabled, will emails sent from APEX classes be bcc'd as well? Also I am assuming it includes mails from Workflows. Thanks Nawshine
0
votes
1answer
37 views

Method doesn't exist setToaddress issue

I have below class where I am getting error : Method does not exist or incorrect signature [Messaging.SingleEmailMessage].setToAddresses(String) Apex class public class MailerUtils { ...
0
votes
1answer
30 views

Yahoo Mail ID not working for email services

I am using email services and created a custom code. It works for all google or any personal domain. But the issue occur as when I use yahoo email address , I am unable to receive. Is there any ...
0
votes
0answers
21 views

How to display or catch the Undelivered or bounce emails through customization?

How to handle the undelivered or bounce emails?? I have written the below code: public class TestMassEmailClass { public void testMassEmailMethod(){ Messaging.SingleEmailMessage email ...
0
votes
0answers
15 views

Content Type changes to html required PDF

I have below piece of code where multiple PDFs are getting attached and mail sent to logged in User. Number of attachments to be done is variable. Issue is for bulk attachments (say 21 attachments) , ...
0
votes
1answer
29 views

Email class fails to trigger email

I have below email class that fails to trigger the email class. I am not getting the reason in debug log even. Can someone let me know where I am making the mistake? Apex class method public ...
0
votes
2answers
23 views

Email class Method incorrect error

My Email class is getting a compilation error as below. Can someone please help? Error Method does not exist or incorrect signature: [Messaging.SingleEmailMessage].setToAddresses(String) Apex ...
1
vote
0answers
26 views

Split a PDF apex page into separate PDF pages based on pagenumber

I have an Apex PDF page which I need to email to logged in User. Now when Page number exceeds 10 , I need to send in a separate PDF. Like if I have 15 Pages, PDF1 will have 10 pages , PDF2 will have 5 ...
0
votes
0answers
30 views

SingleEmailMessage not working

I tried this code in anonymous apex and I did not get an email. List<String> oid_updated = new List<String>{'1','2','3','4','5'}; Messaging.SingleEmailMessage mail = new ...
0
votes
1answer
37 views

how to extract and show signature in vf detail page?

this code is working and view all the data on my vf detail page but i want to extract signature like this is my mail hello salesforce -- Thanks and regards Vipin Indora mob no- 1234567890 i want ...
0
votes
1answer
22 views

Apex: if condition for if email has bounced or unconfirmed address

Is there something against a Lead I can query to see if email sent from Salesforce has bounced or if the email address needs confirming? Can't find anything in the docs. Thanks!
1
vote
1answer
34 views

Batch Job-Mass email Contacts

I have a batch job that emails contacts using a visualforce template. I am using SingleEmailMessage to email contacts as the template pulls data from each contact. my batch size is 10 and we have ...
1
vote
3answers
50 views

Mass email the Visualforce email template

We have a limitation using Visualforce email template. VF Email Template can't be used for mass email. I am look for the ways how this can be achieved. I have created a visalforce email ...
1
vote
0answers
18 views

will there be a delay in sending email for different id's

I have two contacts for which the email id's are say 123@abc.com for contact1 amd 234@xyz.com for contact2. When I send Email Message to 123@abc.com, I'm getting the email immediately. Whereas the ...
0
votes
2answers
50 views

Apex: HTML email status to get open count

I'm writing some Apex to list how many times a certain email has been opened. How can I access the "HTML Email Status" object from the lead? List<Lead> leads = [SELECT Id, Email, (SELECT Id, ...
1
vote
2answers
38 views

Any issue if too many future calls are set

I am sending email from my apex code using sendgrid API and after every call I am updating a flag in my object marking that email is sent. I am doing DML after every callout because somehow any error ...
0
votes
1answer
23 views

Apex: access lead email history to prevent resending

Can I access a lead's email history in Apex to see if they've already been sent an email from a timeframe/template combination? Or even something arbitrary like the email subject? public void send() ...
0
votes
0answers
17 views

Email Service : Emails not getting to my instance

Email service is working fine using outlook with attachment but fails when using a custom application. Can somebody please let me know how to debug to check further.Is there any email configuration ...
3
votes
2answers
50 views

How to know current Email governor limits?

I am using SingleEmailMessage api for sending emails. I want to know the email limit quota usage, so that I can prevent further exceptions. Is there any way to know the quota usage in apex, so that I ...
2
votes
1answer
107 views

Get Email Body with HTML Tags

I want to send an email in my logic. I have created an Email Template. Here is what I want to achieve: Email Template: <html width="600px"> <style>body{font-family:"Helvetica ...
0
votes
0answers
22 views

How to use Email Service addresses for Inbound?

I am attempting to use the Email Service address for Replies to certain Email Alerts. But we are unable to use Email Service addresses as Org-Wide addresses, and therefore we cannot use them as the ...
0
votes
1answer
37 views

Multiple email attachment failure

I have below code to send multiple email attachments in a single email which is throwing below error. Can some one please tell me what's wrong here? Code Snippet Messaging.EmailFileAttachment efa = ...
0
votes
0answers
21 views

Edit Email Template during the run

Can someone let me know how to replace "{!Compliance_Incident_abv__c.RepEmail_abv__c}" here with a parameter value passed to the method (not Using REGEX if possible)? I have an email template with ...
0
votes
1answer
236 views

Fail to send email by utility class

I have below utility class which throws error as this in debug log. Error INVALID_FIELD_WHEN_USING_TEMPLATE: When a template is specified, the plain text body, html body, subject, charset, and ...
0
votes
1answer
86 views

Sending mass emails in Salesforce using SendGrid or MailChimp

I am working on Salesforce App where there is a custom object named Distributor (Distributor__c). A distributor has primary email address as one of the fields. When a new distributor record is added ...
-1
votes
1answer
26 views

Regex expression [closed]

Can someone let me know regex expression for below? I have an email template with below text. Template Body Dear {!Compliance_Incident_abv__c.RepEmail_abv__c}, What you need to know: New ABS ...
0
votes
1answer
75 views

List<Messaging.SingleEmailMessage> + Lightning component - Sending emails from a lightning component

I am getting an error message that the email messaging method is not enabled for Aura components. Need sone help if I am going in the right direction or not. Thanks!
0
votes
0answers
41 views

close case object

how we can implement auto closing in case object ? The scenario is to get the cases closed automatically if the status remains the same for certain hours. What option we can use to implement this ...
0
votes
1answer
35 views

Reply to an outbound email sent from a Case record create a new case, as opposed to attaching to the Case in which the email was sent?

I am using sales force email services and email to case . It works fine for routing email , But when I used OWD email addresses and an outbound email , Then on user reply it results in creating a new ...
0
votes
1answer
106 views

Case's Ref ID or Thread ID when using Email Services with ORg wide email addresss creating new case on replying

I have enabled email services in salesforce , An was trying to use threadID for the reply. Although what i have found is that the routing address added in the email to case setting are working fine ...
0
votes
1answer
44 views

Fields related to my web service in the generated WSDL file not coming

I have a web service class and I need to generate WSDL . When I click button it is generating wrong WSDL. I don't see any of the fields related to my web service in the generated WSDL file. ...
1
vote
1answer
47 views

How to write unit tests for emails being sent via Apex?

If I send an email via Apex Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); mail.setTargetObjectId(someContactId); mail.setTemplateId(someTemplateId); ...
0
votes
2answers
22 views

Email body issue

I have tried to form the email body of a singleemail message as below but it is giving Line break errors. Can someone help me here? String body = 'Dear ' + OneMap.get(mycontact.ID).Rep_abv__r.Name + ...
0
votes
1answer
60 views

if we can use Email Services instead of Email-to-Case, but still use the Ref ID/Thread ID

Email Services addresses do not show up when selecting the FROM drop-down when sending an email from a case record. Therefore, it does not allow us to use the Thread ID or Ref ID, which means our ...