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
32 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
0answers
12 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 ...
-1
votes
0answers
22 views

Deletion of records from two integrated orgs

I have integrated two Salesforce orgs which are creating and updating Lead's data. I want to create an Email Service which should help me in deleting the records from both the orgs such that if a ...
3
votes
1answer
19 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
75 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
18 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
44 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
84 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
15 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
34 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
24 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
10 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
65 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
73 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
30 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
62 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
47 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
65 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 ...
0
votes
1answer
101 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
37 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
41 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
54 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
74 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
50 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
38 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
20 views

Delivered-To field name in apex

In reference to: Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email, Messaging.InboundEnvelope env) All received ...
1
vote
2answers
62 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
103 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
34 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
565 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
143 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 ...
3
votes
3answers
277 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
101 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
65 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
90 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
27 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
175 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 ...
2
votes
1answer
174 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
29 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
30 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
40 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
36 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 ...
0
votes
0answers
19 views

SenderAuthentication: No authentication check passed. Email service

I have create a email service to which I have a class attached to create contact record. When I send email from Gmail, redifmail I am able to receive email and contact is created but when I send a ...
0
votes
0answers
53 views

access to debug logs

I've seen this question several times in SF exams It appeared in slightly different versions but it was about storing error logs in custom objects when a developer has no access to system debug logs. ...
0
votes
1answer
25 views

Not able to receive email from personal email domain

I have create a email service to which I have a class attached to create contact record. When I send email from Gmail, redifmail I am able to receive email and contact is created but when I send a ...
1
vote
0answers
34 views

SingleEmailMessage CC is not working

I'm trying to send emails with TO, CC and BCC addresse mail.setTemplateId(emailTemplateId); mail.setTargetObjectId(emailTargetId); mail.setSenderDisplayName(Label.Sender_Name); ...
4
votes
1answer
144 views

Not able to receive inbound emails from yahoo

I have created a email service and I have a inbound email class where I am inserting a contact when a email is received. When I send email from Gmail, rediffmail to my salesforce email service. I am ...
0
votes
2answers
251 views

Forward /redirect friendly name email address to SFDC inbound email service

Suppose I have a generic email say " test@gmail.com". My requirement is whenever I get an email to this address then a record should be created in one of the custom object in salesforce. I know that ...