V
VilMarci
Hi all,
I just can't understand why this code is not working...
I display a message with infos collected from a form and have the option for
the user to send or close the mail...
I want to check if the mail was sent and then set things in the db...
Why is that the value of otlMail.Sent is always FALSE? Doesn't matter if I
sent the mail or not... Tried to replace the .Display to .Send, then I get
an error message: the item has been moved or deleted...
Is there any other solution?
Any ideas?
Thanks,
Marton
otlMail.HTMLBody = strMailBody & "Dear " & Me![Last name] & Me![First name]
& ",<BR>" & strBody
'otlMail.SentOnBehalfOfName = "(e-mail address removed)"
otlMail.To = strCim
otlMail.Subject = "Your application"
otlMail.Attachments.Add "Z:\MailSrcDoc\CandidateEmail.doc"
otlMail.Display
If otlMail.Sent = True Then 'always false
strMessage = "Message SENT to: " & strNev
MsgBox (strMessage)
Else
strMessage = "Message NOT SENT to: " '& strNev
MsgBox (strMessage)
I just can't understand why this code is not working...
I display a message with infos collected from a form and have the option for
the user to send or close the mail...
I want to check if the mail was sent and then set things in the db...
Why is that the value of otlMail.Sent is always FALSE? Doesn't matter if I
sent the mail or not... Tried to replace the .Display to .Send, then I get
an error message: the item has been moved or deleted...
Is there any other solution?
Any ideas?
Thanks,
Marton
otlMail.HTMLBody = strMailBody & "Dear " & Me![Last name] & Me![First name]
& ",<BR>" & strBody
'otlMail.SentOnBehalfOfName = "(e-mail address removed)"
otlMail.To = strCim
otlMail.Subject = "Your application"
otlMail.Attachments.Add "Z:\MailSrcDoc\CandidateEmail.doc"
otlMail.Display
If otlMail.Sent = True Then 'always false
strMessage = "Message SENT to: " & strNev
MsgBox (strMessage)
Else
strMessage = "Message NOT SENT to: " '& strNev
MsgBox (strMessage)