Skip to content

NotificationEmail

QuantConnect.Notifications.NotificationEmail

NotificationEmail(
    address: str,
    subject: str = ...,
    message: str = ...,
    data: str = ...,
    headers: Dictionary[str, str] = None,
)

Bases: Notification

Email notification data.

Default constructor for sending an email notification

Parameters:

Name Type Description Default
address str

Address to send to, if null will default to users email. Will throw ArgumentException if invalid Validate.EmailAddress

required
subject str

Subject of the email. Will set to string.Empty if null

...
message str

Message body of the email. Will set to string.Empty if null

...
data str

Data to attach to the email. Will set to string.Empty if null

...
headers Dictionary[str, str]

Optional email headers to use

None

headers

headers: Dictionary[str, str]

Optional email headers

address

address: str

Send to address:

subject

subject: str

Email subject

message

message: str

Message to send.

data

data: str

Email Data

can_send

can_send() -> bool

Check if the notification can be sent (implements the Notification.send method)

Returns:

Type Description
bool

Whether the notification can be sent.

send

send() -> None

Method for sending implementations of notification object types.