Hello,
I need to have everyone see each others emails using Mandrill like a CC. From reading the realize notes it's not able to do that in less you put all the emails in the To: option. But it's still not work. In my settings on the Mandrill website in the settings options I have "Expose the list of recipients when sending to multiple addresses " checked. Still no luck.
Does this work for anyone? Any suggestions?
***"If you provided a list of names in the TO list, and no names in the CC list, the recipients of the email would all be able to see the names of the other recipients."***
**************************
function MandrillRpr as c (e as p)
'debug(1)
dim key as c
key = e.fileSessionKey
dim b as b
session.GetDataFromFile(b,key)
dim size as n
size = b.size()
if size = 0 then
MandrillRpr = "alert('Report was not compiled.');"
exit function
end if
dim mysecretkey as c = ""
dim ms as p
ms.send_to = e.dataSubmitted.CustomerEmail +","+ e.dataSubmitted.ccEmail
ms.from_email = e.dataSubmitted.ReotempEmail
ms.subject = "Reotemp Quote #" + e.dataSubmitted.QuoteNo
ms.message_html = e.dataSubmitted.EmailNotes
dim ms.attachmentsArray[1] as p
ms.attachmentsArray[1].name = e.dataSubmitted.QuoteNo+".pdf"
ms.attachmentsArray[1].type = resolve_mime_type("pdf")
ms.attachmentsArray[1].content = base64encode(b)
dim pResult as p
pResult = email_send_mandrill(mysecretkey,ms)
if pResult.error = .f. then
MandrillRpr = "alert('Report sent.');"
else
MandrillRpr = "alert('Report was not sent.');"
end if
end function
I need to have everyone see each others emails using Mandrill like a CC. From reading the realize notes it's not able to do that in less you put all the emails in the To: option. But it's still not work. In my settings on the Mandrill website in the settings options I have "Expose the list of recipients when sending to multiple addresses " checked. Still no luck.
Does this work for anyone? Any suggestions?
***"If you provided a list of names in the TO list, and no names in the CC list, the recipients of the email would all be able to see the names of the other recipients."***
**************************
function MandrillRpr as c (e as p)
'debug(1)
dim key as c
key = e.fileSessionKey
dim b as b
session.GetDataFromFile(b,key)
dim size as n
size = b.size()
if size = 0 then
MandrillRpr = "alert('Report was not compiled.');"
exit function
end if
dim mysecretkey as c = ""
dim ms as p
ms.send_to = e.dataSubmitted.CustomerEmail +","+ e.dataSubmitted.ccEmail
ms.from_email = e.dataSubmitted.ReotempEmail
ms.subject = "Reotemp Quote #" + e.dataSubmitted.QuoteNo
ms.message_html = e.dataSubmitted.EmailNotes
dim ms.attachmentsArray[1] as p
ms.attachmentsArray[1].name = e.dataSubmitted.QuoteNo+".pdf"
ms.attachmentsArray[1].type = resolve_mime_type("pdf")
ms.attachmentsArray[1].content = base64encode(b)
dim pResult as p
pResult = email_send_mandrill(mysecretkey,ms)
if pResult.error = .f. then
MandrillRpr = "alert('Report sent.');"
else
MandrillRpr = "alert('Report was not sent.');"
end if
end function