I'm trying to change the mandatory in ma access database when I'm sending email.
I don't want to use my personnel email, I want to use my other email.
I'm usging Groupwise 8 with 2003 Access.
I try this code but when I use the proxy I keep crashing.
My database close.
Can you help me someone ?
I don't want to use my personnel email, I want to use my other email.
I'm usging Groupwise 8 with 2003 Access.
I try this code but when I use the proxy I keep crashing.
My database close.
Code:
Dim Courriel As New ClsCourrielGW
Dim compteur As Integer
With Courriel
.Login 'Connection à GW
.Proxy ("<proxy address removed>")
.Subject = txtObjet 'Affectation du Sujet
'.FromText = "AffairesCorporative"
'Dim mobjGWacc As GroupwareTypeLibrary.Account2
'Dim mobjGWProxyAcc As GroupwareTypeLibrary.Account2
'Set mobjGWProxyAcc = mobjGWacc.Proxy("<proxy address removed>")
compteur = 0
If Not IsNull(Trim(Me.AreCourrielPrenomNom)) Then
message1 = Me.AreCourrielPrenomNom & vbCrLf & vbCrLf & txtMessage
Else
message1 = "Bonjour," & vbCrLf & vbCrLf & txtMessage
End If
.BodyText = message1 'Affectation du corps du message
If Not IsNull(Trim(Me!AreCourrielDestinataire)) Then
.RecTo = Trim(Me!AreCourrielDestinataire) 'Affecter le tableau au destinataire du courriel
.RecCc = arrCC
.FileAttachments = txtFichierEnregistre & ".pdf" 'Attacher les fichiers au courriel
strTemp = .CreateMessage 'Créer le message
.ResolveRecipients strTemp 'Vérifier les récipients
If IsArray(.NonResolved) Then
MsgBox "Des adresses de courriels sont incorrectes.", vbInformation, "Courriel"
Exit Sub
Else
.SendMessage strTemp 'Envoie du message
intNbrCourriel = intNbrCourriel + 1
End If
.DeleteMessage strTemp, True 'Effacement du message
End If
End With
Comment