Comments (3)
Attachments are not available yet.
I can spend some time in next few days to add Attachment features, stay tuned.
from ews-javascript-api.
getting there, able to create Attachment and send it, loading items with InternetHeaders are an issue. next checkin should have GetAttachment and InternetHeaders reading fixed.
from ews-javascript-api.
you should now be able to send attachment. fetch 0.2.0 version from npm.
#13 contains attachment updates.
completed:
send attachment with EmailMessage
ExchangeService.GetAttachments to load attachment from server.
pending:
CreateAttachment (explicit request) - EmailMessage can be sent with attachment.
DeleteAttachment - delete attachment on server.
example send message with attachment. (File attachment is added as base64 content rather than file name or stream/buffer)
var exch = new ExchangeService(ExchangeVersion.Exchange2013);
exch.Credentials = new ExchangeCredentials(credentials.userName, credentials.password);
exch.Url = new Uri("https://outlook.office365.com/Ews/Exchange.asmx");
EwsLogging.DebugLogEnabled = true; // false to turnoff debugging.
var msgattach = new EmailMessage(exch);
msgattach.Subject = "Dentist Appointment";
msgattach.Body = new MessageBody("The appointment is with Dr. Smith.");
msgattach.ToRecipients.Add("[email protected]")
var file = msgattach.Attachments.AddFileAttachment("filename to attach.txt", "c29tZSB0ZXh0");
/** AddFileAttachment parameters -
* filename (name of attachment as shown in outlook/owa not actual file from disk),
* base64 content of file (read file from disk and convert to base64 yourself)
*/
msgattach.Send().then(() => {
console.log("------------");
}, (ei) => {
console.log(ei.stack, ei.stack.split("\n"));
console.log("------------");
});
from ews-javascript-api.
Related Issues (20)
- Error SoapFaultDetails message: '401 Unauthorized', HOT 8
- TypeScript errors when compiling (cannot find name PrivilegedUserId and more) HOT 4
- Usage React Native
- Failing to fetch .msg file attachment from ews exchange server ews-javascript-api HOT 4
- C# code works, but not its Node equivalent: 401 Unauthorized HOT 16
- Booking type causes sync to fail
- Specify certificate authority while sending request HOT 2
- nodejs 18: digital envelope routines::unsupported HOT 5
- Appointment.Bind sometimes return null Organizer HOT 2
- Possibility to set User-Agent HOT 4
- when creating an event in the calendar, the body is not added HOT 1
- UNABLE_TO_VERIFY_LEAF_SIGNATURE HOT 1
- Missing typescript declaration for CreateItem HOT 2
- how to retrieve strings from Extended Properties with more than 255 characters HOT 1
- Missing finally in promise declaration
- AWS WorkMail: 500 Error HOT 1
- Question: Can we create a new mailbox for an existing AD user using this library? HOT 3
- Cannot get attachment of .EML type HOT 1
- Appointment created by ews-javascript-api are shown in Monrovia timezone HOT 3
- Issue with @ewsjs/xhr and ews-javascript-api cann't read property of undefined HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ews-javascript-api.