When I submit infopath form using outlook, the email is sent twice in my "Sent Items" folder (however recipient receives only one email). The first sent item contains a green globe icon and with the message header "This form has been submitted". The second sent item does not contain globe and does not contain message header. How can I prevent the duplicate in Sent items folder.
I'm using this code in FormEvents_Submit():
e.CancelableArgs.Cancel =
false;
emailconnection.Execute();
Please advise.
Thanks a lot,