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
9 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
22 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
12 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
13 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
11 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
19 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
33 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
18 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
27 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
19 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
28 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
21 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
8 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
14 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
22 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
26 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
85 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
51 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 ...
0
votes
3answers
44 views

Can anyone tell me how to Convert a Visual force page into an image using Apex

Is there any possibility to covert a VF page into an Image.? i've created a VF page Report, i need to schedule that VF page Report as like we schedule the standard Reports i want the email Body as ...
1
vote
2answers
55 views

Email Services Binary Attachment Not Working

I am using the Email Services in SFDC, and I am not able to get the attachments I attach to the emails to be uploaded to the new record that is being created. I built my APEX class off of the sample ...
0
votes
0answers
65 views

How to use Salesforce PDF Viewer for custom object similar to quote pdf (including save and send email button)?

Need to use custom vf pdf and display that in custom object in salesforce pdf viewer similar to standard quote pdf
1
vote
3answers
33 views

Apex Email Service suddenly stopped processing emails

I've written an apex email service handler which was working fine two days ago. I go back to it today, write a test class for it (perhaps modifying some of the apex email handler code along the way, ...
0
votes
1answer
71 views

How to get Email Template executed body

I am working on sending email by using 3rd party application like Amazon SES When i query for perticular email template i am getting body whaever the email templated had like Email Template body ...
1
vote
1answer
28 views

How can I strip additional email address from Messaging.InboundEmail array

I am using an email service to update opportunities in my salesforce instance, what my handler does it lift any email addresses in the CC field and then does a search for the contact via SOQL, once ...
1
vote
2answers
36 views

creating an email based on another record

I want to be able to share the contents of a field from a particular record with an email recipient. Rather than going to the record and copying the field value, I would like to be able go the the ...
1
vote
1answer
138 views

Approval by email using custom salesforce email service

I am trying to implement approval or rejection by email functionality. But I can not use salesforce standard 'Enable Email Approval Response' functionality as approval process is assigned to queue ...
0
votes
1answer
17 views

attach received mail in Contacts attachment

We have status field on contact. Once status becomes active , we have to create a Partner user and send term and condition mail to Contact email address. Once the Contact replied "accepted", then he ...
0
votes
0answers
43 views

Messaging.MassEmailMessage class doesn't work when we set a list of case ids as whatids. It works fine if we don't set whatids

Please help me fix my issue with Messaging.MassEmailMessage class. It doesn't work when I set a list of contactIds as my targetObjectIds and set a list of case ids as whatids. It works fine if i don't ...
1
vote
3answers
76 views

How do I correctly add a helper method to my Apex Class?

I am attempting to set up an email-to-lead email service. Our non-profit receives leads in the content of emails that are sent, and I am trying to write an apex class that correctly parses the ...
1
vote
2answers
141 views

Differences between email to case and on demand email to case

I haven't worked on configuring email to case before and there are basically two options. (Email to case and On demand email to case) I found a few links listing the differences in terms of ...
0
votes
2answers
52 views

Send Email with Case Email Template

I would like to send an email template ,with merge fields from case, even to a fixed address'test@email.com'. Template: Hi, this is case {!Case.CaseNumber}. Code: public void ...
4
votes
3answers
324 views

Making regex case-insensitive

I have created some lines of code for an email handler that will scrape my emails for a particular string (STA0123). Code: // Find STA No. (in email body) Opportunity Opp = [SELECT id, STA_No__c ...
0
votes
1answer
49 views

Conversion Error setting value '01590000004fxbiAAA' for '#{documentId}'

Hi everyone i want to send multiple attachment through mail. So i created a checkbox to select the required document and send them but it is throwing this error "Conversion Error setting value ...
0
votes
0answers
49 views

How does the “Internal Comment” field behaves in Email to Case Premium app

Can any one help me out .I shall appreciate your help. How does the "internal comment" field works in Email to case premium app? a)When we create a case manually the internal comment field gets ...
1
vote
1answer
185 views

Inbound email missing attachment?

I have a requirement to save attachment received from email in Salesforce object using Email To Salesforce. I tried using the below code but attachment are not getting saved, when I checked using the ...
3
votes
2answers
34 views

What is the best way to populate data from external users

My SF instance needs to get data and approvals from a lot of external users outside of the organisation. I would like to know what is the best solution to get data from these users without giving them ...
0
votes
1answer
221 views

Email File Attachment type

I am trying to send an attachemnet in an email. I am able to do so the problem that i am having is that I am not able to get the original name and content type of the attachment. Is there any way of ...
1
vote
1answer
305 views

How to override the FROM Email in Messaging.SingleEmailMessage

How to override the from email address in the email.But in my code throw an exception.How to set the Organization-Wide email addresses.When I comment the code "setOrgWideEmailAddressId(owe.Id);"it ...
-1
votes
1answer
22 views

Email Service: Filtering quoted text (response history) from message body before saving

I have an email service which saves message body to linked Opportunity in the Notes. Although this works, this will save ALL the content from the email including all previous correspondances if they ...
0
votes
3answers
78 views

Email Service: Attempt to de-reference a null object

I have created a Email service which saves attachments into opportunites, when sending emails an error message is returned back to the mailbox stating that it has failed processing because Attempt to ...
2
votes
1answer
141 views

Email attachment not received in EmailService handler

I have an issue with processing inbound emails sent from MS Outlook. To put it simple no attachments are received in the class (nor text nor binary). Email definitely has attachments since i cc-ed the ...
1
vote
1answer
151 views

How to add the logo in email body

How to add the logo in HTML email body. I have use an apex class that send an notifications to customers.The below code is send an emails to customers **but in email body the image/logo is not ...
2
votes
0answers
137 views

Dynamic Email Template Body

I have a requirement where I need to send the email template and also allow the use to change it and then send the content. I am able to send email and attach a VF template dynamically. But I am not ...
1
vote
1answer
158 views

Attach dynamically generated visual force PDF to a visual force template

I have a requirement where I need to attach an email template to a dynamically generated VF PDF. Though I am able to send the template. But I am not able to send the attachment. Please suggest how can ...
1
vote
1answer
42 views

Sending e-mails to contacts

My org have a lot of contacts - around 2000. All of these contacts have e-mail address. I need to send an e-mail to each of them. An admin will enter a body (on a VF page) and click "send e-mails" ...
0
votes
0answers
47 views

Routing Emails to multiple queues based on context?

I'm trying to figure out a way to parse emails that come in via email-to-case and assign them to the correct queues. Where this gets interesting is that although we can match the contact and account ...
0
votes
0answers
13 views

How to send the attachment in to the choosing option Email template email author?

I have create the visualforce page to Three buttons and i will written code to attach the attachment into the custom Notes and Attachments in the related list.but if i'm clicking the one button it has ...
0
votes
0answers
27 views

Grab Date via Apex from Inbound Email

When using Salesforce for Outlook, we'd like to somehow pass the date/time the original email was sent, so we can track exactly how long a case / response took. I know there are many items that can ...
2
votes
1answer
112 views

How to unzip a zipfile attachment in apex and process each file in the zip attachment

I am trying to unzip a zip file attachment. but, unable to unzip the attachment and process all the internal files in the zip file. I want to do this using an email handler class.
0
votes
0answers
17 views

How to stop creating the email signature graphics as attachments but still have the remaining attachments created

How to stop creating the email signature graphics as attachments but still have the remaining attachments created and associated to the related case when using Apex email service?