Questions tagged [send-email]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
2answers
6k views

Sending Email using Email Author in custom button

I have tried this code for custom button for single click email sending. Unfortunately it is not working and returns an error. Could anyone tell me what I am doing wrong and correct me please. Thank ...
5
votes
1answer
181 views

Do we have any option in salesforce to make the mail as important in apex code?

I am writing the code to send an email to our support group whenever the value goes more than the threshold level defined in the custom setting. I want to make the mail as more important. Please ...
5
votes
1answer
4k views

How to test SendEmailResult for SingleEmailMessage

How could I write unit tests for the SendEmailResult. I want to generate erros in to errResult parameter. What are the possible ways of testing this. Messaging.SingleEmailMessage message = ...
4
votes
1answer
1k views

Use fields from WhatID object in Email Template

I have apex code that sends out emails using templates. The code sets the RelatedTo id as a contact, and the WhatID as a custom object which is a child of contact. Sometimes the child object is a ...
4
votes
1answer
741 views

How to get missing Buttons “Reply”, “Reply All”, “Forward” on Emails at the Activity Tab in Lightning Experience?

I'm working on hundreds of different orgs. Some of them have those buttons, other not. How can I get them on all orgs? (In the screenshots see right side in the bottom of each email.) BAD ORGS GOOD ...
3
votes
1answer
671 views

Sending email based on Timezone of IP address

Is it possible to do User-Initiated send that takes into account the timezone of the IP address or something other than IP address?
3
votes
1answer
171 views

Do emails sent with addresses set in setCcAddresses count against the daily email limit?

Will emails sent with values in setCcAddresses for external users count against our daily email limit?
3
votes
1answer
749 views

Rest API says email is queued but never shows up in web frontend or sends email

I'm using the REST API to send emails and currently have five test emails. Two of these never go to a 'Queued' status in the Triggered Send definitions after hitting the API, despite getting a 202 ...
3
votes
1answer
1k views

ExactTarget SOAP API: Sending an email to a single email address without a list or DE?

Is this possible? I know i can start a send to an existing user initiated message using the perform action on the EmailSendDefinition object like below. <PerformRequestMsg xmlns="http://...
3
votes
2answers
1k views

Send an Email from Task: Why does the To field picklist sometimes show up?

When I click "Send an Email" from an Activity History Related List from a custom object record, sometimes a picklist appears next to the "To" lookup field. Why does it appear when I select some ...
3
votes
1answer
61 views

Send emails using Salesforce Reports based on Custom Object

I want to send emails using a Salesforce Report which is based on Custom Report. I have created an AMP Script Code in order to fill some fields but I don't receive the email. This is the code: %%[ ...
3
votes
1answer
207 views

How to Messaging.sendEmail() so that the email is properly shown on a record's activity tab in Lightning Experience?

This question is related to but different from How to use an Apex Email Service to store emails on a record EXACTLY as Salesforce does? I want to send an Email using Messaging.sendEmail() This Email ...
3
votes
1answer
770 views

Scheduling email resends in Salesforce Marketing Cloud

I'm looking for a way of scheduling an email resend in Marketing Cloud. Currently, we re-send to non-opens for some emails, by creating a filter with Measures and Data Filters to get the data of who ...
3
votes
1answer
513 views

Messaging.sendEmail - You have uncommitted work pending. Please commit or rollback before calling out

I have a callout class to make a call to a web service, I would like to send an email when the callout fails: String ret=''; try { ret = ApprovalService.CreateApprovalRequest(sessionId, obj.Name, ...
2
votes
1answer
243 views

Email send throttling finishing 1hr earlier

Why is email send throttling in Marketing Cloud finishing earlier than expected? I did a User-Initiated send to 190k contacts throttled from 4:30pm-8:30pm with a max limit of 50k/hr. I would expect it ...
2
votes
2answers
135 views

What kinds of locks are used on Data Extensions and Sending?

Can someone explain how Marketing Cloud locks data in Data Extensions during certain routine operations? Case A: An email begins sending and midway through, a SQL Query gets ran which overwrites the ...
2
votes
1answer
881 views

Can we Enable Send Log Per Business Unit in Marketing Cloud?

As per below Marketing Cloud documentation, Does it mean that we can have only one Send Log in an account? "To use send logging, create a data extension using the send logging template. Each account ...
2
votes
2answers
3k 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 ...
2
votes
1answer
1k views

Customize the send email page in cases

we need to somehow be able to send copy of the email sent from cases "send email" relatedlist to a particular email address. From whatever i have looked at i am unable to find a way to cc to ...
2
votes
3answers
2k views

What will happen to contacts which are in middle of a Journey and we update the Journey in Journey Builder?

Let's say we have 6 steps (all send email) in Journey builder. There are contacts who are already on Step 4, 5 and now we update email templates for all 6 steps and add new data. What will happen to ...
2
votes
3answers
503 views

How to avoid to send the mail to owner field

I have used the following code for sending the mail with template. but I don't want to send the mail to owner. List<String> toAddress = new List<String>(); toAddress.add(my email ...
2
votes
1answer
680 views

Send bulk emails to internal contacts through apex

I have a requirement to send email to campaign members(Contacts) through Apex. Read few blogs where they mentioned if I am sending emails to internal user, contact or lead using "setTargetObjectId" ...
2
votes
1answer
693 views

ExactTarget email will display in send preview but error at send time

I have a subset of emails that will not send from Send Preview, nor from a user-initiated send, but they will display in the Send Preview screen. My emails are dynamically generated, and some subsets ...
2
votes
0answers
509 views

Soap API sendEmail Must specify a type attribute

I am trying to send an email using the Soap API but always get the following error: Additional information: Must specify a {http://www.w3.org/2001/XMLSchema-instance}type attribute value for the {...
2
votes
2answers
2k views

Emails not being sent

I've created a new DE based on a sync DE from SF by creating a data filter and a filter activity to create the new DE that should be used for sending emails. I can see the subscribers but when i try ...
2
votes
0answers
3k views

How could I do line breaks (/n or /r/n) on Messaging.SingleEmailMessage PlainTextBody?

I know this question is asked before and could found in the below links, (I am posting this as I want to post my code with some changes to the solutions provided in the below links.) PlainText email ...
2
votes
1answer
393 views

Default from address is not picking for Salesforce email from Case details Page

In our system, there were multiple Organization-Wide Email Addresses configured and verified. In that I need to make one default address as "From Address" to everyone. Eg: support@xxx.com. I am ...
2
votes
0answers
306 views

Customizing the article attachment in the send an email functionality

As per standard salesforce functionality, while using Send an Email from a case, you have the option to attach the article as an attachment to the email that is sent. Salesforce has a certain ...
1
vote
2answers
656 views

Send an Email in Hindi or Other Language

When I try to send an email with hindi words via Send Email button in email related list in Case, its allowing me to copy hindi the content and paste it in email body and subject [![enter image ...
1
vote
1answer
642 views

Test class Limits.getEmailInvocations() showing zero and assertion is failing

I have a bizarre issue. I have a trigger that will send an email based upon a record update. When I debug my trigger running the test class it showing the email result as success and when I debug and ...
1
vote
1answer
289 views

Clarification on SFMC Send Classifications and how many are needed

I work in a medium sized business and we have several email audiences - basically, 3 overall audiences, with a few different subsets of each of those 3. We're in the education sector so you can think ...
1
vote
1answer
1k views

What custom fields can I include in the SFMC send log?

I've just set up a SFMC send log and have included a few custom fields. But at first glance the data in the send log isn't that useful to me. How can I create a send log that includes data from the ...
1
vote
1answer
583 views

Add date of send to Sendlog for every record?

How would I go about adding the EventDate from the _sent table to the Sendlog for every campaign? Technically it doesn't have to be that exact value, but essentially it needs to be the date of send. ...
1
vote
2answers
4k views

ExactTarget Triggered Send is not processing any messages

I have created a triggered send in Exacttarget which I am calling via APIs (SOAP and REST). While trying out the REST APIs I ran into two errors after which the triggered send has stopped processing ...
1
vote
1answer
67 views

How do I stay within governor limits if there is no method which returns the number of Emails sent?

I am sending Email alerts to users when importing Accounts, but bulk uploads are failing as the daily limits are being exceeded, or, the number of emails being sent by a single SendEmail call is more ...
1
vote
1answer
435 views

HTML Email Template Merge field values not coming in email

I have below code where I have to alter merge field values with record data in a trigger. Apex Trigger trigger ABV_SendEmailToOwner on Form_Requests_abv__c (after update) { Form_Requests_abv__c ...
1
vote
1answer
126 views

Mass Email Acknowledgement Options

Business has a need to send out mass communications/emails to internal staff. With these emails, they would like a button or signature option to appear in these emails that the recipient would have to ...
1
vote
1answer
27 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 ...
1
vote
1answer
91 views

Is there a way to specify Journey Builder Email Sends to occur only during a designated timeframe (i.e. Business Hours)?

Similar to the Send-Throttling "Delivery Window" setting, is there some way to achieve only sending emails during a specific timeframe throughout the day when an Email Activity is used in Journey ...
1
vote
1answer
108 views

Does Marketing Cloud deduplicate subscribers before making an A/B split?

I am configuring my first A/B split test with an email. I know that during a single send to a data extension, normally, Marketing Cloud will dedupe the DE's contents on the email address. However, I'm ...
1
vote
1answer
413 views

HTML Email Status Report based on emails sent by other users

I've created a report based on the HTML Email Status report type. I can view emails I sent, but I cannot view emails sent by other users. What do I need to do, to view a report of emails sent by ...
1
vote
1answer
126 views

SendLog Questions: LookupRow instead LookUp

What i am trying to accomplish is that the online version of an email stays intact after the related dataextension used for sending is updated. Therefore i created the SendLog DataExtension and added ...
1
vote
1answer
1k views

Sending emails out via ProofPoint/Exchange(office365)

We are required to monitor all in and out bound emails. we use ProofPoint. However, we want to send emails out from SalesForce but we need to monitor them with ProofPoint. Is there a way within ...
1
vote
1answer
146 views

Salesforce Contact's Email Sends empty

I have salescloud and marketing cloud integrated via connector. If I do a salesforce send to a report, emails go through ok, and the tracking information goes back to salescloud: http://imgur.com/a/...
1
vote
1answer
458 views

Can I query Records with Status of Soft Bounce?

Is there a way for me to query records that has a status of 'Soft Bounce' for an email that was sent using journey builder and store those records in a data extension?
1
vote
1answer
4k views

How hard bounce emails are treated by Marketing Cloud?

I have read this help document but I am a little confused: Bounce Mail Management How many times an email needs to receive an email from marketing cloud in order to be marked as hard bounce? Just ...
1
vote
1answer
1k views

How to find out the Send Id and Batch Id of an Asynchronous TriggeredSend

Disclaimer: I'm new so I may not have the terminology down. I'm including links to the documentation on the Exact Target site regarding the APIs we are using. We are using Asynchronous Triggered ...
1
vote
2answers
1k views

Send Email from Apex Class in Sandbox not working

I'm wondering if anyone can help. I have a trigger that uses a helper class to send an email using the sendMail method. This code is written in one of my Sandboxes and when I test this functionality ...
1
vote
1answer
4k views

Custom Button to Send an email using email template

I have created a custom button on Opportunity. The custom button has following javascript code. When the user clicks on the button the email should be sent.I find no errors in the code. But I am not ...
1
vote
1answer
155 views

Does the REST API Message method support data extension attributes

I have a use case for a transactional message where the web service would like to push information from a purchase order as data attributes not associated to the subscriber profile at time of send (p/...