zoukankan      html  css  js  c++  java
  • Simple Mail Transfer Protocol

    https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol

    https://zh.wikipedia.org/wiki/简单邮件传输协议

     1 <?php
     2 echo 'wxmail';
     3 
     4 // The message
     5 $message = "Line 1\nLine 2\nLine 3";
     6 
     7 // In case any of our lines are larger than 70 characters, we should use wordwrap()
     8 $message = wordwrap($message, 70);
     9 
    10 // Send
    11 mail('ww@ww.com', 'My Subject', $message);

    Simple Mail Transfer Protocol (SMTP) is an Internet standard for electronic mail (email) transmission. First defined by RFC 821 in 1982, it was last updated in 2008 with the Extended SMTP additions by RFC 5321—which is the protocol in widespread use today.

    SMTP by default uses TCP port 25. The protocol for mail submission is the same, but uses port 587. SMTP connections secured by SSL, known as SMTPS, default to port 465 (nonstandard, but sometimes used for legacy reasons).

    SMTP是一个“推”的协议,它不允许根据需要从远程服务器上“拉”来消息。要做到这点,邮件客户端必须使用POP3IMAP。另一个SMTP服务器可以使用ETRN在SMTP上触发一个发送。

  • 相关阅读:
    ubuntu18安装net-snmp
    virtual box安装ubuntu系统 ping通 && xshell可以连接
    高中操场所见所思
    如何写好研究生开题报告
    在加州考驾照
    一个软件工程项目竞赛网站
    结对项目总结
    喜马拉雅随车听开通啦
    裘老师赠书
    推荐博客链接
  • 原文地址:https://www.cnblogs.com/rsapaper/p/5883229.html
Copyright © 2011-2022 走看看