Search documentation of phoenix_kit

# mix phoenix_kit.email.send_test (phoenix_kit v1.6.19)

View Source

Mix task to send a test email to verify email system functionality.

This task sends a test email to a specific address without requiring email system system configuration. Useful for basic email delivery testing.

## Usage

    # Send to specific email address
    mix phoenix_kit.email.send_test --to admin@example.com

    # Send to multiple addresses
    mix phoenix_kit.email.send_test --to admin@example.com,user@example.com

    # Send with custom subject
    mix phoenix_kit.email.send_test --to admin@example.com --subject "Custom Test Subject"

    # Include system (requires configured repo)
    mix phoenix_kit.email.send_test --to admin@example.com --track

## Options

    --to EMAIL           Email address to send to (required)
    --subject SUBJECT    Custom email subject (optional)
    --track              Enable email system (requires repo configuration)
    --from EMAIL         From email address (optional)

## Examples

    # Basic test email
    mix phoenix_kit.email.send_test --to admin@example.com

    # Multiple recipients with custom subject
    mix phoenix_kit.email.send_test --to "admin@example.com,user@example.com" --subject "PhoenixKit Test Email"

    # Test with system enabled
    mix phoenix_kit.email.send_test --to test@example.com --track