Hi 4D experts
The following code has been working really well, much faster than the old IC
methods, but from today the PDFs are arriving corrupted if sent from a MAC
client, but not from a PC client. We have not used PC clients before, but
because of bandwidth issues I have just set one up as a RDC client for one
worker stuck at the end of a very long telephone line in the hills. Has using
these commands on the PC inadvertently changed a default on the MAC. We use a
MAC server and I am feeling bamboozled. The code is pretty vanilla from the
reference. We use default encoding.
Any suggestions most welcome
Thanks and hope you and yours are staying safe
Steve
UK Vet Derm Ltd
$transporter:=SMTP New transporter($server)
C_COLLECTION($headers) //add user-defined headers
$headers:=New collection
$headers.push(New object("name";"X-MAILER";"value";"UK
Vet Derm Ltd"))
$headers.push(New
object("name";"X-4D-VERSION";"value";"17R6"))
C_OBJECT($email)
$email:=New object
$email.subject:=$Subject
$email.to:=vToAddresses
$email.cc:=vCCAddresses
$email.bcc:=vBCCAddresses
$email.from:="email>"
$email.textBody:=$text
$email.attachments:=MAIL New
attachment($Fullpath;$Name;"";"application/pdf";"attachment")
$email.headers:=$headers
$email.keywords:=New object("Veterinary
report";True;"Urgent";True)
$status:=$transporter.send($email)
If (Not($status.success))
ALERT("An error occurred sending the mail:
"+$status.statusText)
End if
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************