PLSQL發郵件Outlook接收換行問題

2021-06-07 23:49:54 字數 1620 閱讀 7144

開發專案過程中,有用到plsql發郵件功能,郵件內容是乙個字串,包含換行符chr(10) ,比如 'abc' || chr(10) || 'xyz'  用outlook接收郵件的時候,應該顯示換行,但卻沒換行,而且提示 "extra line breaks in this message were removed"

一. 修改**:則可在字串拼接的時候,在chr(10)之前加乙個點"." ,這樣換行也可以起作用, 例如:'abc' || '.' ||  chr(10) || 'xyz' 

二. 可通過更改設定使其換行:

cause: 

by default, theauto remove line breaksfeature in outlook is enabled. this causes the line breaks to be removed. any two or more successive line breaks are not removed.

method 1. disable the feature that removes extra line breaks

this method disables the feature for all plain text items. to do this, follow these steps:

for outlook 2010:

1.      

open outlook.

2.      

on thefiletab, clickoptions.

3.      

in theoptionsdialog, clickmail.

4.      

in themessage formatsection, clear theremove extra line breaks in plain text messagescheck box.

5.      

clickok.

for outlook 2007 or earlier versions:

1.      

open outlook.

2.      

on thetoolsmenu, clickoptions.

3.      

on thepreferencestab, click thee-mail optionsbutton.

4.      

click to clear theremove extra line breaks in plain text messagescheck box.

5.      

clickoktwo times

可參考 或者/zh-cn

使用Python呼叫OUTLOOK發郵件(帶附件)

前置條件 本地安裝了python,匯入了win32com pythoncom等模組。import win32com.client as win32 import warnings import sys import pythoncom reload sys sys.setdefaultencodin...

python 發郵件 python發郵件

python提供smtplib模組,該模組定義了乙個smtp客戶端會話物件,可用於使用smtp或esmtp偵聽器守護程式向任何網際網路機器傳送郵件。這是乙個簡單的語法,用來建立乙個smtp物件,稍後將演示如何用它來傳送電子郵件 import smtplib smtpobj smtplib.smtp ...

Outlook發郵件時忘記寫主題的解決方法

用慣了foxmail新增主題提示,在outlook下兩次發郵件忘記寫主題了,實在不應該!分享乙個解決方案。outlook發郵件時忘記寫主題的解決方法 按alt f11進入vba整合開發環境,在左上角的工程資源管理器中依次展開project1 microsoft office outlook 物件 t...