This commit is contained in:
2023-01-09 16:29:20 +01:00
16 changed files with 3830 additions and 732 deletions

View File

@@ -5465,16 +5465,19 @@ Public Class frmSendungsdetailsNEU
Dim olSess = outl.Session
Dim accounts = olSess.Accounts
Dim account As Outlook.Account
Dim PathTmpANH = VERAG_PROG_ALLGEMEIN.cDATENSERVER.GET_PDFPath_BY_DocID(dgvAnhang.CurrentRow.Cells("anh_docId").Value)
Mail = CType(olSess.OpenSharedItem(PathTmpANH), Outlook.MailItem)
Dim accounts = olSess.Accounts
Dim account As Outlook.Account
'For Each account In accounts
' If account.UserName.ToString = "brexit" Then
' Mail.SentOnBehalfOfName = "brexit@verag.ag" 'account.SmtpAddress.ToString
For Each account In accounts
If account.UserName.ToString = "brexit" Then Mail.SendUsingAccount = account
Next
' End If
'Next
Mail = Mail.ReplyAll
isReply = True