File: send.py

package info (click to toggle)
kopanocore 8.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 15,400 kB
  • sloc: cpp: 175,422; python: 24,623; perl: 7,319; php: 6,056; sh: 2,172; makefile: 1,294; xml: 45; ansic: 1
file content (10 lines) | stat: -rwxr-xr-x 273 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/python3
# SPDX-License-Identifier: AGPL-3.0-only

# sending a basic mail

# usage: change hard-coded stuff and run

import kopano
 
kopano.User('user1').outbox.create_item(subject='subject', to='user1@domain.com; user2@domain.com', body='this is a body').send()