Skip to contents

Sends an email with the Artalytics whitepaper to interested users. Personalizes content based on user type (artist, investor, other).

Usage

send_wp_email(to, usr_type = "other", wp_url = NULL, from = NULL)

Arguments

to

Email address of the recipient

usr_type

Type of user: "artist", "investor", or "other"

wp_url

Optional. URL to the whitepaper PDF

from

Optional. Sender email address (defaults to configured sender)

Value

List with success status and details:

success

Logical indicating if email was sent

message_id

ID of sent email (if successful)

error

Error message (if failed)

Examples

if (FALSE) { # \dontrun{
# Send whitepaper to an investor
result <- send_wp_email(
  to = "investor@vc.com",
  usr_type = "investor"
)

if (result$success) {
  message("Whitepaper sent successfully!")
}

# Send with custom whitepaper URL
result <- send_wp_email(
  to = "user@example.com",
  usr_type = "other",
  wp_url = "https://cdn.artalytics.app/docs/whitepaper-v2.pdf"
)
} # }