Questions tagged [send-email]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
436 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 ...
0
votes
1answer
44 views

Email class fails to trigger email

I have below email class that fails to trigger the email class. I am not getting the reason in debug log even. Can someone let me know where I am making the mistake? Apex class method public ...
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 ...
0
votes
1answer
759 views

Is there a way to get email notification when Email Send Definition is performed and Send job is complete?

Note: I am using FuelSDK with C# For example, When Import Definition is completed there is an option to receive email notification showing that import was successful and if there is any error then it ...
0
votes
1answer
231 views

How Do I Schedule An Email To Be Sent Via FuelSDK?

I've been trying (unsuccessfully) to use the FuelSDK to schedule an email to be sent via the FuelSDK (C#). I've followed various examples from the documentation but so far nothing works. My first ...
0
votes
2answers
134 views

Filter contacts when sending an email from Account

When we "Task: Send an Email" from an account record, the account is set by default, but one must select a contact to send to. Problem is, the lookup shows contacts from other accounts, so it is easy ...
0
votes
1answer
302 views

Sending an image to ExactTarget Triggered Send

I am sending an email to my subscribers via a triggered send. I have set up automation studio set up and the email gets triggered when I drop a file to the import folder of the FTP site. The ...
0
votes
2answers
387 views

Email Address Fields in Sendable DE

Can you please respond to following query. If there are multiple email addresses in a Sendable DE, and one of them is Subscriber key, will the email be always send to the Subscriber Key (Email Address)...
0
votes
1answer
249 views

Fuel REST sendBatch

Is there an actual help/doc. page for the sendBatch endpoint? I see folks reference the actual endpoint in various posts, and have successfully used it - but have not found a help/doc. page on it. ...
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 ...
0
votes
1answer
241 views

Multiple email attachment failure

I have below code to send multiple email attachments in a single email which is throwing below error. Can some one please tell me what's wrong here? Code Snippet Messaging.EmailFileAttachment efa = ...
0
votes
1answer
436 views

Fail to send email by utility class

I have below utility class which throws error as this in debug log. Error INVALID_FIELD_WHEN_USING_TEMPLATE: When a template is specified, the plain text body, html body, subject, charset, and "...
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 = ...
0
votes
1answer
78 views

De-Duping an Email Correctly

I'm about to send an email to two data extensions and I'm a bit unsure of myself when it comes to de-duplicating emails. I really don't want to accidentally send people two emails when I send this. ...
0
votes
1answer
35 views

I cannot see EmailTemplate object while making a look up field in Account object?

In Account detail page I am trying to create a look up field name "SelectEmailTemplate" . But in the related object list i cannot see the object 'EmailTemplate'.... Any solution , thanks in Advance
1
vote
0answers
298 views

ExactTarget: Open Rate Breakdown for Triggered Send based upon specific column

I have set up a TriggeredSend that populates a data extension with several fields. One of the fields is a clientId, and another field is the url of an image the corresponds to the client represented ...
1
vote
0answers
261 views

FuelSDK C# Send Email

I'm trying to send a new email to a list of subscribers via FuelSDK C#. 1) Should I be using a Send or a TriggeredSend? Based on the SDK documentation, it appears that I should be using Send. 2) Do ...
0
votes
1answer
61 views

Send Email to Rep_abv__c field of Update Records

I have below method where Publish operation occurs. Here I can get in Debug log that SetToAddress is coming as Null hence Publish operation not working. For the rest everything is fine. Please let me ...
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
0answers
419 views

send-email option from activity history; How to populate contacts list view on custom object record?

How could I populate the contacts list view for a custom object record when I click the CC link on send-email page from a activity history related list? I am able to see that list view on Accounts but ...
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 ...
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 ...
0
votes
1answer
340 views

Unable to Save email in the Activity History

I have a custom button to send an email. The code is working fine. Now I would like to insert those email in the activity history. I did set mail.setSaveAsActivity(true). But when I click the ...
0
votes
3answers
221 views

Custom Button to send email no working

I did create a custom button(OnClick JavaScript) to send an email. It is working fine with system admin. But when I did deploy it in production the users with profile other than system admin ...
3
votes
1answer
514 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, ...
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 ...
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 ...
0
votes
0answers
131 views

How to retrieve Triggered Send Tracking result for an Email Address

Requirement: Check if the email sent out by the trigger send was opened Issue: I am unable to get this information for specific email ID(s) by using the Server side JavaScript functions. Initially, ...
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
0answers
885 views

Null Object Error When Execute the send mail code

When I am running the below code to Execute anonymous, its through the following error. My Code: EmailTemplate templ = [Select id,name,subject from EmailTemplate ...
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/...
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 ...
1
vote
1answer
738 views

Prevent emails being send to customers

I am currently doing a Service Cloud implementation for a customer. We have just tackled the email to case needs and we would like to start testing this. We are only facing one problem now: prevent ...
3
votes
1answer
750 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 ...
1
vote
1answer
127 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 ...
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://...
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 ...
0
votes
1answer
486 views

Redirect VF Page after sendEmail

I have a VF page with a submit button, when the user clicks on the submit button it sends an email. I need the page to redirect to a thank you page after they hit submit. I am getting this error: ...
1
vote
1answer
2k views

Test for sendEmail() error

Hi I have built a class and a test and I am getting close to getting the test to work. I am trying to send an email using a template. But I am getting an error on the last line of code. Save ...
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?
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 ...
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 ...
1
vote
1answer
594 views

How to Send Multiple CC Emails + Email Send Definition PHP [closed]

How to Send Multiple CC Emails + Email Send Definition PHP Working well with one CCEmail, but i want to send multiple ccemails. I tried with comma separated, but it is not working. Do we have any ...
1
vote
1answer
3k views

How to insert Activity History record after sending an email

I cannot create a new Activity History record when using message.setSaveAsActivity(true); so i added mail.setTargetObjectId(con.id); its working fine. but actual issue is when i am sending mail ...
0
votes
1answer
200 views

MessageDefinitionSends Recipient Name Field Ignored by API

Am I doing something wrong? It doesn't appear that the Name field is recognized. This is the body I'm submitting via the rest api to the endpoint defined here: https://code.exacttarget.com/api/...
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 ...