- Comment updates for DataPath, MapDefinitions and Email.
- Added a FromAddress to Email for MailMessage construction, using "RunUO" as done before throws an exception because it's not an email address. - Fixed the regular expression in Email to check for valid email addresses.
This commit is contained in:
parent
31185a874f
commit
fd6d28d56b
5 changed files with 17 additions and 14 deletions
|
|
@ -44,7 +44,7 @@ namespace Server.Misc
|
|||
{
|
||||
Console.Write( "Crash: Sending email..." );
|
||||
|
||||
MailMessage message = new MailMessage( "RunUO", Email.CrashAddresses );
|
||||
MailMessage message = new MailMessage( Email.FromAddress, Email.CrashAddresses );
|
||||
|
||||
message.Subject = "Automated RunUO Crash Report";
|
||||
|
||||
|
|
@ -237,7 +237,7 @@ namespace Server.Misc
|
|||
|
||||
Console.WriteLine( "done" );
|
||||
|
||||
if ( Email.CrashAddresses != null )
|
||||
if ( Email.FromAddress != null && Email.CrashAddresses != null )
|
||||
SendEmail( filePath );
|
||||
}
|
||||
catch
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue