smtp: SMTP functions |
Top Previous Next |
SMTP functions for sending emails (electronic mail) by using SMTP (Simple Mail Transfer Protocol). SMTP is an internet standard for email transmission across IP networks that are typically only used for sending messages to a mail server for relaying.
The SMTP functions support two ways of sending emails.
smtpSend, for simple short messages: Advantages: •Only the smtpSend function is needed. •The function waits for the mail transfer to complete.
Disadvantages: •The function waits for the mail transfer to complete. •Only a short text message. •No attachments.
smtpSendX, for advanced messages: Advantages: •Large text messages. •Message text can be built over time. •File attachments. •Asynchronous mail transfer (depending on the situation, this can also be a disadvantage). •Mail transfer progress can be monitored.
Disadvantages: •Several functions are required to build and send an email.
The following sequence is required to make and send the email:
The following functions are used to access the SMTP interface:
The implementation of SMTP has the following limitations: •The outbox can hold two emails simultaneously. •All email addresses are limited to 40 characters and a single address. •The message text of an advanced email is restricted to a maximum length of 4095 characters. •It is possible to attach a maximum of one file to an email. •A network interface connection must be available. |