what is the function of SMTP?
The elaboration form of SMTP is Simple Mail Transfer Protocol. SMTP is an Internet standard for electronic mail (email) transmission. First defined by RFC 821 in 1982, it was updated in 2008 with Extended SMTP additions by RFC 5321, which is the protocol in widespread use today.
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.
smtp Send, 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.
smtp SendX, 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.