Changeset 1278
- Timestamp:
- 1/31/2010 4:04:30 AM (7 weeks ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
EveHQ.Core/EveMail.vb (modified) (7 diffs)
-
EveHQ/Forms/frmEveHQ.vb (modified) (1 diff)
-
EveHQ/Forms/frmMail.vb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/EveHQ.Core/EveMail.vb
r1275 r1278 5 5 Public Class EveMail 6 6 7 Shared MailTimeFormat As String = "yyyy-MM-dd HH:mm:ss" 8 Shared culture As System.Globalization.CultureInfo = New System.Globalization.CultureInfo("en-GB") 9 10 Public Shared Sub GetEveMail() 7 Dim MailTimeFormat As String = "yyyy-MM-dd HH:mm:ss" 8 Dim culture As System.Globalization.CultureInfo = New System.Globalization.CultureInfo("en-GB") 9 10 Public Sub GetMail() 11 Call Me.GetEveMail() 12 Call Me.GetNotifications() 13 End Sub 14 15 Private Sub GetEveMail() 11 16 ' Stage 1: Download the latest EveMail API using the standard API method 12 17 ' Stage 2: Populate the class with our EveMail … … 143 148 ' Send E-mail notification of new mails if required 144 149 If EveHQ.Core.HQ.EveHQSettings.NotifyEveMail = True And NewMails.Count > 0 Then 145 Call EveMail.SendEmailForNewEveMails(NewMails, IDs)150 Call SendEmailForNewEveMails(NewMails, IDs) 146 151 End If 147 152 … … 152 157 End Sub 153 158 154 P ublic SharedSub GetNotifications()159 Private Sub GetNotifications() 155 160 ' Stage 1: Download the latest EveNotifications API using the standard API method 156 161 ' Stage 2: Populate the class with our Eve Notifications … … 271 276 ' Send E-mail notification of new mails if required 272 277 If EveHQ.Core.HQ.EveHQSettings.NotifyEveMail = True And newNotifys.Count > 0 Then 273 Call EveMail.SendEmailForNewEveNotifications(newNotifys, IDs)278 Call SendEmailForNewEveNotifications(newNotifys, IDs) 274 279 End If 275 280 … … 281 286 End Sub 282 287 283 Private S hared Sub SendEmailForNewEveMails(ByVal NewMails As ArrayList, ByVal IDs As ArrayList)288 Private Sub SendEmailForNewEveMails(ByVal NewMails As ArrayList, ByVal IDs As ArrayList) 284 289 ' Get the name data from the DB 285 290 Dim strID As New StringBuilder … … 330 335 End If 331 336 Next 332 EveMail.SendEveHQMail("New Eve Mail Messages Notification", strBody.ToString)337 Call SendEveHQMail("New Eve Mail Messages Notification", strBody.ToString) 333 338 End If 334 339 End Sub 335 340 336 Private S hared Sub SendEmailForNewEveNotifications(ByVal NewNotifys As ArrayList, ByVal IDs As ArrayList)341 Private Sub SendEmailForNewEveNotifications(ByVal NewNotifys As ArrayList, ByVal IDs As ArrayList) 337 342 ' Get the name data from the DB 338 343 Dim strID As New StringBuilder … … 368 373 MessageCount += 1 369 374 Next 370 EveMail.SendEveHQMail("New Eve Notification Messages Notification", strBody.ToString)375 Call SendEveHQMail("New Eve Notification Messages Notification", strBody.ToString) 371 376 End Sub 372 377 373 Private S hared Sub SendEveHQMail(ByVal mailSubject As String, ByVal mailText As String)378 Private Sub SendEveHQMail(ByVal mailSubject As String, ByVal mailText As String) 374 379 Dim eveHQMail As New System.Net.Mail.SmtpClient 375 380 Try -
trunk/EveHQ/Forms/frmEveHQ.vb
r1235 r1278 2721 2721 2722 2722 ' Call the main routines! 2723 Call EveHQ.Core.EveMail.GetEveMail()2724 Call EveHQ.Core.EveMail.GetNotifications()2723 Dim myMail As New EveHQ.Core.EveMail 2724 Call myMail.GetMail() 2725 2725 2726 2726 ' Update the display with EveMail -
trunk/EveHQ/Forms/frmMail.vb
r1276 r1278 79 79 Me.Cursor = Cursors.WaitCursor 80 80 81 Call EveHQ.Core.EveMail.GetEveMail()82 Call EveHQ.Core.EveMail.GetNotifications()81 Dim myMail As New EveHQ.Core.EveMail 82 Call myMail.GetMail() 83 83 84 84 ' Update the display with EveMail
