function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDC Admin.ax290SFDC Admin.ax290 

Mass Email Attachment

I am using mass e-mail JAVA API. The e-mail is sent to respective ids but attachment is sent as "HTML" instead original format of "PDF"
 
Any reason why API would send as HTML
 
thanks

Message Edited by SFDC Admin on 11-14-2007 07:44 AM

Here is my java code....hope that helps

    MassEmailMessage[] messages = new MassEmailMessage[1];
    messages[0] = new MassEmailMessage(); 
    messages[0].setBccSender(bccSender);
    messages[0].setEmailPriority(EmailPriority.Normal);
    messages[0].setReplyTo(replyTo);
    messages[0].setSaveAsActivity(saveAsActivity);
    messages[0].setSubject(emailSubject);
    messages[0].setUseSignature(useSignature);
    messages[0].setTemplateId(new ID(templateId));
  
   
    ID[] contactIds = new ID[1];
   
    contactIds[0] = new ID(contactId);
   
    //verify contact id is not null prior to attempting email
    if(contactIds[0]!=null) {
     messages[0].setTargetObjectIds(contactIds);

     try {
        SendEmailResult[] result = sfdc.sendEmail(messages);
    }

 

Message Edited by SFDC Admin on 11-14-2007 08:00 AM

sri14sri14

Hi,

 

How to send an acknowledge mail using java script, if error.csv file size is more than 1kb.

 

cheers,

sri

Venu EVenu E
Hello,

MassMailer Attachments Send Large Files and Control How Long They’re Available.

Have you ever wanted to send out a whitepaper, pricing sheet, product PDF, or other unique or large file, but you weren’t sure how? MassMailer Attachments is the answer you’re looking for. Share files with your contacts without any fuss and without having to use multiple services.

For this, you can visit and play with this app free trail for 15 days -

https://appexchange.salesforce.com/listingDetail?listingId=a0N30000005uxj5EAA

Do you want to know more details click here https://goo.gl/e0RtSm

Regards
Venu E