Implem / Implem.Pleasanter

Pleasanter is a no-code/low-code development platform that runs on .NET. You can quickly create business applications with simple operations.
https://pleasanter.org
GNU Affero General Public License v3.0
511 stars 81 forks source link

FAQ:メール送信APIを使用して添付ファイル付きのメールを送信したい について #494

Closed ebessan closed 6 months ago

ebessan commented 9 months ago

いつも利用させていただいてありがとうございます。 「FAQ:メール送信APIを使用して添付ファイル付きのメールを送信したい」 について、

JSON.stringfyで複数の添付ファイルの場合にundefinedで削除されたので、サンプルコードの116~124行目を

$.ajax({ url: apiSendMailUrl, type: 'post', async: false, cache: false, data: JSON.stringify(postData), contentType: 'application/json', dataType: 'json' })

postData =JSON.stringify(postData,(k,v) => v === undefined ? 'undefined' : v ); $.ajax({ url: apiSendMailUrl, type: 'post', async: false, cache: false, data: postData, contentType: 'application/json', dataType: 'json' })

にしたら送れるようになりました。

nagamune-implem commented 9 months ago

Issueありがとうございます。またTipsの共有ありがとうございます。

ただ私の方で試したのですが再現できませんでした、 お手数をおかけして申し訳ございませんが、下記の情報を頂けますと調査を進められると思います。 とは言え、問題が解消されているとの事ですので、ご都合がつきましたらで結構です。

こちらで試した結果を添付いたします。

github-actions[bot] commented 7 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 6 months ago

This issue was closed because it has been stalled for 7 days with no activity.