The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
25 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
11 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
23 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
0answers
40 views

Parsing data from Inbound Email Service

I have created a Email Service which will update Opportunities containing the ID number in the subject of the email. The body of the email will contain a STA ID number which I need to fetch and insert ...
0
votes
1answer
16 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
26 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 ...
1
vote
0answers
27 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
38 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
29 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
10 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
6 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
20 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
28 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
9 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
29 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
37 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
60 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
2answers
52 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
27 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
17 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
135 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
100 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
72 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
246 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
149 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
85 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 = ...
1
vote
1answer
127 views

Email Service Generate Email Address

Here i was made one Inbound Email Service..For that i made one Apex Class,here the code of the class... global class EmailDemoReceive implements Messaging.InboundEmailHandler { global ...
0
votes
1answer
253 views

how to fetch a notes and attachment of custom object and i want to send the notes title and body through of contact in accounts

i have already done some codes check the codes below and tel me what's wrong in this public PageReference send() { List<Contact> accounts=[SELECT Email,id FROM Contact WHERE AccountId ...
2
votes
0answers
82 views

Email Services + How to handle undelivered or bounce emails

This might be a known issue. But i could not find enough info to resolve the issue. We are using Email Service's email address as a From address to send emails to consumers. If consumer's email ...
1
vote
0answers
101 views

send email notification to a profile when lead is created

I'm trying to send an email to user a & b, when ever a on lead (created & updated) & the appointment info is available. Usually, i can do this by writing an workflow, but unfortunately, i ...
0
votes
1answer
63 views

Update custom object from Email service attachment

The use case is sending an attachment(csv) to my email service ; in the email service i will parse the csv ; each line of the csv will have values like key1,key2,value1 I have to query the custom ...
3
votes
2answers
71 views

Work out remaining singlemailmessage capacity in test

I have an Apex class that does some complicated decisions surrounding whether to send an e-mail to a user or not, including the fundamental "can we send any more e-mails today" check from Salesforce: ...
0
votes
1answer
49 views

Mass email a form to be filled out

I'm trying to capture quotes from vendors into our org. We have EE and we do not have Sites.com. Scenario: A Contact is marked Vendor Source. Purchase Request object and line items from related ...
0
votes
0answers
30 views

How to write email service class for the following xml?

VC 1.3 Response xml: <?xml version="1.0" encoding="UTF-8"?> <ValidateConfigResult> <Configuration> <ConfigId>CE05502807</ConfigId> <Status>false</Status> ...
0
votes
3answers
530 views

How to get parent object field values in a trigger

I have created a trigger that send an email when some conditions are met in a task object. It is working fine but I need to get some field values from the parent object (an opportunity) in order to ...
3
votes
1answer
486 views

Test class for sending email with Attachment

I need a test class for sending a email public blob body; public PageReference pdfmethod(){ try { // to get mail id Opportunity_Potential__c opp= [Select ...
3
votes
1answer
106 views

What's the field name for “Send Apex Warning Emails” in User object?

I have a try/catch block in the start method of a batch class (which would go in to a managed package). If an exception is thrown, then I'd like to send an email from the catch block to system admin ...
2
votes
2answers
60 views

Inbound Email question

I am building a Visualforce page, and the idea is sales people enter some numbers, and send to their manager for approval. I got the first part done, it's send email to their manager. But we want to ...
2
votes
2answers
361 views

<how to>Case trigger send email to external user/contacts

i have a custom text field which allow user to enter email address, separate by ':' if multiple email address and a trigger on case to send an email to those email addresses entered by customer. but ...
1
vote
1answer
594 views

How to send Mass Email from List View in Contact Or Lead using custom button

I have created class for sending a email and calling this "class" and "method" in new custom button..This logic works for "Detailed page Button"and for single record but how to make it work for List ...
0
votes
0answers
51 views

Need Examples for Remedyforce Integration with java using API

I need a java sample code for creating the incident via email when alert gets generated on remedyforce.i had created the email services setting for it but how to pass the alert information to ...
3
votes
2answers
461 views

getContent() returns Blob PDF-body in console, but HTML page (rendered like PDF) in Email service code

First at all: Happy New Year to you and your family. I wish you all the best in new 2014 year. And about my case: I use 'MyPdfRenderingPage.getContent();' method to get Blob PDF-body, create PDF ...
3
votes
1answer
653 views

INVALID_ID_FIELD, WhatId is not available for sending emails to UserIds

I am trying to run below code in trigger. List<User> recipients = [SELECT id FROM User WHERE UserRoleId=:operationsRole.Id]; for (User usr:recipients) { Messaging.SingleEmailMessage ...
7
votes
2answers
790 views

How to get the customer signature inside salesforce and generate the pdf?

We have a requirement for Customer Sign-up form. We have created a VF Tab and included VF page for creating Customer signup form. In that Customer Signup Form, we have a field to get the Customer ...
3
votes
1answer
3k views

Can anybody explain the UNABLE_TO_LOCK_ROW error?

Error Message: Developer script exception from Nicomatic : quotepotential : quotepotential: execution of AfterUpdate caused by: System.DmlException: Update failed. First exception on row 0 ...
3
votes
1answer
696 views

Inbound Email Service: Failed due to: SenderAuthorization

I'm developing an inbound email service to parse the email and create records in a custom object. This service was working fine in my developer org, but when I deployed this to a full sandbox for ...
4
votes
0answers
2k views

Send an email with apex with visualforce as email body

I have a visualforce page that I am trying to send from Apex code. I can't use a template for the e-mail and this visualforce page is never actually visited by anyone. I don't want the page to be ...
5
votes
2answers
373 views

Not able to run trigger on “Send an Email”?

I wrote the below simple trigger for preventing Users from emailing as anything but the support account. I wrote this to work for the "Send an email" Task page (when sending an email to an Opp, ...
2
votes
1answer
3k views

How to get download link/url from attachment file in salesforce?

Hi I have one requirement where I am storing attachments in attachment object. After that I also want to update a custom url type field in some custom object . The value will be a direct link to ...
3
votes
1answer
342 views

How to get values from a Messaging.Email object

I have code which builds a list of Messaging.Email objects to be sent out based on various conditions. The problem is I want to be able to write a test which asserts that these email factory methods ...