Sending multiple pdfs by-email

poppinspoppins Member Posts: 647
Hi everyone,

I want to be able to send many pdf invoices by e-mail in the same time (each invoice is related to a different customer).
I know how to do that for a single invoice(generate pdf and then send it by e-mail), but what shall I do if I want to send 3 or 4 at the same time?

Thanks in advance :)

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    If you know how to do it for one invoice, you can also do it for multiple invoices. Just create a loop that reads the applicable invoices and then call your routine to send the mail:
    IF recSalesInvHdr.FIND('-') THEN
      REPEAT
        GeneratePdfAndSendMail(recSalesInvHdr);
      UNTIL recSalesInvHdr.NEXT = 0;
    
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.