Jump to content

erva

Members
  • Content Count

    48
  • Joined

  • Last visited

Everything posted by erva

  1. erva

    Attachments in Base64

    Hi, Added these properties to TIdmessage: mailMessage.ContentType := 'text/plain'; mailMessage.CharSet := 'UTF-8'; After that mail attachments shows in receivers mail as Base64 format in mail, no attached file is in mail like this: "This is a multi-part message in MIME format --sgPuwCmxSaiDhkWsCT2JPGRD=_YJcryGeg Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline T=C3=A4ss=C3=A4 on =C3=A4=C3=A4kk=C3=B6si=C3=A4 ja liite --sgPuwCmxSaiDhkWsCT2JPGRD=_YJcryGeg Content-Type: application/pdf; name="1.pdf" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="1.pdf" JVBERi0xLjcNCiXi48/TDQoyIDAgb2JqDQo8PC9MZW5ndGggMjcxMi9GaWx0ZXIvRmxhdGVEZWNv ZGU+Pg0Kc3RyZWFtDQp4Aa2aS4/sOhWF5yXVf8gvMH7mISGke+6D8YEjMUDMLiAhQDp3wt/nWzt2 utLd5Up3apB2ynHSy2uvvb39+H69fL1evre/OWSXyjJMi3dTHIeQJ5d9pHRhSsNvf79e/nK9/Pd6 +fLtevndL35Y3DKW4ds/rpe//m3ww6/Xi6fww2//vF7yPLsy8q3sljx849nvvU/F+zJzRe/zl7Us gXvVUfpEm5HfmWee8sc/DN/+db38zD/8eoN0vU8TcIdp8m6e8xDC4nwpn0ObZjcXPlVc8A1sAGwA kJW6B1AAWEg9UGEpbpzTkCExljyUxZU4fw5VjMkFfSq7PG2w4Cf8CBZBowzwGPIhSDCVQ3gKpCm7 MW6QMJ+YkfkE7TGkajo4ktDikt3s0z2SArZ1S5nvKK3abkmYvyGK2EliS4v3EZISghO6CNKE0HSp TfyZ51x6bm31HFvrd/yJZ/pNe72r7+lbutKEULlGvqv3kv4HV6TO/gdGUpsxvmOYvbP86Y+4jZvK........." If mail is not including attachment, it shows as it should in receivers email app. I need to chance some other properties also from TIdSMTP and/or TIdMessage but i don't have any idea what to change.
  2. erva

    Attachments in Base64

    Also these properties are in TIdmessage: object mailMessage: TIdMessage AttachmentEncoding = 'UUE' Encoding = meDefault
  3. I can't install macOS 64-bit at SDK Manager. When try to install, it doesn't get saved to to "SDK versions" lists. macOS 32-bit i can uninstall and reinstall with no problems, problems are only with 64-bit.
  4. erva

    Can't install macOS 64-bit

    Using now 10.4 Sydney without problems. Probably problem solved when have done clean install again.
  5. I guess it's possible to make apps for Samsung galaxy Watch with Delphi. But how they are installed to watch? It's only bluetooth, no USB cable connection. And is it possible to get user heart rate readings from watch?
  6. erva

    Making apps for Samsung Galaxy Watch

    Ok, thanks. Good link. Any idea where to get info how to get heart rate readings from watch? GPS is maybe working with TLocation as usual.
  7. Trying to set Android app so that it doesn't go to sleep mode. Added to uses Android.JNI.PowerManager but compiler doesn't find it. Does in Tools/Options/Language/Library paths need to add path to some folder where Android.JNI.PowerManager exists or what do i need to do?
  8. erva

    TStringGrid Sorting

    Simple question: How to sort values in TStringGrid based on one columns values? Searched with google and find only articles that are 6-8 years old. Is TStringGrid evolved from those days or are info in these still relevant? I mean is there any easier solution for sorting than these old articles?
  9. erva

    Can't install macOS 64-bit

    Reinstalled Delphi, but problem still exist. Managed to install iOS SDK without problems to free install.
  10. I was able to compile to macOS fine, but after installing TMS Software components i get this error, any idea what to do? [dccosx64 Error] E2597 ld: file not found: librtlhelper.a
  11. Noticed that in Platform Properties SDK was empty. When try to add new SDK, "Add a New SDK" settings are just like in previous post, it doesn't get saved. SDK stays empty.
  12. Thanks for help again, they were messed. I think it has something to do with that i installed one 3rd party component demo and from demo was support for macOS eluded. I didn't now it first and tested manually add library paths to components. Now i have added all missing items but when compiling error rises without any explation: And during compilation this windows appears:
  13. erva

    TStringGrig formatting date

    Trying to format date to show dd.mm.yyyy but don't get how it's complished. Have tried it with columns "customFormat" property but with no success.
  14. erva

    TStringGrig formatting date

    Mysterious things happening.... I got date formatting working ok. But then made changes to DB structure and after that grids first and last dates show like they should, others not
  15. erva

    TStringGrig formatting date

    That 'displaytext' property i was missing from grid side, thanks a lot:)
  16. erva

    TStringGrig formatting date

    Tried FormatDateTime('dd.mm.yyyy', Now); but get this exception:
  17. erva

    TStringGrig formatting date

    I'am using FormatDateTime('dd.mm.yyyy', %s) and get error "Invalid class typecast".
  18. erva

    TStringGrid Sorting

    Haven't used Delphi for a while, 15 years, and have managed to forget things little. But just remember based on @Attila Kovacsanwer that IndexDefFields is answer. Already managed to sort records ascending order, now have to still find out how to get them descending order. Using RemObjects Data Abstract. Adding to IndexDefField "Column1:D" didn't work.
  19. Is it possible to delete calls with code from Android call log. In permission is option to allow writing to call log, so probably it's possible to delete calls also? I manage to read calls from log and append them to DB. But user have to manually delete calls from phone so they don't get processed second time. Noticed also that if in log is more than 30 calls, my app crashes when reading calls.
  20. erva

    Receiving incoming calls

    Thinking if can't get number in Android 10 and beyond that, solution might be adding in DB with client record same name what's in phones address book. We need to track existing clients calls and how long they take, one person takes care about 50 clients so that might be working solution.
  21. erva

    Receiving incoming calls

    Can you get caller name from log? I have Android 9 and some day we have to move to Android 10. If phone number is not showing anymore, must think other solutions to link call to your customers in CRM.
  22. erva

    Receiving incoming calls

    Found this discussion, might be that in Android 10 getting call number is not possible anymore for security reasons? https://support.google.com/android/thread/38640488?hl=en
  23. erva

    Receiving incoming calls

    I have just a "demo" app what reads call log when started. Been thinking solutions when to transfer calls to database. Maybe this kind of solution to append to DB only new calls: 1. Read call from log 2. Search from DB if call with same unix time exists in DB. 3. If not found, append call to db Been thinking if it's possible remove calls from log with code?
  24. erva

    Receiving incoming calls

  25. erva

    Receiving incoming calls

    I abandod catching calls immediately when phone rings. Get calls info from call log, number and seconds what call last and move them database. Reading Android call logs seems to working flawless.
×