Here is VB6 Code:
Attachement = objMail.Attachments.Add("D:\message.doc.pgp")
I am trying to automatically attach a file with outlook email......objMail.Attachments.Add method is unable to read the file "message.doc.pgp" very first time when the code execute.....On second n later executions it start recognizing the file n work fine but y not the first time.
I create the file "message.doc.pgp" by using shell command as follow.
Shell "command.com /c pgp -e " & "d:\message.doc " & "Imran Khalid"
....when this command execute....a file "D:\message.doc.pgp" is created automatically which i later wants to sends as an email attachment....but not recognized during first time code execution as mentioned above.
Thanx a lot