SaveAsDraft Method


Save email as draft in Office 365, it only supports Graph API protocol,

[Syntax]
Visual C++: HRESULT SaveAsDraft(long* pVal)
Visual Basic: SaveAsDraft() As Long

Return Value

In synchronous mode, if this method succeeds, the return value is zero; otherwise the return value is non-zero. You can obtain the last error information via GetLastError/GetLastErrDescription method.
In asynchronous mode, this method return to application immediately no matter all emails are sent or not. If OnError event isn't fired while sending email, OnClosed event will indicate the task is finished successfully.
To learn more programming skills in asynchronous mode, please refers to Programming with Asynchronous Mode.

Remarks

This method only supports Graph API + Office 365.

See Also

Programming with Asynchronous Mode
Work with EASendMail Service(Mail Queuing)
SendMailToQueue Method
SendMailToQueueEx Method
EASendMail Samples

Online Tutorials

Send Email in VB 6.0 - Tutorial
Send Email in C# - Tutorial
Send Email in VB.NET - Tutorial
Send Email in Visual C++ - Tutorial
Send Email in Managed C++/CLI - Tutorial
Send Email in Delphi - Tutorial
Send Email in MS SQL stored procedure - Tutorial