[–] 5 points 2 years ago (1 child)

Use mailx along with a .mailrc file? Once .mailrc is set up it should just need:

$ echo 'is this working?' | mailx -s Test

Not sure exactly what .mailrc needs for gmail but there are tons of guides out there.

  • source
  • [–] 8 points 3 years ago

    Nothing to really fix because thats the design. In userland you can do anything, system wide needs elevated credentials. If you don't want the password prompt, look into aliases and sudoers/pkexec

  • source