Office 365 json api |发送带有内嵌附件的电子邮件 [英] Office 365 json api | send emails with inline attachments

查看:91
本文介绍了Office 365 json api |发送带有内嵌附件的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我发送说明我的团队正在使用json与Office API 365集成。



我们想通过JSON API发送带有内联附件的电子邮件。



有了这个目标,我们正在做什么:


< p style ="color:#43515b; font-size:13px; font-family:SegoeUI-Regular-final; letter-spacing:0.03em; line-height:normal">
1.创建一个空草稿消息;

2.发送多个内联附件;

3.更新邮件正文(带有cid图像内联);

4发送消息;



API的问题是什么?



当我们将附件提交到Office API 365时,我们无法设置"ContentType"属性。

尽管我们发送了"ContentType",它始终为空。



我们使用以下API:POST https://outlook.office365.com/api/v1.0/me/messages/ {message_id} / attachments



这就是为什么我们认为尽管内联图像然后在体内找到它,但它无法显示,因为它没有正确设置内容类型。



请给我们指点。



最好的问候,



Paulo

解决方案

这里回答:


http://stackoverflow.com/questions/27377376/how-do- I-发送的电子邮件与 - 直列附件


I send the description my team is having with the json integration with Office API 365.

We want to send an email with inline attachments through the JSON API.

With that objective, what we are doing:

1. Create an empty draft message;
2. Send the several inline attachments;
3. Update the body of the draft message (with cid images inline);
4. Send the message;

What is are our issue with the API?

We are unable to set the "ContentType" properties when we submit the attachments to the Office API 365.
Despite the "ContentType" we send, it is always null.

We are using the following API: POST https://outlook.office365.com/api/v1.0/me/messages/{message_id}/attachments

That's the reason we think that despite the inline image then it is found in the body, it cannot be displayed because the contenttype it is not set correctly.

Please give us some direction.

Best Regards,

Paulo

解决方案

Answered here:

http://stackoverflow.com/questions/27377376/how-do-i-send-email-with-inline-attachments


这篇关于Office 365 json api |发送带有内嵌附件的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆