The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
18 views

Messaging.sendEmail(<list of emails>) - Is it all or nothing if errors encountered (e.g. bounces)?

Recently I'm encountering some weird issues in Apex SendEmail() calls :-) Messaging.sendEmail(LIST<Messaging.Email>) can any one confirm if 1 item in the list of Emails to be sent errored out ...
4
votes
1answer
24 views

SingleMessage with TemplateId in Apex: need to add more recipients

I am writing code to send emails to contacts via Apex using templates. My issue is that I need to be able to copy these emails to various other users that are going to be determined at run time. This ...
0
votes
2answers
22 views

Are we limited to Sending Emails via Javascript Remoting function call only for 4-5 records?

I've implemented a JS Remoting function that accepts a Set of ID values as input. For all the ID values I loop around in code and use: Messaging.SingleEmailMessage mail = new ...
0
votes
1answer
38 views

Text in email should be bold

I'm writing a program where user inputs and email ID and i have to send an email to that email Id. but now my requirement is that some of that text needs to be in bold. Please tell me how to do it. ...
1
vote
3answers
73 views

When sending an email template and using the class 'SingleEmailMessage', can the sent email be attached to the case for reference?

When using auto-responders for email-to-case, the outbound emails are attached to the case. I'd like to perform the same action, when I am sending outbound emails via my own inbound email handler. ...
4
votes
0answers
35 views

gmail email relay work around or alternatives

I was wondering what other organizations using gmail have done for email relaying with Salesforce. My organization will not be removing the gmail authentication so I was wondering if there is a work ...
0
votes
1answer
40 views

Hiding settargetObjectId while sending email..?

Hi I have used contact as settargetObjectId and whenever an email is sent this contact emailid also get copied in the email list.. Is there any way to put this contact emailid(settargetObjectId ) in ...
1
vote
0answers
75 views

salesforce changes parent id of email Attachment to Case Id eventhough I set it to EmailMessage's Id

I am trying to create an Attachment with ParentId as the EmailMessage's Id but salesforce somehow changes it to the Case Id. I need the ParentId to be EmailMessage Id as I want to select attachments ...
0
votes
1answer
272 views

Spaces with Messaging.SingleEmailMessage setHTMLBody method

I'm using the Apex class Messaging.SingleEmailMessage.setHTMLBody() to send an email from Salesforce with prettier than ASCII formatting. For the life of me I can't figure out how to insert an extra ...
1
vote
2answers
224 views

Can't set toAddresses on email when templateId defined?

Question Did something change recently with the SingleEmail methods that prevents using setToAddresses() when a template is used? Background I need to send an email to a user based and pass in the ...
6
votes
1answer
270 views

Long Text field in Report Workaround

So I know that Rich/Long text fields will automatically get truncated when running a report in the UI or when trying to schedule a report. I get this and think this is something that should be in ...
3
votes
1answer
31 views

Threading emails onto a lead

I'm working on a project that takes care of sending emails to customers who sign up with us. The project automatically creates a new Lead for every customer that signs up, but we next want to store a ...
2
votes
1answer
249 views

INVALID_CROSS_REFERENCE_KEY in send email method

We a custom object(child) which is a detail of Opportunity (OWD = private). Whenever a partner user creates this child record sendEmail is method is invoked from the trigger. We have field ...
3
votes
4answers
2k views

single email limit exceeded salesforce very frequently..?

my email limit is exceeded after sending 10-12 emails..what could be the problem..as i have seen the limit is 1000 emails/day.i am not able to find out what could be the problem..Can some give me some ...
1
vote
1answer
514 views

Related custom object with Mass/Single EmailMessage

I need to write an apex method that send an email which is related to a custom object. The email will use a template which used merge fields from the custom object. How can I specify the custom object ...
3
votes
1answer
109 views

Detect if Compliance BCC Email is enabled

Problem: If the Compliance BCC Email setting is enabled email messages cannot be sent with custom BCC addresses e.g. Messaging.SingleEmailMessage toSend = new Messaging.SingleEmailMessage(); ...
4
votes
1answer
119 views

Avoid blacklisting of Org-Wide email address

We are using the apex method Messaging.sendEmail.setOrgWideEmailAddressId() in a schedular class to send emails to our customers, But our concern is when sending internet email.. you never want from ...
1
vote
1answer
694 views

Singleemailmethod with BCC and Template ID

I am using a batch class with 4 differnt VF templates to send emails to 4 different regional heads usingsingleemailmethod() so I am using 4/10 singleemail methods in the batch class. singleemail ...
8
votes
2answers
280 views

Ignore user context while sending SingleEmailMessage

Can we send SingleEmailMessage(s) under admin context and ignore current user sharings and profile access. Details: - visualforce email template is related to object B which is not available for users ...
4
votes
3answers
973 views

What's the Advantage of using MassEmailMessage instead of multiple SingleEmailMessage?

I'm scoping out a project that will involve sending outbound email messages, and I'm a little confused about why one would use a MassEmailMessage instead of multiple SingleEmailMessages. If you look ...