Skip to content

silgy_email

Jurek Muszyński edited this page Jul 29, 2019 · 2 revisions

bool silgy_email(const char *to, const char *subject, const char *message)

Description

Sends an email using sendmail via pipe.

Sender is composed in the following way:

sprintf(sender, "%s <%s@%s>", APP_WEBSITE, EMAIL_FROM_USER, APP_DOMAIN);

Default EMAIL_FROM_USER is noreply and can be redefined by APP_EMAIL_FROM_USER.

Returns

TRUE on success, otherwise FALSE.

Example

silgy_email("john@example.com", "Test message", "This is a test message.");
Clone this wiki locally