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
Filter by
Sorted by
Tagged with
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 ...
Novarg's user avatar
  • 5,236
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 = ...
Santanu Halder's user avatar
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 "...
Kirill Yunussov's user avatar
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 ...
Venko's user avatar
  • 1,030
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, ...
KaLi's user avatar
  • 1,519
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 ...
NSjonas's user avatar
  • 10k
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 ...
Keith Mancuso's user avatar
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 ...
Jackson Chen's user avatar
  • 4,677
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 - ...
Andrey Osh's user avatar
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 ...
DigitalMC's user avatar
  • 313
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 ...
Sabrina's user avatar
  • 243
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 ...
Shira's user avatar
  • 47
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 ...
skycafe's user avatar
  • 377
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 ...
Kiran Machhewar's user avatar
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 ...
Shanerk's user avatar
  • 1,042
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 ...
Ryan Werner's user avatar
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 ...
Frank Kern's user avatar
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 ...
Jochen's user avatar
  • 663
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 ...
user avatar
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 ...
hamayoun's user avatar
  • 2,727
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 ...
uberpirate's user avatar
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 ...
dupes's user avatar
  • 355
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){ ...
Frederik Witte's user avatar
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 ...
Ashwani's user avatar
  • 22.6k
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 ...
user9946's user avatar
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 ...
Robs's user avatar
  • 9,187
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. ...
George Rosedale's user avatar
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 ...
SFDC_Beginner's user avatar
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 ...
Asad Qureshi's user avatar
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 ...
GeorgeA's user avatar
  • 964
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 ...
Nick's user avatar
  • 6,934
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 ...
Jose Manuel Martín Fluxá's user avatar
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?
maidenfp's user avatar
  • 193
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 ...
Chirag Mehta's user avatar
  • 1,291
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 ...
Ian Horner's user avatar
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 ...
zuzannamj's user avatar
  • 14.3k
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, ...
Alexis Kasperavicius's user avatar
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 ...
devsfdc's user avatar
  • 441
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 ...
Yaswanth Tikkisetti's user avatar
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[...
Endrit Sino's user avatar
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 ...
Curious Blueprints's user avatar
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 ...
Edmondo's user avatar
  • 1,702
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 ...
JonasU's user avatar
  • 31
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 ...
Novarg's user avatar
  • 5,236
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 ...
Barış Arslan's user avatar
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 ...
Bugrahan 's user avatar
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 ...
slim's user avatar
  • 107
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 ...
gatapia's user avatar
  • 131
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)) ...
Sandy's user avatar
  • 41
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-...
AMM's user avatar
  • 4,674

1
2 3 4 5
18