Changes between Version 22 and Version 23 of Docs/825gen2/Dev/Networking/SendEmail


Ignore:
Timestamp:
02/29/24 15:27:39 (2 months ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/825gen2/Dev/Networking/SendEmail

    v22 v23  
    235235                // Convert second pass image into base64
    236236                char tmp[128];
    237                 sprintf_s(tmp, "base64 /usr/share/apache2/default-site/htdocs/images/v%06d_1.jpg > /tmp/attachment", tran.tktNum);
    238                 if(system(tmp) != 0) {
     237                sprintf_s(tmp, "/usr/share/apache2/default-site/htdocs/images/v%06d_1.jpg", tran.tktNum);
     238                if(base64_file_encode(tmp, "/tmp/attachment") <= 0) {
    239239                        DEBUG_MSG("Error encoding jpg into base64 [%s]\n", tmp);
    240240                } else {