- 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:
eos 2012-04-29 20:12:24 +00:00
parent 31185a874f
commit fd6d28d56b
5 changed files with 17 additions and 14 deletions

View file

@ -345,7 +345,7 @@ namespace Server.Engines.Help
if ( !isStaffOnline )
entry.Sender.SendMessage( "We are sorry, but no staff members are currently available to assist you. Your page will remain in the queue until one becomes available, or until you cancel it manually." );
if ( Email.SpeechLogPageAddresses != null && entry.SpeechLog != null )
if ( Email.FromAddress != null && Email.SpeechLogPageAddresses != null && entry.SpeechLog != null )
SendEmail( entry );
}
@ -354,7 +354,7 @@ namespace Server.Engines.Help
Mobile sender = entry.Sender;
DateTime time = DateTime.Now;
MailMessage mail = new MailMessage( "RunUO", Email.SpeechLogPageAddresses );
MailMessage mail = new MailMessage( Email.FromAddress, Email.SpeechLogPageAddresses );
mail.Subject = "RunUO Speech Log Page Forwarding";