How to check whether email has already been sent? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

How to check whether email has already been sent?

pasapasa Posts: 23Member
[b][red]This message was edited by pasa at 2007-2-9 3:36:35[/red][/b][hr]
Hi everyone,
I have try to send a email from my VB project. Email was sent well, I know about it because I check my mailbox, where my program sent email to; but I dont know how to check whether my currently email has already been sent to another mailbox (for ex: mail box of my friend) or not?
So please help me to solve this prob. Thx in advance.

MAPIMessages1.msgsent always returns FALSE!?

This is my code:

[code]
'Sign in
MAPISession1.DownLoadMail = False
MAPISession1.LogonUI = False
MAPISession1.SignOn
MAPIMessages1.MsgIndex = -1
MAPIMessages1.SessionID = MAPISession1.SessionID

'Compose email
MAPIMessages1.Compose
MAPIMessages1.RecipDisplayName = EmailAdress
MAPIMessages1.MsgSubject = "Example"
MAPIMessages1.MsgNoteText = "Don't delete this file please"
MAPIMessages1.AttachmentPathName = ("C: est.txt")
MAPIMessages1.ResolveName
''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'For testing
MsgBox (MAPIMessages1.MsgSent) 'false - I think it's correct
''''''''''''''''''''''''''''''''''''''''''''''''''''''''

MAPIMessages1.Send

''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'For testing
MsgBox (MAPIMessages1.MsgSent) 'Always be FALSE ?? WHY?
''''''''''''''''''''''''''''''''''''''''''''''''''''''''
MAPISession1.SignOff

MsgBox (MAPIMessages1.MsgSent) 'FALSE too!!?????
[/code]


Comments

  • pasapasa Posts: 23Member
    : Hi everyone,
    : I have try to send a email from my VB project. Email was sent well, I know about it because I check my mailbox, where my program sent email to; but I dont know how to check whether my currently email has already been sent to another mailbox (for ex: mail box of my friend) or not?
    : So please help me to solve this prob. Thx in advance.
    :
    : This is my code:
    :
    : [code]
    : 'Sign in
    : MAPISession1.DownLoadMail = False
    : MAPISession1.LogonUI = False
    : MAPISession1.SignOn
    : MAPIMessages1.MsgIndex = -1
    : MAPIMessages1.SessionID = MAPISession1.SessionID
    :
    : 'Compose email
    : MAPIMessages1.Compose
    : MAPIMessages1.RecipDisplayName = EmailAdress
    : MAPIMessages1.MsgSubject = "Example"
    : MAPIMessages1.MsgNoteText = "Don't delete this file please"
    : MAPIMessages1.AttachmentPathName = ("C: est.txt")
    : MAPIMessages1.ResolveName
    : ''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    : 'For testing
    : MsgBox (MAPIMessages1.MsgSent) 'false - I think it's correct
    : ''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    :
    : MAPIMessages1.Send
    :
    : ''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    : 'For testing
    : MsgBox (MAPIMessages1.MsgSent) 'Always be FALSE ?? WHY?
    : ''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    : MAPISession1.SignOff
    :
    : MsgBox (MAPIMessages1.MsgSent) 'FALSE too!!?????
    : [/code]
    :

Sign In or Register to comment.