Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Vicens  
#1 Posted : Thursday, August 19, 2021 9:23:39 AM(UTC)
Vicens

Rank: Newbie

Groups: Registered
Joined: 8/19/2021(UTC)
Posts: 0
Spain
Location: Palma de Mallorca

Hi,

When I exEcute this code in Net Core 5.0, I get the next error : Error System.NullReferenceException: 'Object reference not set to an instance of an object.'

using EASendMail;
....
....
SmtpMail oMail = new("ES-XXXXXXXXXXXXXXXXXXX");
SmtpClient oSmtp = new();
SmtpServer oServer = new(configCorreo.CSmtp); //servidor de envío
oServer.AuthType = SmtpAuthType.AuthAuto;
oServer.User = configCorreo.CUserMail;
oServer.Password = configCorreo.CPass;
oServer.Port = configCorreo.NPuerto;

This error is generated at first line "SmtpMail oMail = new("ES-XXXXXXXXXXXXXXXXXXX");"

Thanks for any help.
Regards

Vicens

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.044 seconds.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.