Tagged Questions

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
6 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
11 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
15 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
21 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
70 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
39 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
31 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
39 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
37 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
31 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
57 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
23 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
34 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
109 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
16 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
32 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
64 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
102 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
38 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
274 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
39 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
40 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
158 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
142 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
231 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
18 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
64 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 ...
0
votes
1answer
93 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
102 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
103 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
136 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
40 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
38 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
12 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
26 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
88 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
14 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?
2
votes
1answer
49 views

Sending Addional Information through Inbound email Service?

We Want to send Additional Information such as Contact name, phone number etc through the email headers. Is it possible to do so and How? Since it's only name value pair is there any mechanism ...
0
votes
3answers
84 views

Send Email Button

I am trying to create a custom send email button on a custom object called Disease__c. I have patients linked to the disease, where disease is the Master in the master-detail relationship. ...
-2
votes
1answer
66 views

Test class passed, but main class only 44%

Good Morning Salesforce Stackexchange I have the following test class called “DeactivateUsers_Test” which has passed however main class “DeactivateUsers” is only getting code coverage of 44% ...
0
votes
1answer
81 views

Test class coverage varies betw Sandbox/PROD for trigger that sends an email

I am having difficulty when trying to create the test class for my trigger: trigger Email_Pesquisa_Mercado_account on Account (after update) { Map<Id,Account> accountMap = new ...
0
votes
1answer
46 views

Trying to implement a list to select Records, and email attachments, could use some pointers!

I recently just started working with Salesforce and Apex/VisualForce and was attempting to implement a page to email out the attachments of a Service Contract, however I seem to be stumbling with the ...
1
vote
1answer
29 views

Monitor email service with data feed: email report

I am surprised I do not find find any examples of best practices on this matter. So, I have feeling maybe I am doing something wrong. We have email service which is receiving emails with CSV file ...
2
votes
0answers
305 views

Email To Case - Duplicate Cases

Have an interesting problem with Email To Case setup, scenario is User A sends an email to a support mailer and copys User B on it. Auto response would go to User A. If User B picks up the first email ...
0
votes
1answer
148 views

Undeliverable email to email service

I am getting this error when writing email to my email service in my developer environment - using the email address I created the environment: This message was created automatically by the mail ...
2
votes
0answers
93 views

Custom InboundEmail handler - check if message is an automatic reply

I've implemented a custom inbound email handler for some departments using email-to-case, and we would need to avoid autoreply messages or automatic generated messages to create cases or trigger other ...
0
votes
0answers
483 views

How to insert Activity History record after sending an email

I cannot create a new Activity History record when using message.setSaveAsActivity(true); so i added mail.setTargetObjectId(con.id); its working fine. but actual issue is when i am sending mail ...
1
vote
2answers
267 views

Create and select attachments and add them to an email template?

Here's the setup of my problem, and i'm not sure how to get started. initial screen -> my user is on a VF page and makes some HTML selections. Also, they select a number of notes and attachments. ...
3
votes
1answer
101 views

PDF file name issue in apex Send Mail method

I want to add date to a PDF file name. I am sending an email from apex and attaching one PDF file with it. Now I want to set string with dynamic date with it. E.g.... date fromdate = ...