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上触发一个发送。

  • 相关阅读:
    配置gem5-gpu模拟环境
    如何避免并发情况下的重复提交
    避免重复执行
    java线程池
    java动态代理
    Java 静态代理
    Java 静态代理和动态代理
    Spring的事务传播性
    mybatis配置(Configuration.xml)详解
    mybati之parameterType传递多个参数
  • 原文地址:https://www.cnblogs.com/rsapaper/p/5883229.html
Copyright © 2011-2022 走看看