in dusty/reporters/email/reporter.py [0:0]
def fill_config(data_obj):
""" Make sample config """
data_obj.insert(len(data_obj), "server", "smtp.office365.com", comment="SMTP server host")
data_obj.insert(len(data_obj), "port", "587", comment="(optional) SMTP server port")
data_obj.insert(
len(data_obj), "login", "some_username@example.com", comment="SMTP server login"
)
data_obj.insert(
len(data_obj), "password", "SomeSecurePassword", comment="SMTP server password"
)
data_obj.insert(
len(data_obj),
"mail_to", "me@example.com, not_me@example.com", comment="List of email addresses"
)
data_obj.insert(
len(data_obj),
"mail_cc", "me@example.com, not_me@example.com", comment="List of CC email addresses"
)
data_obj.insert(
len(data_obj),
"subject", "My awesome project staging DAST zap scanning #1 results",
comment="(optional) Custom email subject"
)
data_obj.insert(
len(data_obj),
"body", "The following application was scanned: My awesome project (staging)",
comment="(optional) Custom email body first line"
)
data_obj.insert(
len(data_obj),
"additional_text", "",
comment="(optional) Custom email body additional text"
)
data_obj.insert(
len(data_obj),
"attachments", "/path/to/file.1, /path/to/file.2",
comment="(optional) Additional custom attachments. Also supports YAML list syntax"
)
data_obj.insert(
len(data_obj),
"text_only", False,
comment="(optional) Text-only emai (do not include information about results/errors)"
)