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
1answer
38 views

Trigger to send a email when fields are updated [closed]

I have one custom Object. I'm modifying and saving few records at a time. When i click on Next button these three records are saving. I need to send a email to all user under one profile whenever ...
0
votes
1answer
26 views

Sending Email from apex controller by calling an email template

I have an email template which I am calling it from a work flow rule. Also I have a check box in contact object, when I click on check box the email template will send email to the contact email ...
0
votes
1answer
31 views

Modify original email message in custom email service

I'm writing an email service and want to save a header value to EmailMessage object (custom field). As I understand the process is: New inbound email > Email Service is called > Email is inserted to ...
0
votes
0answers
26 views

How to add letter head in html email body?

I am trying to add letter head to the dynamic html email template in batch apex. But when i send email to the users I don't see any header added to the email. part of code from batch class : List&...
1
vote
0answers
15 views

What happens to emails being sent to orgwide address 'Return-Path' value

Some of our customers are replying to the 'Return-Path' value of emails being sent out by us (most likely through their email client or server settings, see my question here) I'd like to know what ...
0
votes
0answers
26 views

Image as a String in email method?

I have an image in String in a different method. I am trying this String to include in the HTML body of the other method, i.e SingleEmailMessage(). I have checked the Deliverability and its all mail....
1
vote
1answer
27 views

Calling Email Service from Process builder

We have a requirement where we have to send an email to a case's related Contact. We are trying combination of Macros (Service Cloud) and process builder. 1) We have tried with process builder to ...
2
votes
2answers
82 views

How to Test Messaging.sendEmail

Looking for some help/advice in writing a test class. The class I need to test is an apex class to schedule a report that needs to be sent to an external email address once a month as a .csv ...
8
votes
1answer
118 views

Convert application/octet-stream in E-mail Processing class

Context: e-mails are sent with text attachments from a Dynamics SL/SQL Database to a Salesforce e-mail processor. The text attachments contain a formatted file with data to be processed and imported ...
1
vote
1answer
18 views

Is it possible to use text from InboundEmail as a trigger for workflow?

I was wondering if it is possible to use a text or a key word from email subject or body to trigger a workflow that updates the date field. Can this be done only through apex? If so, is it related to ...
0
votes
0answers
29 views

Save and email the respective attachment as a pdf but it is not getting attached

I wrote my function currently. Functionality was to save the pdf and email it with the respective attachment. Here it saved but not attached in my email page. ​ public PageReference ...
0
votes
0answers
10 views

Not Receiving Test Preview Emails from SFMC

When I attempt to send an email proof to my personal company email and external emails to test the rendering of our email campaigns, I receive the emails but then after this occurs, if I send another ...
0
votes
2answers
45 views

Email not being sent from the apex code?

I have a variable which stores the base 64 image in string. I am trying to send that variable in email body using apex code. Below is code snippet: Public void submitNewForm() { msg=''; try ...
0
votes
1answer
29 views

We need to send out emails from Salesforce

We are dealing with big customer and our contacts emails are huge and it may vary from one day to another. We definitely understand this can’t be achieved in Salesforce because it will hit the ...
0
votes
0answers
12 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
18 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
22 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
65 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
33 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
12 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
41 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
80 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
62 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
35 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
86 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
48 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
25 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 ...
2
votes
1answer
24 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
16 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
35 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
39 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
42 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
29 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
16 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
25 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
33 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
46 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 Messaging....
0
votes
1answer
40 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
33 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
38 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
91 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
21 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
68 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
52 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
24 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
56 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
248 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 Neue",...
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 ...