dragotin / kraft

Kraft helps to handle your daily quotes and invoices in your small business.
http://volle-kraft-voraus.de
GNU General Public License v2.0
56 stars 18 forks source link

Email? #130

Closed coffseducation closed 2 years ago

coffseducation commented 2 years ago

Hello! Awesome software!

Issue: When I right click an invoice to 'Mail document' or use the arrow 'Mail document' nothing happens.

Expected behaviour: Right click an invoice to 'Mail document' takes the email address from KAddressbook and sends the email to client from Kmail.

Kraft Version: 0.97 Codename: Gunny Country Setting: Australia (13) Language Setting: Australian English (31) Database Information Kraft database name: /home/anarcho/.local/share/kraft/kraft.db Database schema version: 22 Qt database driver: QSQLITE Database connection: established Addressbook Backend Backend type: Akonadi (running)

Operating System: Kubuntu 21.10 KDE Plasma Version: 5.24.3 KDE Frameworks Version: 5.91.0 Qt Version: 5.15.2 Kernel Version: 5.13.0-30-generic (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Core™ i7-7820HQ CPU @ 2.90GHz Memory: 31.2 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 630

dragotin commented 2 years ago

Kraft defaults to use Thunderbird directly to send email.

What you need to do to enable your system defined mail client: In the Kraft settings file (that is usually ~/.config/kraftrc) find the [system] segment (or create one by adding [system] to a new line). Add the following entry to the system section:

[system]
mailUA=xdg

That uses the utility xdg-email of your linux desktop to open the configured email client. You can test that on the command line. That should make Kraft invoke kmail.

coffseducation commented 2 years ago

Hello! Thanks for the reply!

I added [system] - not present and mailUA=xdg to the ~/.config/kraftrc

Unfortunately it is still not working.

I tested the command xdg-email in Konsole and it does open up a new Kmail send window. (working)

I tested mailUA=xdg-email and mailUA=xdg-open to no avail. I did a search for the command mailUA but could not find anything. What else could I try? Thanks!

coffseducation commented 2 years ago

I found this in .xsession.errors

Starting mailer: "/usr/bin/xdg-email" ("--utf8", "--attach", "", "Cathy Wong cathywong.xv3u6@simplelogin.co") xdg-email: file argument missing for --attach option Try 'xdg-email --help' for more information.

dragotin commented 2 years ago

Indeed this is a bug which I fixed with the commit above. It will be in the next release.

coffseducation commented 2 years ago

Ok, great! Thanks for you help and great software!