Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IP 03 - OL 07 email error

Status
Not open for further replies.

msnook

Technical User
Jul 6, 2007
41
US
I am having an error trying to send an InfoPath 2003 form through Outlook 2007. I have read on various other sites both that it is possible to do and that it isn't. Those who say it can be done suggested creating a button with coding in it to accomplish it. I have done this (code below) and it works well as long as the user is on 03. Some of our new hires have been given 07 Outlook and I am not sure if the error is in communication between IP and OL or in the settings that they have as new employees. Any input or suggestions would be greatly appreciated and thanks in advance.

-----------------------js-----------------------------------------

{
function OpenMailEnvelop(subject, to)
{

try
{

var oEnvelope = Application.ActiveWindow.MailEnvelope;



oEnvelope.Subject = subject;
oEnvelope.To = to;
oEnvelope.Visible = true;

return true;
}
catch(exception)
{
return false;
}

}
function CTRL2_5::OnClick(eventObj)
{
XDocument.DOM.setProperty("SelectionNamespaces",
"xmlns:my=\" myXSD/2011-06-27T17:47:16\"");

var name = XDocument.DOM.selectSingleNode("/my:myFields/my:Name2").text;

OpenMailEnvelop("Quality controll email","" + name)
}

}
 
I'm guessing it's a security setting in Outlook. I don't know off hand what it is, but I remember having some issues using VBA in an Access database to send emails from Outlook. However, those issues were brought about b/c of an update to Office 2003, I think it was.

Have you thought of just having them Zip the file, and then sending the archive?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top