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
11 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
16 views

Delivered-To field name in apex

In reference to: Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email, Messaging.InboundEnvelope env) All received ...
1
vote
2answers
25 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
29 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
20 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
71 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
55 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 ...
0
votes
2answers
41 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
40 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
23 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
28 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
15 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
34 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
53 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
22 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
28 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
22 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
29 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
27 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
10 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
21 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
28 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
97 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
86 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
50 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
67 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
81 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
40 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
96 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
30 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
160 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
18 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
61 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
86 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
223 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
60 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
732 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
66 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
56 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
218 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
38 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
290 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
392 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
24 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
87 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
181 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
204 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
173 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 ...