I was looking at
using System;
using Aspose.Email.Mime;
using Aspose.Email.Clients.Smtp;
using Aspose.Email.Clients;
/*
This project uses Automatic Package Restore feature of NuGet to resolve Aspose.Email for .NET API reference
when the project is build. Please check https://Docs.nuget.org/consume/nuget-faq for more information.
If you do not wish to use NuGet, you can manually download Aspose.Email for .NET API from https://www.nuget.org/packages/Aspose.Email/,
install it and then add its reference to this project. For any issues, questions or suggestions
please feel free to contact us using https://forum.aspose.com/c/email
*/
namespace Aspose.Email.Examples.CSharp.Email.SMTP
{
class SendEmailAsynchronously
{
// ExStart:SendEmailAsynchronously
public static void Run()
{
This file has been truncated. show original
and the used BeginSend appear to have been removed and a few other methods are marked obsolete.
client.SendAsync(msg); works. Is this the preferred async method?
@mortenma ,
You are right. You should use the SendAsync
method instead of BeginSend
/EndSend
methods. Documentation and API Reference will be updated soon.