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
afindieafindie 

Email with Attachments

<script src="/soap/ajax/12.0/connection.js"></script>

some other code.

var attachments = new Array("000000000000000"); //replaced 000000000000000 with the document id in SF.
singleRequest.documentAttachments = attachments;

var sendMailRes = sforce.connection.sendEmail([singleRequest]);

I am not able to get this to work at all....

Example was shown with a 9.0 connection...I tried with that as well, but the email didn't go out.

thx in advance.
Greg HGreg H
Is the problem that the attachments are not being sent with the message or that the Email is not being sent at all? The attachments piece looks correct so maybe the problem is somewhere else in your code.
-greg
afindieafindie
email is being sent correctly if the attachment code isn't there.
once I add in the attachment code. the email won't sent.

I even tried to alert the doc after. but nothing show up.



SalmanSalman
Hi afindie ,

Can you please check this application for Email Attachment,

MassMailer DOCS let’s you easily mass email email attachments to your leads or contacts while securely storing your files with Rackspace Cloud Files.with  MassMailer Docs you can store any size file - 100GB, 200GB, or more? 


You can try this app by installing from appexchange  -Massmailer Docs

You can learn more details about the product on this website - Link