Skip to content

Commit 967b68a

Browse files
Updated for compatibility with .NET 9
1 parent 766b8da commit 967b68a

File tree

6 files changed

+101
-101
lines changed

6 files changed

+101
-101
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 MailboxValidator.com
3+
Copyright (c) 2025 MailboxValidator.com
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

MailboxValidatorVB/MailboxValidatorVB/MailboxValidatorVB.vbproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
<PropertyGroup>
44
<RootNamespace>MailboxValidator</RootNamespace>
5-
<TargetFrameworks>netstandard2.0;net472;net48;net481;net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
5+
<TargetFrameworks>netstandard2.0;net472;net48;net481;net5.0;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
66
<AssemblyName>MailboxValidator</AssemblyName>
77
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
88
<PackageId>MailboxValidator.SingleValidation</PackageId>
9-
<Version>2.0.1</Version>
9+
<Version>2.0.2</Version>
1010
<Authors>MailboxValidator.com</Authors>
1111
<Company>MailboxValidator.com</Company>
1212
<Title>MailboxValidator</Title>
@@ -24,12 +24,12 @@ An API key is required for this library to function.
2424

2525
Go to https://www.mailboxvalidator.com/plans#api to sign up for FREE API plan and you'll be given an API key.
2626
</Description>
27-
<Copyright>Copyright 2024 MailboxValidator.com</Copyright>
27+
<Copyright>Copyright 2025 MailboxValidator.com</Copyright>
2828
<PackageProjectUrl>https://www.mailboxvalidator.com/dotnet</PackageProjectUrl>
2929
<PackageIcon>mbv-logo-square-128.png</PackageIcon>
3030
<PackageLicenseFile></PackageLicenseFile>
3131
<PackageTags>mailboxvalidator .net email-validator email-validation email-checker verify-email</PackageTags>
32-
<PackageReleaseNotes>Updated for compatibility with .NET 8</PackageReleaseNotes>
32+
<PackageReleaseNotes>Updated for compatibility with .NET 9</PackageReleaseNotes>
3333
<PackageLicenseExpression>MIT</PackageLicenseExpression>
3434
<RepositoryType>git</RepositoryType>
3535
<PackageReadmeFile>README.md</PackageReadmeFile>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ To learn more about installation, usage, and code examples, please visit the dev
1515
Copyright
1616
=========
1717

18-
Copyright (C) 2024 by MailboxValidator.com, support@mailboxvalidator.com
18+
Copyright (C) 2025 by MailboxValidator.com, support@mailboxvalidator.com
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 17
4-
VisualStudioVersion = 17.7.34031.279
5-
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "TestMailboxValidatorVB", "TestMailboxValidatorVB\TestMailboxValidatorVB.vbproj", "{47CB0535-28C0-4969-B945-1E90ED90452A}"
7-
EndProject
8-
Global
9-
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10-
Debug|Any CPU = Debug|Any CPU
11-
Release|Any CPU = Release|Any CPU
12-
EndGlobalSection
13-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{47CB0535-28C0-4969-B945-1E90ED90452A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{47CB0535-28C0-4969-B945-1E90ED90452A}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{47CB0535-28C0-4969-B945-1E90ED90452A}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{47CB0535-28C0-4969-B945-1E90ED90452A}.Release|Any CPU.Build.0 = Release|Any CPU
18-
EndGlobalSection
19-
GlobalSection(SolutionProperties) = preSolution
20-
HideSolutionNode = FALSE
21-
EndGlobalSection
22-
GlobalSection(ExtensibilityGlobals) = postSolution
23-
SolutionGuid = {ACF2477B-D6DE-4E2A-9612-A941B5404207}
24-
EndGlobalSection
25-
EndGlobal
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.7.34031.279
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "TestMailboxValidatorVB", "TestMailboxValidatorVB\TestMailboxValidatorVB.vbproj", "{47CB0535-28C0-4969-B945-1E90ED90452A}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{47CB0535-28C0-4969-B945-1E90ED90452A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{47CB0535-28C0-4969-B945-1E90ED90452A}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{47CB0535-28C0-4969-B945-1E90ED90452A}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{47CB0535-28C0-4969-B945-1E90ED90452A}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {ACF2477B-D6DE-4E2A-9612-A941B5404207}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
1-
Imports Newtonsoft.Json
2-
3-
Module Program
4-
Sub Main(args As String())
5-
Dim apikey = "PASTE_YOUR_API_KEY_HERE"
6-
Dim email = "example@example.com"
7-
Dim mbv As New MailboxValidator.SingleValidation(apikey)
8-
9-
Dim mytask = mbv.ValidateEmailAsync(email) ' async API Call
10-
Dim myobj = mytask.Result
11-
12-
Console.WriteLine(JsonConvert.SerializeObject(myobj, Formatting.Indented)) ' to pretty-print the JSON
13-
14-
Console.WriteLine("email_address:" & myobj("email_address").ToString)
15-
Console.WriteLine("domain:" & myobj("domain").ToString)
16-
Console.WriteLine("is_free:" & myobj("is_free").ToString)
17-
Console.WriteLine("is_syntax:" & myobj("is_syntax").ToString)
18-
Console.WriteLine("is_domain:" & myobj("is_domain").ToString)
19-
Console.WriteLine("is_smtp:" & myobj("is_smtp").ToString)
20-
Console.WriteLine("is_verified:" & myobj("is_verified").ToString)
21-
Console.WriteLine("is_server_down:" & myobj("is_server_down").ToString)
22-
Console.WriteLine("is_greylisted:" & myobj("is_greylisted").ToString)
23-
Console.WriteLine("is_disposable:" & myobj("is_disposable").ToString)
24-
Console.WriteLine("is_suppressed:" & myobj("is_suppressed").ToString)
25-
Console.WriteLine("is_role:" & myobj("is_role").ToString)
26-
Console.WriteLine("is_high_risk:" & myobj("is_high_risk").ToString)
27-
Console.WriteLine("is_catchall:" & myobj("is_catchall").ToString)
28-
Console.WriteLine("mailboxvalidator_score:" & myobj("mailboxvalidator_score").ToString)
29-
Console.WriteLine("time_taken:" & myobj("time_taken").ToString)
30-
Console.WriteLine("status:" & myobj("status").ToString)
31-
Console.WriteLine("credits_available:" & myobj("credits_available").ToString)
32-
33-
Dim mytask2 = mbv.DisposableEmailAsync(email) ' async API Call
34-
Dim myobj2 = mytask2.Result
35-
36-
Console.WriteLine(JsonConvert.SerializeObject(myobj2, Formatting.Indented)) ' to pretty-print the JSON
37-
38-
Console.WriteLine("email_address:" & myobj2("email_address").ToString)
39-
Console.WriteLine("is_disposable:" & myobj2("is_disposable").ToString)
40-
Console.WriteLine("credits_available:" & myobj2("credits_available").ToString)
41-
42-
Dim mytask3 = mbv.FreeEmailAsync(email) ' async API Call
43-
Dim myobj3 = mytask3.Result
44-
45-
Console.WriteLine(JsonConvert.SerializeObject(myobj3, Formatting.Indented)) ' to pretty-print the JSON
46-
47-
Console.WriteLine("email_address:" & myobj3("email_address").ToString)
48-
Console.WriteLine("is_free:" & myobj3("is_free").ToString)
49-
Console.WriteLine("credits_available:" & myobj3("credits_available").ToString)
50-
End Sub
51-
End Module
1+
Imports Newtonsoft.Json
2+
3+
Module Program
4+
Sub Main(args As String())
5+
Dim apikey = "PASTE_YOUR_API_KEY_HERE"
6+
Dim email = "example@example.com"
7+
Dim mbv As New MailboxValidator.SingleValidation(apikey)
8+
9+
Dim mytask = mbv.ValidateEmailAsync(email) ' async API Call
10+
Dim myobj = mytask.Result
11+
12+
Console.WriteLine(JsonConvert.SerializeObject(myobj, Formatting.Indented)) ' to pretty-print the JSON
13+
14+
Console.WriteLine("email_address:" & myobj("email_address").ToString)
15+
Console.WriteLine("domain:" & myobj("domain").ToString)
16+
Console.WriteLine("is_free:" & myobj("is_free").ToString)
17+
Console.WriteLine("is_syntax:" & myobj("is_syntax").ToString)
18+
Console.WriteLine("is_domain:" & myobj("is_domain").ToString)
19+
Console.WriteLine("is_smtp:" & myobj("is_smtp").ToString)
20+
Console.WriteLine("is_verified:" & myobj("is_verified").ToString)
21+
Console.WriteLine("is_server_down:" & myobj("is_server_down").ToString)
22+
Console.WriteLine("is_greylisted:" & myobj("is_greylisted").ToString)
23+
Console.WriteLine("is_disposable:" & myobj("is_disposable").ToString)
24+
Console.WriteLine("is_suppressed:" & myobj("is_suppressed").ToString)
25+
Console.WriteLine("is_role:" & myobj("is_role").ToString)
26+
Console.WriteLine("is_high_risk:" & myobj("is_high_risk").ToString)
27+
Console.WriteLine("is_catchall:" & myobj("is_catchall").ToString)
28+
Console.WriteLine("mailboxvalidator_score:" & myobj("mailboxvalidator_score").ToString)
29+
Console.WriteLine("time_taken:" & myobj("time_taken").ToString)
30+
Console.WriteLine("status:" & myobj("status").ToString)
31+
Console.WriteLine("credits_available:" & myobj("credits_available").ToString)
32+
33+
Dim mytask2 = mbv.DisposableEmailAsync(email) ' async API Call
34+
Dim myobj2 = mytask2.Result
35+
36+
Console.WriteLine(JsonConvert.SerializeObject(myobj2, Formatting.Indented)) ' to pretty-print the JSON
37+
38+
Console.WriteLine("email_address:" & myobj2("email_address").ToString)
39+
Console.WriteLine("is_disposable:" & myobj2("is_disposable").ToString)
40+
Console.WriteLine("credits_available:" & myobj2("credits_available").ToString)
41+
42+
Dim mytask3 = mbv.FreeEmailAsync(email) ' async API Call
43+
Dim myobj3 = mytask3.Result
44+
45+
Console.WriteLine(JsonConvert.SerializeObject(myobj3, Formatting.Indented)) ' to pretty-print the JSON
46+
47+
Console.WriteLine("email_address:" & myobj3("email_address").ToString)
48+
Console.WriteLine("is_free:" & myobj3("is_free").ToString)
49+
Console.WriteLine("credits_available:" & myobj3("credits_available").ToString)
50+
End Sub
51+
End Module
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<OutputType>Exe</OutputType>
5-
<RootNamespace>TestMailboxValidatorVB</RootNamespace>
6-
<TargetFramework>net7.0</TargetFramework>
7-
</PropertyGroup>
8-
9-
<ItemGroup>
10-
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
11-
</ItemGroup>
12-
13-
<ItemGroup>
14-
<Reference Include="MailboxValidator">
15-
<HintPath>..\..\MailboxValidatorVB\MailboxValidatorVB\bin\Debug\net7.0\MailboxValidator.dll</HintPath>
16-
</Reference>
17-
</ItemGroup>
18-
19-
</Project>
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<RootNamespace>TestMailboxValidatorVB</RootNamespace>
6+
<TargetFramework>net9.0</TargetFramework>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
11+
</ItemGroup>
12+
13+
<ItemGroup>
14+
<Reference Include="MailboxValidator">
15+
<HintPath>..\..\MailboxValidatorVB\MailboxValidatorVB\bin\Debug\net9.0\MailboxValidator.dll</HintPath>
16+
</Reference>
17+
</ItemGroup>
18+
19+
</Project>

0 commit comments

Comments
 (0)