Questions tagged [email]
Salesforce provides multiple forms of email, including email templates, mass email, email services, email alerts, and email sent via Apex.
854
questions with no upvoted or accepted answers
10
votes
1
answer
2k
views
Do not send email when activating a user
I'm writing some code that should (de-)activate some users based on some criteria. This part was easy, but one of the requirements is also that this user should NOT get an email.
So when I create a ...
9
votes
0
answers
2k
views
Update user email without email confirmation via Apex
I have been trying to update the user email via scheduled apex, but it seems I am out of luck!
User u = [Select Id, email from user where email = 'emai[email protected]' limit 1];
u.isactive = ...
9
votes
0
answers
2k
views
Email Deliverability - how to change it programatically?
In all new sandboxes "Email Deliverability" is set to "System Email Only". I am writing a SandboxPostCopy class to run for all new sandboxes, and want to use that class to change deliverability to "...
9
votes
1
answer
185
views
How can I reproduce the EmailAuthor native SFDC application?
I'm comfortable with sending emails using APEX and using mailmerge within that process. What I want to do now is load an email template, mailmerge it automatically using a predetermined contact ID and ...
9
votes
2
answers
2k
views
Salesforce with Lync Collaboration (automate meeting request generation & email)
I am evaluating the possibilities of integrating Lync with Salesforce. Ideally the requirement is to engage the customer over a video chat. The Agent from the Service Console will click on a Button, ...
7
votes
0
answers
749
views
How to use SingleEmailMessage.setReferences Method
According to the documentation, the setReferences function "Identifies an email thread. Contains the parent emails' References and message IDs, and possibly the In-Reply-To fields".
I can't actually ...
7
votes
0
answers
2k
views
Email chatter followers on every post to record
I want to email all the followers of a record anytime anyone posts to the chatter feed. I assumed this would be simple but it doesnt seem to be built into the system?
It seems like im gonna have to ...
6
votes
0
answers
2k
views
What is Distributed Marketing?
Based on the Distributed Marketing sales page and help documentation, Distributed Marketing allows for non-marketers to send emails in Sales/Service/Community Cloud using Marketing Cloud as the ...
5
votes
0
answers
607
views
Comments in Salesforce contact email address
According to https://help.salesforce.com/articleView?id=000321158&type=1&language=en_US&mode=1, Salesforce supports comments in email addresses
Comments - denoted by matched parentheses - ...
5
votes
1
answer
10k
views
Print AMPscript Variable inside HTML <tag> as attributes
So I am using ExactTarget templates and content areas to build my emails. In my templates I have AMPscript variables defined in the < head > and that will determine how elements in my content areas ...
5
votes
1
answer
207
views
Disable sending a chatter message which is sent to all users when sharing a file
I wrote a trigger on FeedItem to share a file. Salesforce automitcally sends a chatter message when sharing a file.
Is it possible to disable sending a chatter message and an email which is sent to ...
4
votes
1
answer
896
views
Emails are not being received when sent through Apex
Below is my sendEmail Method .
public void sendMail(List<user> Users, string emailTemplateName) {
final string FROM_ADDRESS ='Test';
List<Messaging.SingleEmailMessage> emails = new ...
4
votes
0
answers
869
views
Einstein Activity Capture download email from AWS
In Einstein Activity Capture, email is "captured" and stored in AWS, not Salesforce. Is there any way to get the email from AWS into Salesforce? For example using Analytics REST API or ...
4
votes
0
answers
379
views
How to identify which emails were considered against salesforce email limits by analyzing email logs?
Problem Statement: Let's say your org hits email limit. Now in order to understand because which emails volume is increased, one can go and pull the email logs that includes all emails like
Email ...
4
votes
0
answers
1k
views
Apex SendMail() method emails received when executed as anonymous but not from code
We have been struggling with this for a day now and the answers on the web have not been helpful, so I'll be explicit in describing our issue.
We have implemented a wrapper method for SendMail() as ...
4
votes
0
answers
873
views
Not receiving Apex exception emails
I am unable to receive any Apex exception emails in both my own dev playground org and the sandboxes/production org for the company I work for. I remember at my last company I would receive exception ...
4
votes
0
answers
450
views
Salesforce Lightning and the EmailAuthor
We want to switch from sfdc Classic to Lightning. But we are using a lot of custom fields with links (formula fields with hyperlinks) to refer to visualforce pages which are calling different apex ...
4
votes
0
answers
55
views
Alter email that an error email is sent to for errors in a package
We have a package. During the upload of the package, we specify a user to receive the emails when errors occur in the package.
The package may deal with personal health information. Some ...
4
votes
1
answer
242
views
Send email after apex class execution
I've migrated my portal to community now and all the functionalities are working fine. except one thing. I can't seem to send an email that is executed with an apex class.
I want to send a "thank ...
4
votes
0
answers
389
views
Order of organization wide addresses in From dropdown box when sending email
When sending an email from a Case, the From dropdown shows all the verified organization wide email addresses. But what is the order in which they are displayed? It looks like from the screenshot ...
4
votes
0
answers
616
views
Email bounce management in apex?
I have bounce management turned on in my org, and email bounces are detected when messages are sent using the Mass Email wizard, but they aren't detected when messages are sent through apex. Is there ...
4
votes
1
answer
68
views
problem using ExclusionFilter without emailaddress
I am trying to setup a filter for my triggered sends. I want to exclude all of my users who exist in a certain Data extension: "DE_1" and have the column 'Email_Hater' with value 'True'. DE_1 has two ...
4
votes
0
answers
173
views
Inbound E-Mail has problems with utf-8?
I have a problem with an inbound E-Mail. In my Apex code I just use the following:
global Messaging.InboundEmailResult handleInboundEmail(Messaging.inboundEmail email, Messaging.InboundEnvelope env){
...
4
votes
0
answers
71
views
How Many Org-Wide email Addressese can be Created in Salesforce
Question is very straight forward. Answer would be, as much ORG-wide email addresses we want can be created.
But is there any official note which can prove that 2000 Org-Wide emails can be created ...
4
votes
1
answer
1k
views
Display a count of records within 15 miles of a subscriber ZIP code
I have an ExactTarget question.
I have a data extension of _subscribers. One of the fields is their zip_code
I have another data extension of _widgets which includes the widgets' zip_code1
I also ...
4
votes
2
answers
2k
views
Community Welcome Email Merge Fields Not Merging
I am sending the community welcome email after a portal guest user completes a custom registration form.
The welcome email is a visualforce email template, with the recipientType as User and ...
3
votes
0
answers
127
views
After connecting SFSC and SFMC we see TWO EMAIL FIELDS in All Subscribers... huh?
we recently connected SFSC and SFMC and while building an automation to manage Email Change of Address we noticed there are two mandatory fields for EMAIL in All Subscribers and we're not sure why.
...
3
votes
0
answers
1k
views
Salesforce - Spring ’21 - Organization-Wide Email Adresses
Testing Customize your default no-reply Address
Added the email address under Setup > Organization-Wide Addresses > Special Purpose Organization-Wide Email Addresses
and Email is verified now
...
3
votes
0
answers
351
views
Handling email forwards for Reply Mail Management within Marketing Cloud
We have a specific use case where we are facing a challenge with campaign email forwarding.
We are trying to capture email replies inside sfmc. Let's say a campaign email goes out to a customer from ...
3
votes
0
answers
889
views
Mocking Inbound Email Headers in Test Class (In-Reply-To or References)
We have a custom email handler in apex. With the new changes upcoming to remove Thread IDs (https://help.salesforce.com/articleView?id=000355168&language=en_US&mode=1&type=1), we are ...
3
votes
0
answers
2k
views
Cannot see 'Send Email' button in Activity History in a Lightning
In my custom object I have added Activity History as a related list and I see "Log a call" and "View all" button but I don't see the button "Send email".
Here is what I ...
3
votes
1
answer
33
views
What can cause disagreements in Marketing Cloud between Send email and Update records?
We have this scenario: we've sent 1818 emails to a 1818 campaign members... but, only 1516 are updated in the next action. The second action only has a few updated fields with normal values:
Do you ...
3
votes
0
answers
292
views
Open Send Email Component in Utility Bar
Can I use the standard send email docked component (email quote) and call it from a custom component?
3
votes
0
answers
861
views
How to Send Email with predefined Template in Lightning?
In Lightning, how does one create a quick way for users to send an email with specific email template pre-selected? In classic, we can use URL parameters and do the same but with lightning that's not ...
3
votes
0
answers
657
views
In a Task trigger, is there any way to know if a Task is an Email before it has been inserted?
In the "before insert" section of my Task Trigger, I want to check if a Task is an email. But from what I can tell, the only way to know is by checking the Task.TaskSubtype field, but that field is ...
3
votes
0
answers
611
views
Correctly insert a content slot (placeholder) into email template
I am building my own email template and wanted to add a few empty Content Block placeholders so that the users can later easily drag and drop content.
I am facing two problems when I am reusing the ...
3
votes
0
answers
141
views
Is there a standard lightning solution to email all contacts from a case?
What is the Lighting standard solution to email all or selected contacts from the contact roles list on a case?
In classic, the contact roles list has a standard send an email button.
When pressed, ...
3
votes
0
answers
638
views
The target object email address is currently marked as bounced
I have activated bounce management in two dev orgs. I am sending emails to record owner through batch class. If email is not valid, DEV1 org is throwing a message Email address is invalid and DEV2 org ...
3
votes
0
answers
362
views
From Address for outbound email message in communities
We have a requirement to set the from address to the outbound emails sending from communities like welcome, forgot password and reset password.
Currently it's taking the email address which we ...
3
votes
0
answers
900
views
Email doesn't get sent even after changing the email address for error: The target object email address is currently marked as bounced
I am running into an issue when I want to send an email via apex. The problem happens occasionally only with some emails from some domains.
The error in specific reports:
Messaging.SendEmailError[...
3
votes
0
answers
2k
views
Email images not displaying ONLY in Outlook Desktop
EDIT: I posted a similar question (attacking this problem from the Outlook end) over at Super User: link
I have an email template that uses a letterhead with an image (document) at the top. I have ...
3
votes
0
answers
47
views
Effective email with Salesforce
We would like our employees to send emails starting from an Account/Contact/Lead (not from cases) and be able to handle answers from clients.
Our current setup includes:
A different email address ...
3
votes
0
answers
128
views
Update object through Visualforce email template
I have a scenario where I have a custom object to store temporary keys. In my Visualforce email template, I fetch a key and inserts into the email and that works great.
But, I need to be able to set ...
3
votes
0
answers
959
views
Send emails from Salesforce with attachments to create tasks in Outlook?
One of the requirements for the project is to automatically send mails with events/tasks from Salesforce whenever an event/task is created/edited/deleted.
I was able to send events and updates, but ...
3
votes
0
answers
1k
views
Apex Email result isSuccess true but not receiving any email
I am trying to send automatic reminder emails about approvals which have been waiting over 2 days. So I created a schedulable apex to check ProcessInstanceWorkItems and send email to approver and ...
3
votes
0
answers
176
views
Visualforce Email Template Page Break
Is there any way to force email template to continue as a second page ? I tried "page-break-before:always" "page-break-after:always" but it does not work for me. What can i do to add page break to ...
3
votes
0
answers
4k
views
INSUFFICIENT_ACCESS_OR_READONLY error when sending email from scheduled class
I have a batch job that send emails on user anniversaries. It works when I run it in the execute anonymous window from SF's developer window. I'm sending it through the org-wide email address and I've ...
3
votes
0
answers
189
views
Email button (emailauthor.jsp) results in "The page you submitted was invalid for your session"
About 1 month ago my email button stopped working. Now pressing my 'auto-email' button gives me the email template page with the error
"The page you submitted was invalid for your session. Please ...
3
votes
3
answers
1k
views
Email BCC to Salesforce Function Not Triggering Workflow Rule (Task Field Update)
I've set up a workflow rule to update the activity TYPE field based on the subject of the email.
AND(
BEGINS(Subject, "Email: Fwd:"),
ISPICKVAL(Type, "4. Email Out"),
NOT(ISBLANK(WhoId))
...
3
votes
0
answers
3k
views
Exact Target - Individual Email Result object - set Lookup to IER records in Salesforce
Apparently Exact Target "uses" Stack Exchange for support issues. More specifically, they have no developer support, and their API is "as-is", and either way I believe I have this isolated to a non-...