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

learn more… | top users | synonyms

4
votes
0answers
24 views

how to hide salesforce email address?

I have a requirement where... my company works for different clients(like Orange, Apple, Avacado,etc.) and it's customers. We send requests and quotes to different customers on behalf of different ...
1
vote
0answers
13 views

Embedding an image in PDF attachment using html tags and Blob.toPdf()

I want to add an image to a pdf I am creating and attach it to an email that I send via apex code. I am using html and Blob.toPdf() to make the pdf. I saw this post regarding Blob.toPdf()'s ...
1
vote
1answer
42 views

Inbound Email handler and to get only latest mail

I am writing an Inbound Email Apex Handler. My situation is that whenever we get a reply from a client through email to salesforce, I only want to parse through the mail that was sent now and not ...
1
vote
0answers
20 views

Regex works fine in regex101.com but get failed in salesforce api

Can anyone suggest what is not compatible with salesforce in below REGULAR EXPRESSION: (?s)^\s*Contact received.*(?-s)(?<=Phone Number:)\s*(.*) TEST STRING: Contact received E-mail Address: ...
0
votes
1answer
46 views

Email from trigger doesnt deliver from sandbox

I have written a custom trigger , which sends an email to a contact , "after update, after create". Using System debug messages I have ensured that the code is working as expected. but the issue is: ...
0
votes
1answer
36 views

Retrieve Inbound Email Service address in Apex

I need to create a system to allow customers to submit documents for approval automatically. The design is: A button on the lead/contact page to send a request for a document. That buttons sends an ...
1
vote
2answers
28 views

Read a summary report and based on each grouping value populate a VF page that will serve as attachment to a email?

I am working on a requirement where i have to read 2 summary reports and combine them based on some logic. I am able to get the response and written that response in a map, where key is the Summary ...
1
vote
2answers
41 views

Sending Email from a Lightning Component

I know it's possible to use server side Apex to send out emails but not sure about Lightning Component. I have a lightning component which contains a list of users and the associated "Email this ...
2
votes
2answers
30 views

See received emails in Activity History

Is there a way i can see all sent and received emails (related to a Case) in its "Activity History" Email-to-Case shows everything in Email related list. "Activity History" only shows the sent ...
0
votes
0answers
16 views

Email alerts when task follow up day matches today

I have a requirement to send email alerts to the user for whom the task was assigned when the follo-up date on task matches today. But seems to be there is no option for such type of workflows on ...
0
votes
2answers
87 views

how to store email sent from apex in email related list

I have implemented a functionlity in apex which on click of button sends email to contacts of specific case id. I want is that the email being sent should get stored in email related list of that ...
0
votes
2answers
39 views

Error: Compile Error: Initial term of field expression must be a concrete SObject

I am finding it difficult to resolve the error. Any insights would be helpful. It is showing error for this line String[] bccEmail = new String[]{opp.owner.email}; in the below code. global class ...
0
votes
1answer
22 views

Creating Ideas from inbound emails using Email Services

I am using following blog to create idea from inbound email: https://developer.salesforce.com/page/Code_Sample_-_Creating_Ideas_from_inbound_emails_using_Email_Services When I send an email to the ...
0
votes
1answer
46 views

Delete records using Email Service between 2 integrated S2S orgs

I have two S2S integrated orgs which are sharing Lead's records succefully. I have implemented the same using Apex and Salesforce to Salesforce Connections. My requirement is if a record is deleted ...
0
votes
1answer
46 views

Email Signature

I have one scenarios like, have configured out going email setting under "My Email Settings" and there i have mentioned a signature. Now i also have one visualforce email template with a different ...
3
votes
1answer
36 views

Remove main email body and previous bodies of all replies in an email service

I have a problem with email service in apex. When I reply to the salesforce generated email address, then in my email service handler the body contains all the previous replies and main email ...
0
votes
2answers
86 views

help to get 17% to 100% for batch class

I am new in SFDC i need to get 100% code coverage for this batch class currently it has 17% and i am facing problem in every Messaging.SingleEmailMessage mail = new ...
0
votes
0answers
25 views

Mass Update the Email me notification

How to mass update "Email me when someone assigns me a task" in salesforce Under my settings--> reminder alert. Can we make the checkbox to true using data loader / apex?
0
votes
1answer
119 views

How to process attachments of type eml or msg in email services?

I am using Email Services to process emails and email attachments and attach them to the Notes and Attachment section of a custom object. However when I send out an email with .eml or .msg file as an ...
4
votes
1answer
251 views

Scheduled Apex not consistantly executing, sending emails

I'm having a problem similar to this user's question from about a year ago, although it's not clear to me whether the solution provided there actually resolved the issue (or if it just made the ...
1
vote
1answer
64 views

Salesforce Email Service Debugging

I have defined an email service which unfortunately isn't working. Is there a place I can monitor errors? The class doesn't appear in debug logs.
2
votes
1answer
108 views

Add Email Body to Attachment with Email Service

I have to do a email service that when I send a mail to my salesforce email service, it creates a contact with the first and lastname of the people who send, and attach the email to the contact ...
0
votes
0answers
32 views

Email to case problem?

I do have question for this issue when we select the status field closed in case object, then I need to get new email to case generated. Is it possible to create new email to case? Do I need to write ...
1
vote
0answers
19 views

Remove the reference code from customer emails?

Salesforce includes a very strange and long reference code in the subject of customer emails, which I don't think is necessary, because it's also included in the body of the email, and just ends up ...
0
votes
2answers
252 views

How can I verify my Org Wide email address?

I have created an email service and apex class that converts incoming email into tasks and associates them with the matching record. the idea is to simulate email to case functionality. it works as ...
0
votes
1answer
155 views

Why are my merge fields not populated when sending email through Apex?

I am using an email service and apex class to handle inbound emails and attach them to an associated custom object record. The same Apex class is also sending an email to the user in the "Assigned to" ...
0
votes
1answer
59 views

Can I create a trigger on LeadShare/ ContactShare table?

What I am trying to accomplish sounds easy and should be needed. Whenever a Lead or Contact is shared with another user, I would like to send an email to the user that has access to another record ...
0
votes
0answers
123 views

I have created apex email service class

I have created apex email service class it working fine and i have cofigure with admin.My class create task under that .But i want to do this for all user's in my org.I mean to say if they get email ...
1
vote
0answers
60 views

Email Services Apex Class - Remove images and replace with text instructing user to check attachments section

I have put together an Apex class for a Salesforce Email Service. This is taking the email that is sent to the address, taking the subject and email body and creating a record for a custom object I ...
1
vote
1answer
90 views

Email Service does not receive Apex Exception Mails in DE Org

In an Managed Package, we want to produce an Custom Object for each Apex Exception Mail that we receive. In order to implement that we followed the instructions we found here. We created an Email ...
1
vote
1answer
277 views

Test Coverage for a Email Services Class

Class: global class EmailDemoReceive implements Messaging.InboundEmailHandler { global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email, Messaging.Inboundenvelope ...
0
votes
1answer
55 views

Want to convert Web To Lead automatically into contact and send Email

I'm creating a registration page in my site, and use Web To Lead. I want to Convert automatically that web to lead into Contact and also send Email to the user who register on site.
1
vote
1answer
68 views

Apex: Email invocation not working in sandbox

I want to send out alert emails to account team members when their account(s) contracts are up for renewal 120 days from 'today'. I have test accounts created to meet the soql criteria, I'm in the ...
0
votes
0answers
89 views

where do i put the code to read possible multiple inbound mail attachments and is it correct?

I have begged, borrowed and modified code to read incoming email with an APEX Class. It seems to work. The last function I need is to read multiple attachments and write them to a file. My current ...
0
votes
1answer
153 views

Can't activate Email Service

I have created an email service based on the Salesforce documentation found at the following address: https://help.salesforce.com/apex/HTViewHelpDoc?id=code_email_services_editing.htm The only issue ...
0
votes
2answers
70 views

Send email using an APEX controller and assign FROM email address

Is it possible to assign FROM email address to an email going out from an APEX class. This email will be triggered by an insert operation. Currently, which ever user(portal user) is performing this ...
0
votes
1answer
15 views

Edit “Email Name” for Portal Users

Does anyone know where is "Email Name" field value stored in salesfroce. This field appears under My Setting -> Email -> My Email Settings (refer image attached). We want to update this field with ...
0
votes
1answer
89 views

Invalid initial expression type for field , expecting: String

I am trying to read the "toAddresses" field in apex in global Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email, ...
0
votes
0answers
21 views

Delivered-To field name in apex

In reference to: Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email, Messaging.InboundEnvelope env) All received ...
1
vote
2answers
89 views

How to handle Email Opt Out for Various Categories

We have a requirement as Contact having 2 checkbox fields as 1. Unsubscribe Newsletter 2. Unsubscribe Webinar Emails If Contact select "Unsubscribe Newsletter" then no mails will send to the Contact. ...
0
votes
1answer
128 views

Sending Email using apex : context for template Order line Item not working

I have template which is based on the merge fields related to order line items. I want to use this template in apex to send a mail,but using TagetObjectId: which expects the value to be ...
0
votes
1answer
40 views

Can i create/view opportunity without having Salesforce licence?

Is there any way to create/view opportunity or other standard objects which are not allowed in my salesforce licence ? like can i use inbound email serices to create opportunity record or running code ...
0
votes
1answer
1k views

Email html body to plain text body

I have an Email Service setup. It parses incoming email, gets all needed values and post them to proper fields in proper objects. Entire plain text body is saved. There is a chance that there will be ...
2
votes
2answers
216 views

Why doesn't File Location Lookup show attachments of Opportunity?

My opportunity has some attachments. I would like to send them via email. If I hit on "Attach File" button of "Send an Email" page, then File Location lookup filter window, dialog appears, however I ...
4
votes
3answers
688 views

Need to capture email reply in salesforce

I have a certain requirement. I need to capture email reply in Salesforce. Just take a scenario I have sent an email to one contact from send an email button from case related list. As soon as I send ...
1
vote
0answers
164 views

How to set multiple “setwhatIds” and “setTargetObjectIds” in salesforce?

How can I set multiple objects Id in targetObjectsIds and WhatIds?? Whenver I tried to do that it gives an error String[] bccAddress = new String[] {'contact@testcompany.com'}; ...
0
votes
0answers
131 views

can setTemplateId be used along with SetHtmlBody for the following code?

public EmailMessageWrapper(String fromAddr, Id toAddrId, String sub, Map<String, String> mapSubjectParams, Map<String, String> mapBodyParams) { this(fromAddr, null, toAddrId, null, ...
1
vote
1answer
129 views

Email scheduler unable to include the letterhead template for sending emails through scheduled jobs

Email scheduler unable to include the letterhead template while sending emails through scheduler. The header and footer not displayed on emails recieved. Only the dynamic htmlValues can be seen in ...
0
votes
2answers
39 views

Salesforce Web to lead

We have a web to lead form setup. The people that enter these leads are NOT SFDC users. Part of the form requires them to enter their name and email. It also makes them pick from a list of sales reps. ...
0
votes
1answer
274 views

Email Services vs On Demand Email to Case

I am extremely new to this functionality (able to create records in Salesforce via emails). Would appreciate if someone can correct my understanding between these two. Email Services : These ...