Hi Ed,
After trying it for some time, I changed the
WshShell.SendKeys "Y"
with
WshShell.SendKeys "S"
and it finally worked and I also changed
Wscript.Sleep 20000
with
Wscript.Sleep 20
'Cause I think is much faster, I don't know if there is any affect. I only put the script before sending the email and I didn't put before the create item like you said.
Another problem occured if we (as a sender) has an email address password and we didn't opened it first when we want to send the email via VFP so VFP will open the email first and will'be prompted to entry the password but if we send it two times, the second one will not require a password and if we open the email we won't be prompted to enter our password anymore so our email won't be protected in other word we have to open the email first then send it. Have you ever experienced this before ?
Best Regards,
Budianto