Questions tagged [email]

Salesforce provides multiple forms of email, including email templates, mass email, email services, email alerts, and email sent via Apex.

Filter by
Sorted by
Tagged with
64 votes
1 answer
60k views

Setting a from address in SingleEmailMessage

I want to set a from address in a salesforce SingleEmailMessage, but can't see a way to do this and there is no standard method described in the documentation. I want the email to be sent from ...
c14kaa's user avatar
  • 1,086
8 votes
1 answer
379 views

Emails Per Invocation Still Capped at 100?

I was recently trying to answer a question about email limits. I remember there being a cap on the number of emails sent per invocation (100), but I couldn't find any documentation that still mentions ...
Adrian Larson's user avatar
  • 149k
22 votes
5 answers
40k views

SINGLE_EMAIL_LIMIT_EXCEEDED. What does it mean?

What does the exception mean? It does not seem to be related to the Number of email invocations limit because of the following line at the end of the log: Number of Email Invocations: 5 out of 10 I ...
edgartheunready's user avatar
5 votes
4 answers
19k views

Individual Email Results not appearing for Salesforce Send Emails

We are sending Salesforce Send Emails from Marketing Cloud using a Salesforce Data Extension. We can view the Email Send from the 'Email Sends' tab within Sales Cloud, however the 'Individual Email ...
Eliot Harper's user avatar
  • 16.3k
20 votes
2 answers
48k views

How to Test Messaging.sendEmail

Looking for some help/advice in writing a test class. The class I need to test is an apex class to schedule a report that needs to be sent to an external email address once a month as a .csv ...
mlpSFadmin's user avatar
6 votes
1 answer
1k views

Using Exclusion Script with _Sent Data View

I would like to use an Exclusion Script when sending an email from Content Builder where if the Subscriber has received an email in the past week, then the email should be suppressed from sending. ...
Eliot Harper's user avatar
  • 16.3k
7 votes
2 answers
4k views

Get Preview of Email with AMPscript Using Rest API

I'm trying to get the SendPreview rendering of an E-Mail with Contact Data from a Dataextension. The E-Mail includes AMPScript. I tryed the following route: https://www.exacttargetapis.com/guide/v1/...
Ronald Koch's user avatar
2 votes
1 answer
3k views

Subscriber Key related to Multiple Emails

Can someone help clarify use case where we should have Subscriber key related to multiple email addresses? We generate our own subscriber key but we want to give a Subscriber opportunity to be ...
Vasily's user avatar
  • 23
1 vote
1 answer
2k views

Email Send does not send to everyone in Data Extension, no reason for Exclusion

I am completely new to using Marketing Cloud so this may be a stupid question. I scheduled 2 emails to go out to separate audiences. The lists were deduplicated. I imported IDs and Email addresses ...
SeanGorman's user avatar
  • 1,015
16 votes
4 answers
14k 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 ...
Robert Sösemann's user avatar
5 votes
2 answers
5k views

Apex Email Limits Clarification

I need to send a (potentially large) number of emails to (community) users via code using an Email Template, with a custom object as the whatId. Because my whatId is a custom object, I am using ...
Jason Clark's user avatar
  • 11.8k
2 votes
2 answers
5k views

Possible to selectively turn off Marketing Cloud email click tracking?

I know I can turn click tracking on or off per-email by unchecking the "Track all links in this email" at send, but I was wondering if there was a way (possibly with AMPscript?) to turn off click ...
Daniel Newman's user avatar
2 votes
1 answer
1k views

Unsubscribe process on external page with update to _Unsubscribe dataview

What I would like to achieve is an email unsubscribe process that is secure, performant and on an external page with the ability to update the internal system table (dataview) _Unsubscribe. How I ...
Johannes Schapdick's user avatar
1 vote
2 answers
2k views

Journey Builder - BCC Email Address

I configured a journey in Marketing Cloud where i sent an email. My requirement is adding BCC email addresses to this email, but I noticed that we can only add valid email addresses. Could you confirm ...
cmbob's user avatar
  • 604
22 votes
2 answers
10k 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 ...
Scott VonSchilling's user avatar
18 votes
3 answers
56k views

How to send an Email Template via Apex?

Goal I'm attempting send a good looking HTML from Apex code, here's a stripped back screenshot . Based on the documentation I've reviewed, with Apex we can leverage SalesForce email templates using ...
fusion27's user avatar
  • 305
11 votes
3 answers
17k views

SingleEmailMessage - send email to a recipient different from the record referenced by setTargetObjectId

My code is as follows: List<Messaging.SingleEmailMessage> emails = new List<Messaging.SingleEmailMessage>(); Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage (); ...
Ray Dehler's user avatar
  • 1,723
8 votes
1 answer
6k views

TEMPLATE_NOT_FOUND When workflow is fired from Communties

In a partner community I have a button which users click to accept a request. On the click of this button I perform an update on a record, which then causes it to meet some workflow criteria. At this ...
Jim's user avatar
  • 1,126
7 votes
1 answer
475 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 ...
julie curry's user avatar
7 votes
3 answers
6k views

For the Platform Event "Automated Process" user, why do both Visualforce controller access and email sending fail?

We are executing some asynchronous code that uses getContentAsPdf on a Visualforce page as the result of handling custom platform event and we get this error in the Apex Jobs listing: First error: [...
Keith C's user avatar
  • 135k
7 votes
3 answers
17k views

Anyway to control Communities E-mail Welcome Message

We have an org that we are moving from Portals to Communities, the Communities Welcome E-Mail is sent to all user accounts when their user/account is created: From the Communities > Administration > ...
jordan.baucke's user avatar
4 votes
1 answer
4k views

SaveAsActivity is not allowed with whatId that is not supported as a task whatId

While trying to create a custom business rule using Apex I got the error: INVALID_ID_FIELD, SaveAsActivity is not allowed with whatId that is not supported as a task whatId. ...and found out that it ...
Renato Oliveira's user avatar
4 votes
2 answers
14k views

Apex email : How to override 'From address'

Friends, This issue is driving me nuts. Basically, I have an APEX trigger which is supposed to send out emails to customers when new records are available for them to look at. Everything is working ...
Richard N's user avatar
  • 3,792
3 votes
2 answers
727 views

How to know current Email governor limits? [duplicate]

I am using SingleEmailMessage api for sending emails. I want to know the email limit quota usage, so that I can prevent further exceptions. Is there any way to know the quota usage in apex, so that I ...
Ysr Shk's user avatar
  • 3,104
2 votes
2 answers
17k views

Change User Email Address without notifying olduser

I am the Admin of my developer org and i have configure 5 user over there and i want to change Email address of one of the user without any notifying them i mean through mail. is it possible in the ...
Vivek113's user avatar
  • 445
2 votes
2 answers
5k views

Retrieving html body of complete SFMC email

I am sending emails via SFMC/ExactTarget to clients using SOAP. I store the returned request ID in a database. Sometimes I specifically need to retrieve the completed HTML body from that request for ...
Randy Hall's user avatar
1 vote
1 answer
804 views

ETClient (401) Unauthorized with SDK C#

I am using Visual Studio 2017, and install SFMC.FuelSDK by using Nuget. I use this: NameValueCollection parameters = new NameValueCollection(); parameters.Add("clientId", "...
Ponpirat's user avatar
1 vote
1 answer
2k views

Case Emails - Custom Button - TO field not populating properly

https://na4.salesforce.com/_ui/core/email/author/EmailAuthor? p3_lkid={!Case.Id}&retURL=%2F5{!Case.Id}& [email protected]:Customer%20Service I have gone back and forth with this code, ...
AMM's user avatar
  • 4,674
1 vote
2 answers
5k views

Is is possible to display an image or icon in a Email using a Visualforce template?

I am trying to send an email using a Visualforce template and I want that template to include an icon. Is this possible?
dublintech's user avatar
  • 4,223
0 votes
1 answer
2k views

How to create interpersonal documents (PDF Files) and how to attach them into email using a SFTP server?

In Marketing Cloud : I would like to create interpersonal documents (customer contract in PDF) and attach them into email in automation, (in the same time that I send my email scheduled in journey ...
Pauline's user avatar
  • 13
0 votes
1 answer
7k views

Dynamically send Attachment from Marketing Cloud

I'm wondering if it's possible to dynamically send an attachment with an email from marketing cloud. In the marketing cloud, we will have contact details, based on certain criteria I want to pick a ...
salesforce Developer's user avatar
38 votes
3 answers
3k views

How can I capture a system.limitexception stopping my emails being sent

In Salseforce governor limits, it states that every org is allowed to send single emails to 1000 external addresses every 24 hours. On very rare occasions, an org I work with has exceeded this limit ...
Christopher Alun Lewis's user avatar
14 votes
2 answers
3k views

Identify which OrgWideEmailAddress records are valid for current user

I'd like to create a popup list on one of my Visualforce pages, for a user to select from a list of OrgWideEmailAddress records. My goal is to limit the list to only those records that they're ...
tomlogic's user avatar
  • 4,441
11 votes
1 answer
4k views

Accessing Email logs using REST or SOQL

For Email Logs, we follow below steps generally: Go to Setup--> Logs --> Email Log Files --> Request an Email Logs --> Download(once it is ready). Is there any way to access this information ...
Hari's user avatar
  • 111
11 votes
5 answers
13k views

How to override the "Send an Email" button on the Case object - Emails related list

On the Case object page, there is an Emails related list which has a Send an Email button taking the user to another page to fill in the email. I haven't been able to find a way to override the ...
Joe's user avatar
  • 3,421
10 votes
1 answer
7k views

How to create an EmailMessage record with DML having HasAttachment to be 'true'?

I'm creating EmailMessage records via DML EmailMessage createWhatEmail = new EmailMessage( Subject = 'test' ,Status = '3' ,ToAddress = 'heim@...
Uwe Heim's user avatar
  • 28.3k
9 votes
3 answers
5k views

To Check if Org-wide email is verified in APEX

I have created a picklist with selectOptions as Org-wide email address as below VF Code <apex:selectList value="{!emailFromAddress}" size="1" multiselect="false"> <apex:...
snehakem's user avatar
  • 2,279
8 votes
3 answers
15k views

Is it possible to send an email via the REST API?

I'm looking to send emails through the REST API, specifically through Restforce in Ruby, but I can't find any resources on this. I am finding my resources about the sendEmail function, and how to set ...
josh's user avatar
  • 449
7 votes
1 answer
581 views

Dynamic html mail process through single list

I want to sent a mail through single list every week.html mail and text mail both. It is possible to create one list like "12548" and add the different user like "[email protected]","[email protected]", .... ...
Deepak's user avatar
  • 139
7 votes
2 answers
5k views

WHY Can't I Use SetTargetObjectId(UserId) and SetWhatId?

I have a very simple error handling case. I need to send an email to the running user, who almost certainly does not have an associated Contact record. I also need to specify the error record in ...
Adrian Larson's user avatar
  • 149k
6 votes
1 answer
4k views

Community User not receiving welcome email from sandbox

Community users are not receiving their welcome email when testing a custom self registration form in a sandbox org. Current setup The custom community user login profile has been configured in the ...
Robs's user avatar
  • 9,187
5 votes
2 answers
5k views

How do you use Batch for send more than 10 emails?

I have been watching how to implement the batch for sending more than 10 email but I get errors. When I send emails I have a limit 5 and also are sent several times to the same user email global ...
aniespica's user avatar
5 votes
1 answer
2k views

Platform Event subscriber not sending email to gmail domain

I am trying to send an email to the user who initiated the event in the case of an error during event processing. In the subscriber I have code similar to the following: public void onAfterInsert(Map&...
Rob Scott's user avatar
  • 769
5 votes
2 answers
10k views

Email Button - Email Template

I would like to create a custom button in the Contact detail page that when we click on it, it sends an email template capturing the information of that paricular contact. How can I do this? Any ...
Chicho's user avatar
  • 485
4 votes
3 answers
8k views

Salesforce Email Service Debugging

I have defined an email service which unfortunately isn't working. Is there a place I can monitor errors? The class doesn't appear in debug logs.
Thomas Riddler's user avatar
4 votes
1 answer
2k views

Adding an attachment to the EmailAuthor page

I would like to have a button on an opportunity page that generates and saves a pdf as an attachment object and then opens the /_ui/core/email/author/EmailAuthor page with the attachment already ...
Joe's user avatar
  • 3,421
4 votes
1 answer
1k views

Is there an easy way to change the WYSIWYG editor for sending emails?

I've noticed that the WYSIWYG editor for sending HTML emails in a SalesForce case is dated (doesn't support keyboard shortcuts, doesn't support text indentations, doesn't support font styles/headers ...
Mike B's user avatar
  • 369
4 votes
1 answer
2k views

HTML editor error in content builder

We're transitioning all our old email code from the Classic Content into the Content Builder, but I've run into an issue several times that looks like a glitch in the HTML editor (NOT the wysiwyg) to ...
Kevin Illick's user avatar
3 votes
1 answer
3k views

Email Deliverbility

How can I enable permissions to edit Email Deliverability access level? Currently it is not editable and in system mode. I need to edit it and set it to "All Email so I can test Approval and workflow ...
NEHA GUPTA's user avatar
3 votes
2 answers
3k views

How do I test an apex trigger that sends an email

Trigger is: trigger emailtemplate on opportunity(after update) { List<opportunity> oList = Trigger.new; List<opportunity> nList = trigger.old; if(oList[0]....
Kranthi's user avatar
  • 31

1
2 3 4 5