Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CrashReporter.NET/CrashReporter.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>CrashReporter.NET.snk</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down Expand Up @@ -248,7 +249,6 @@
<None Include="build\CrashReporter.NET.Official.nuspec">
<SubType>Designer</SubType>
</None>
<None Include="CrashReporter.NET.snk" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
Expand Down
5 changes: 4 additions & 1 deletion CrashReporter.NET/ReportCrash.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public class ReportCrash
/// Object use to send exception report to your Inbox.
/// </summary>
/// <param name="toEmail">Email where you want to receive crash reports.</param>
public ReportCrash(string toEmail)
public ReportCrash(string toEmail="")
{
ToEmail = toEmail;
}
Expand Down Expand Up @@ -327,6 +327,9 @@ internal void SendReport(bool includeScreenshot,

private void SendEmail(bool includeScreenshot, SendCompletedEventHandler smtpClientSendCompleted, string subject, string userMessage)
{
if (string.IsNullOrEmpty(ToEmail))
return;

if (string.IsNullOrEmpty(subject))
{
subject = $"{ApplicationTitle} {ApplicationVersion} Crash Report";
Expand Down