SmtpClient.SaveAsDraft Method


Save email to Office 365 as draft, only Graph API protocol supports this method.

[Visual Basic]
Public Sub SaveAsDraft( _
    server As SmtpServer, _
    mail As SmtpMail _
)

Public Sub SaveAsDraft( _
    mail As SmtpMail _
)
[C#]
public void SaveAsDraft(
    SmtpServer server,
    SmtpMail mail
);

public void SaveAsDraft(
    SmtpMail mail
);
[C++]
public: void SaveAsDraft(
    SmtpServer^ server,
    SmtpMail^ mail
);

public: void SaveAsDraft(
    SmtpMail^ mail
);
[JScript]
public function SaveAsDraft( 
    server : SmtpServer, 
    mail : SmtpMail
);

public function SaveAsDraft( 
    mail : SmtpMail
);

Parameters

server
A SmtpServer instances used to send email.
mail
A SmtpMail instance to send.

Remarks

This method only supports Graph API + Office 365.

See Also

SmtpClient.BeginSendMail Method
Work with EASendMail Service (Email Queuing)
SmtpClient.SendMailToQueue Method
SmtpClient.SendMailToQueueEx Method

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