HTML: insert line-break in email subject like is a space?

后端 未结 2 1474
野的像风
野的像风 2020-12-10 10:21

BreakHere…

I wonder if it is possible to write something like %20 (which stands for a space) for a line-break as well. So I want to have seperate lines

2条回答
  •  天涯浪人
    2020-12-10 11:16

    Replace \n (and \r\n) by %0D%0A as specified by RFC6068 (in section 5) updating the mailto URI Scheme as of October 2010 (replacing RFC2368).

    [...] line breaks in the body of a message MUST be encoded with "%0D%0A".
    Implementations MAY add a final line break to the body of a message even if there is no trailing "%0D%0A" in the body [...]

    This is the example from the RFC (in section 6)

    
    

    The above mail body corresponds to:

    send current-issue
    send index
    

提交回复
热议问题