Send Email To Current User's Manager

J

joel_dizon

Hi,

Im working on a Infopath form that suppose to send an email to the
Manager of the Current user (login name). Im relatively new to
Infopath/JScript and I can't find a solution, can anybody guide me
about this.

Thanks in advance.

Joel
 
J

joel_dizon

hi steve,

merry xmas to you and thanks for the help.
i've managed to send an email using the following...

var id_mgr =
getNode("/dfs:myFields/dfs:dataFields/tns:GetAssessmentResponse/tns:GetAssessmentResult/ns1:ServiceDataSet/ns1:ST_USER/ns1:ID_MANAGER").text;
var objEmailAdapter;
objEmailAdapter = XDocument.DataAdapters("EmailSubmit");

objEmailAdapter.To = id_mgr;
objEmailAdapter.Subject = "Status Report";
objEmailAdapter.Intro = "Blah blah";
objEmailAdapter.Submit();

.... but there's a dialog box (email confirmation) that appears, when
you click the send button in the dialog box, the email attached the
form.

Is there any way me can eliminate the dialog box and the attachment of
the form in the email?

thanks again.

joel
 
S

steve

cool....

if you go into the Data Connections, select your email connection,
blank out the Attachment Name field - it should send the email without
the attachment. (really stupid design)

i don't think it's possible to get rid of the dialog box (if i'm wrong
i'd like to know about it)

hope that helps......

steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top