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

learn more… | top users | synonyms

1
vote
2answers
25 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
36 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
23 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
72 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
25 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
17 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
40 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
35 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
27 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
80 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
24 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
100 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 ...
2
votes
1answer
177 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
39 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
74 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
30 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
18 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
1answer
141 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
122 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
46 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
107 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
59 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
87 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
207 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
48 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
61 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
75 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
123 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
62 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
70 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
81 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
115 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
39 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
841 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
187 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
496 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
147 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
107 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
122 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
36 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
237 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 ...
3
votes
1answer
312 views

Newbie understanding Messaging.InboundEmailHandler interface

I'm writing an Inbound email handler class using Messaging.InboundEmailHandler interface. I'm following a tutorial from Jeff Douglas but can't find how you find out the structure of an interface? I ...
0
votes
1answer
32 views

Get an Error Message when sending Email to Sandbox

I want to send an Email to my salesforce Account and the update Account informations given in the Email. My problem now: The Email is Encrypted. So i wrote an Apex class and now I'm trying to ...
1
vote
0answers
30 views

Customer Attention email

The email that is sent to a portal user when their case is updated (to Customer Attention) comes from the an employee that updated the case. Can we have it come from noreply@mycompany.com instead? ...
0
votes
1answer
38 views

lead conversion using apex class…but when clicking on save button lead,account,contact and opportunity are not getting saved…pls help me out

public without sharing class LeadClass{ public Lead__c myLead{get;set;} public LeadClass(ApexPages.StandardController controller) { mylead= new Lead__c(); this.mylead= (Lead__c ...
0
votes
1answer
43 views

Need to customise SendEmail feature

I want to customise the functionality of the button Send An Email in the Activity History section of my Invoice object so all attached documents in the Notes and Attachments should be automatically ...
0
votes
1answer
48 views

Call send method from command link

I have a send method outside constructor in apex class. I need to call that from Command button onclick. Can someone help me here? Send method: public PageReference send() { String ...