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
0
votes
2answers
25 views

Catch System.LimitException in Batch to send error via Email

I created a batch that processes data based on certains parameters sent by the user and then sends the result via email. But sometimes the parameters are too ambitious and the batch throws a System....
0
votes
0answers
8 views

Web-to-Case or Web-to-Lead [closed]

Our company currently uses a third party to integrate emails from our website into our Salesforce system, but we're looking to transition to either Web-to-Case or Web-to-Lead in the near future. For ...
1
vote
2answers
37 views

Hitting html body limit of 32000 characters with only one Email

Good Morning, Like the title says, I do not understand why I'm hitting the charathicter Limit, I used a character counter online, copy and pasted my Email and it only returned ~1400 characters. The ...
1
vote
2answers
26 views

Pre-Define value for ToAddress When Sending email from Case - Email Action?

I am working on the on service cloud so it is very important for our agents to send email from case and they always use it to send emails. For that I have created email action and added this to ...
0
votes
1answer
37 views

What does mailed-by in google means?

Hi can someone explain to me what does the "Mailed-By" in the email details in google mean? And why is it that it says bounce.[subdomain].com on it. Thanks!
0
votes
1answer
43 views

%%view_email_url%% does not work in Content Builder

%%view_email_url%% does not work in Content Builder - but it works in Classic. Has anybody else run into this issue and how did they resolve?
4
votes
1answer
39 views

Is it Possible to Change a User's Email and Reset Password at Same Time via Apex Code?

When using the Saleseforce UI, it is possible to change a user's email and send them a password at the same time by changing the email and clicking 'Generate new password and notify user immediately' ...
0
votes
0answers
10 views

Why does Messaging.renderStoredEmailTemplate require that the running user have access to the User object?

Discovered this recently because a trigger was failing when triggered by a community user. Can't figure out why this should matter though, with the apex running in system mode and all. Is this ...
0
votes
0answers
15 views

How do I include an image in an HTML email created in Apex code? the <img> tag is not showing up for me

I'm attempting to create and send out email inside of an Apex controller. I'm querying the HtmlBody of another template (which has the image reference in it) but that doesn't show. I've also tried ...
8
votes
0answers
72 views

Made 3500 SOQL Queries in one context. LIMITS HACK?

Steps to reproduce: Create Visualforce Email Template Create Visualforce component and add it into the email template Create Apex Controller for the component from pt.2 Do some SOQL queries there, ...
1
vote
0answers
22 views

How can I send an email while using PageReference getContent() method?

I am trying to send an email while using PageReference and the getContent() method which is, only ocassionally, throwing an error (seems like every couple of emails regardless of the frequency). ...
0
votes
1answer
13 views

Outbound Email Message empty Attachment Related List

When sending an email, the person receiving it gets both the body text and the attachment being sent out along with it. So it sends out correctly. When I go into the activity history related list and ...
0
votes
1answer
30 views

Batch Generated CSV attachement is cut

I designed a Stateful batch to some data and send it as CSV via email. And I don't know why but the attachement received in the email doesn't contains all the expected data, the CSV file il cut in the ...
0
votes
2answers
28 views

i need to use a visualforce component in an html body in my trigger which sends a mail

I have a trigger which sends a mail on update of the approval status . I am using a HTML part in that trigger to send the mail . In place of x I want to call my visualforce component which is ...
1
vote
1answer
9 views

Getting an error when attempting to create an Email Quick Action in Sandbox

Why am I getting this error when attempting to create an Email Quick Action in a sandbox? Error: Invalid Data. Review all error messages below to correct your data.
1
vote
1answer
19 views

Send an Email on Contacts

I am using Enhanced Emails. My use case is as follows: When on the contact record, if the user clicks the send email button, they can send the email, and the "Related to:" field is filled out with ...
0
votes
0answers
26 views

email template to be used in apex . Email template used approval.id

I am trying to send emails through email template in my apex class . This is the code I am trying Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); mail.setToAddresses(...
0
votes
0answers
12 views

Email author url for lightning experience view

How to navigate to email editor with some parameters when user click on custom button on record detail page. I have VF page which redirects to email composer. Button working in classic but in ...
0
votes
1answer
15 views

How do I send an email based on a date difference?

For example, I have some DateTimeField__c, and if DateTimeField__c - NOW() = 11 (hours), I should send an email. Trigger is not a variant, because I can't check with it a formula field. A Scheduled ...
0
votes
1answer
29 views

Unable to send email via Apex Trigger on Non-Admin profile

My data structure: Opportunity -> SH_Quote__c -> SH_Quote_Line__c Apex trigger at SH_Quote_Line__c level public without sharing class QuotationLineItemController { //After Update Trigger Handler ...
0
votes
1answer
27 views

Triggered Email sending using AMPscript and cloudpages

I am facing issues with below AMPscript. I want to create a Cloudpage with First Name, Last Name and Email fields. Once the user submits the page, the triggered email should be sent to that email id....
1
vote
1answer
23 views

Apex Test Class : Send Email Error

Requirement: Send an Email alert using a custom lightning component for selected records under few circumstances(Business logic) for which Messaging.sendEmail was used. Functionality working ...
0
votes
0answers
32 views

Send Email through External Email Services by using Apex and Lightning Component

I built a lightning component with an email sending feature. It is working correctly through Salesforce internal Email service. But I have a requirement to send email through my Gmail account just ...
0
votes
1answer
29 views

Messaging.SingleEmailMessage email fails with invalid email address when using Target Object Id

I have a custom object that allows my users to create series of emails to their clients. I have a scheduled Apex job running hourly that scans for emails that are schedule to go out, creates the ...
0
votes
2answers
46 views

Deduplication based on a Data Extension field

Our client stores its customers' information in a DE called Customers. A field called IsMember describes whether the customer is a member or not. The email field in this DE is not the subscriber key. ...
0
votes
0answers
15 views

Problem sending email with attachment

I have a method to send email with attachment but some weird stuff keeps occuring where some emails + attachment arrived to the accounts that are returned by the query but some didnt receive anything ...
0
votes
0answers
26 views

Add several recipients in email template

Good morning, I have an Email Alert that calls an Email Template to send a email. My Email Alert has 2 recipients. I would like to mention each recipient in the email template like this: For each ...
-2
votes
0answers
41 views

Trigger not sending email - no error

I have 94% code coverage and lines that build and send email are executing according to the test. WHen I test in the UI, emails are not sent. Also when the Assert.Equals is used inside the test....
0
votes
1answer
21 views

Access Map value, Error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY

Full Error Message: System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, CaseCountAlertTrigger: execution of AfterInsert caused by: System....
1
vote
2answers
72 views

Can we purchase addon to increase limits on SingleEmail Apex limits?

The number of emails(using Messaging.SingleEmailMessage) we can send using Apex per day per org is 5000. There is a workaround to send emails using workflow but it won't solve our need as it won't ...
0
votes
0answers
12 views

Guide Template Language: multiple filters

I seem to be having some trouble puling specific product info from a data extension. I can pull one product, or I can pull all the products, but not a certain set. I'd like to be able to enter 4 skus ...
0
votes
2answers
31 views

Is there any way to pull sent email data based on template keywords within Marketing Cloud?

Has anyone found a way in which to extract email send data from Marketing Cloud and sort prior to extracting based on keywords in the title of the email template sent? My organization has built out a ...
0
votes
1answer
28 views

LWC lightning-output-field for email not respecting Email Editor Selection

I've created an LWC with a lightning-output-field pointing to an email field. <lightning-output-field field-name="myEmailField__c"></lightning-output-field> It appears to the user as a ...
0
votes
0answers
33 views

Parse Outgoing Emails (through Salesforce email composer) to change body's font style and embed a Signature

I would like to know if accessing outgoing emails before they go out of the system is possible. We want to get rid of default Salesforce signature and embed one of our own in all the outgoing emails. ...
0
votes
3answers
58 views

How to remove Outlook extra space?

Currently we are trying to get rid of some differences in the email appearance across different email clients. And a special one seems to be Outlook (2016) once again. We have a Layout with three ...
0
votes
0answers
13 views

Workflow Alerts ending up in recievers SPAM

As the title says, all the email created from Workflow Alerts are ending up in receiver's SPAM. The receivers gets an email like this... MnZ via fyewk123r1ith.123a-4133d1qdqsi.cs47.okok.sandbox....
0
votes
2answers
135 views

lookup table from another DE

I would like to insert a loop within a loop, this is the working first loop pulling in content from an external DE, how would I loop this over again? ---- updated working script below ------ %%[ ...
0
votes
2answers
20 views

Email Alert in workflow on multiple records

We have an object related to Contacts called "Storage". We store products for our customers for x amount of time and record this within this object. When the field "Stored Date" is 30 days in the ...
1
vote
1answer
46 views

Suppress specified links within emails

I am looking to suppress a specified AMPscript personalization string link within the body of one of my emails. It's %%view_email_url%% that I don't want to be tracked. I tried RedirectTo and other ...
2
votes
0answers
17 views

Checking if an ORG Wide Email Address has been verified in Apex [duplicate]

I'm running into an issue where emails are not sending when an Org Wide Email Address is not verified. No exception is thrown either. In apex, I'm resolving the ORG wide that matches the users email: ...
0
votes
0answers
10 views

Send email from opportunity contact role?

Is it possible to create a button on the contact listed in the Contact Roles related list on an opportunity? I want to send an email to that person and have the email show up on the opportunity page, ...
0
votes
1answer
19 views

Optional parameter in apex (sending email with PDF)

I have Messaging.SingleEmailMessage method return type that requires several parameters when its called, the code is below; public Messaging.SingleEmailMessage createEmailMessage(Id templateName, Id ...
0
votes
0answers
38 views

How to send triggered emails from SOAP API in Marketing Cloud

I try to send an email from Marketing Cloud with the SOAP API but it doesn't work. I try with SOAP UI, I always get a "OK" status but I never receive the email. This is my code: <?xml version="1....
0
votes
1answer
28 views

Why does my email action only show this?

Our relatively new org, actually about a year old, but only recently discussed sending emails from within Salesforce, shows the following within the email action? I believe we had a choice to send ...
0
votes
0answers
40 views

Accessing variable from void method based on given argument

I need to take variable from my void method based on the given argument when calling the method in another class. template = //here I want to take variable "ExpiringContract" Below is the code; ...
0
votes
1answer
18 views

DMARC, SAP and impacts to emails from individuals

Our company recently implemented DMARC and we are working through impacts to SFMC. We just purchased an SAP with the domain email.company.com. We send a lot of auto-sincerity emails - so emails that ...
0
votes
1answer
19 views

Contact Email field not queryable in SOQL

I'm querying contact email field in apex class and saving the return record inside a list. but when I debug the list queried then it does not show the email field. Below is the SOQL which I'm using ...
0
votes
1answer
37 views

Can we capture click activity of links in landing pages and generate reports based on the click activities of these links?

Can we capture click activity of links in landing pages that are used in emails ? Is there a way to generate reports based on the click activities of these links ? I can see Reports for landing pages ...
0
votes
1answer
65 views

I am not get the tabular report body in the attached email [closed]

I am not get the tabular report body in the attached email ,could you please help me. global class Exportertest implements Schedulable,Database.AllowsCallouts{ global void execute(...
0
votes
1answer
14 views

Remove email signature after sending single email with email template

here is the scenario. UserA has email signature in his setting. When clicking on a custom button, a template email is sent out to Person_B with sender UserA's name. Now the sent out name has 2 email ...