- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function smtp_message(const ffrom, fto, fsubject, message: string): SMTPMessage;
Arguments:
-
ffrom |
From field value, e.g. 'john@doe.com' or 'John Doe <john@doe.com>' |
fto |
To field value, e.g. 'john@doe.com' or 'John Doe <john@doe.com>' |
fsubject |
Message subject |
message |
Message text |
Description:
-
This function constructs SMTP message from minimal set of parameters.
Returns:
-
Valid SMTP message handle on success, NIL (NULL) pointer on error.
Usage:
-
s := 'Hello,' +#13+#10+ 'Thanks for reading this message!' +#13+#10+ 'Bye.';
mp := smtp_message('author@domain.com', 'subscriber@domain.com', 'Test message', s);
See also:
-
smtp_attach, smtp_free, smtp_get_header, smtp_put_header, smtp_send, smtp_set_header, smtp_set_text_type.
|