The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
43 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
50 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
54 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
37 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
27 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
31 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
25 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
30 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
39 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
20 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
90 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
176 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
49 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
48 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
159 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
204 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
23 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
302 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
310 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
398 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
1k 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
360 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 ...
3
votes
0answers
1k 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
302 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
2k 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
213 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 ...
3
votes
0answers
392 views

Setup Auto-Response Rule when using Email-to-case for emails not related to an existing case

We have a specific workflow where most messages send to support and our other address is specifically given to the client once they have signed up and we email them directly. I am trying to setup an ...
2
votes
2answers
156 views

Error on Test coverage - Email service to create a new record

I have an email service that creates a new "training" record. the email body is broken down to populate several fields. Class: global class ProcessTraining implements Messaging.InboundEmailHandler { ...
0
votes
1answer
72 views

How to copy an attachment from an email to a case record using email service

I'm Using an Email Service to create a custom object record and a case record. The email has an CSV attachment and have to attached to the case record.
1
vote
3answers
2k views

Faile to send email due to SINGLE_EMAIL_LIMIT_EXCEEDED

My customer complained he got the following error message: SendEmail failed. First exception on row 0; first error: SINGLE_EMAIL_LIMIT_EXCEEDED, Failed to send email: [] Our apex code sends a single ...
0
votes
1answer
59 views

creating new email address for every project

I have to create new email address for every project.I am developing project management app in this application if application user is created new project then for this project my controller should ...
0
votes
0answers
179 views

Inbound email service doesn't set plainTextBody on multipart/alternative with text/plain content

I'm building my first InboundEmail service, and was surprised to find that the automated emails I'm trying to process aren't having their plainTextBody attribute set. The messages have the following ...
2
votes
1answer
427 views

How to use an Apex scheduler to send periodic emails with the pdf file as attachment?

I have created one vf page to create a report on what are the open cases available in the particular org as a PDF. I need to use an Apex schedular to send periodic emails with the pdf file as ...
5
votes
1answer
1k views

How to test if outbound email is send

I have a batch that sends out an email notification to the triggering user when something went wrong. The code that does this is called from the finish() method. I'm now looking for an elegant way to ...
1
vote
0answers
89 views

Ugly format of Email generated by EmailTemplate saved as Activity

I have written some code that sends an email based on an HTML based email template to contacts and stores a copy of the email as an activity. I noticed that the content of said email in the activity ...
5
votes
1answer
109 views

'DataDotComEntitySetting' is not supported

I am writing a custom email service. I can get the incoming csv file and parse it down to rows and then columns. I do my thing, then I try to insert the objects (I know they are all original, the data ...
3
votes
3answers
1k views

Scraping text from email and storing in a field

I know that there is a web to lead form I can create to do something similar, but is there an easy way to get the inbound email address which can be monitored and the data from the email can be ...
3
votes
1answer
85 views

How to add ContentVersion data to an outbound email from a Trigger

So I have the following class: public static void sendmail(String documenttitle) { List<Id> contactids = new List<Id>(); List<user> con = new List<User>(); con = ...
4
votes
2answers
206 views

Accessing Outbound Mails

I would like to access the outbound emails sent from salesforce to the users(for eg. notification mail, scheduled reports mails etc). Could anyone tell me where those mails will be stored in the ...
2
votes
2answers
133 views

New Lead alert not been sent from Email Service

When creating a Lead through the UI, the system is sending a New Lead Alert to the New lead owner. However, I discovered, that if using Email Services - that New Lead alert is NOT been sent. Anyone ...
0
votes
2answers
284 views

How to use Email services

I have created a email service to receive a emil from a provided email id I want to print the emiail body in debug log for this I write some debug to that but my problem is nothing get printes in ...
0
votes
2answers
122 views

Approval Emails sent from saleforce

Is there a way to get the log of all the Approval emails sent from Salesforce. I tried to get the log of all the emails sent out by requesting for email log, but for some reason feel like the data is ...
2
votes
2answers
843 views

Trigger to create task/email when Opportunity is updated with a certain stage

I am trying to create a trigger (possibly After Update) such that it is fired when an Opportunity is updated with a certain stage. It should create a task and send an email to a user. The email should ...
2
votes
2answers
484 views

Gmail Forwarding Address verification code for Apex Email Service

I have written an Apex Email Service and would like to setup a rule in gmail to forward certain messages to the Email Service. The first step when creating a forwarding address in gmail is the ...
5
votes
1answer
137 views

Notification of Rejected Email

The documentation on governor limits states that: Email services rejects email messages and notifies the sender if the email (combined body text, body HTML and attachments) exceeds ...
2
votes
2answers
171 views

Can the Context User on an Email Service be an API-Only User?

The title kind of says it all: Can the Context User on an Email Service be an API-Only User? I found this note in the online documentation: Set Context User – this specifies the context under ...
6
votes
1answer
99 views

What happens if I deactivate a User associated with an Email Service

Lets say I set up an Email Service running as a given context user. What happens if I then deactivate that user? Does the service continue running? Stop running? Do I get an error message? I ...