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
0answers
21 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
29 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
0answers
25 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
31 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
25 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
25 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
30 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
28 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
31 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
0answers
26 views

Initial term of field expression must be a concrete SObject for attachment

I'm getting this error when trying to run the following apex code, any idea why? Error: Initial term of field expression must be a concrete SObject: Apex Code: global class Email_PO_Box_Class ...
0
votes
1answer
19 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
19 views

Delivered-To field name in apex

In reference to: Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email, Messaging.InboundEnvelope env) All received ...
1
vote
2answers
34 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
53 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
28 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
148 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
70 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
71 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
59 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
34 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
41 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
17 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
56 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
81 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
24 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
25 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
35 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
13 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
30 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
30 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
110 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
122 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
69 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
78 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
100 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
43 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
134 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
33 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
205 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
19 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
85 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
96 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
329 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
63 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
2k 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 ...