The following C# source code shows how to send an email from a Gmail address using SMTP server. The default port using SMTP is 25, but it may vary different Mail Servers. We can instantiate SmtpClient class and assign the Host and Port. SMTP stands for Simple Mail Transfer Protocol. SMTP protocol is using for sending email from C#. NET framework provides two namespaces, System.Net and for managed implementation of Internet protocols that applications can use to send or receive data over the Internet. SmtpClient SmtpServer = new SmtpClient("") SMTP Authentication, often abbreviated SMTP AUTH, is an extension of the SMTP (Simple Mail Transfer Protocol) whereby an SMTP client may log in using an authentication mechanism chosen among those supported by the SMTP servers. It is usually used with one of two other protocols, POP3 or IMAP, that let the user save messages in a server mailbox and download them periodically from the server. Most SMTP server names are written in the form "" or "": for example, a Gmail account will refer to. SMTP provides a set of protocol that simplify the communication of email messages between email servers. The default TCP port used by SMTP is 25 and the SMTP connections secured by SSL, known as SMTPS, uses the default to port 465. It is an Internet standard for electronic mail (email) transmission. SMTP (Simple Mail Transfer Protocol) is a part of the application layer of the TCP/IP protocol.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |