Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2006

Tip: Looking for answers? Try searching our database.

createmail function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Deb - 09 Aug 2006 20:17 GMT
I note in one of the InfoPath sample templates that there is a createmail()
function.  Is there any way to specify what recipient's email address as part
of the statement?

Thanks!
Greg Collins [InfoPath MVP] - 09 Aug 2006 21:23 GMT
There are various properties on the email object that you can fill in, such as:
emailObject.To = "";
emailObject.From = "";

etc.

Signature

Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPathDev ( http://www.InfoPathDev.com )

Deb - 10 Aug 2006 15:47 GMT
So, how would I change the createEmail(); function to accommodate that?  
Also, I'm not really a programmer but would like to know where to find this
type of information in the future.  Thanks.

> There are various properties on the email object that you can fill in, such as:
> emailObject.To = "";
> emailObject.From = "";
>
> etc.
Greg Collins [InfoPath MVP] - 10 Aug 2006 20:48 GMT
You should be able to find sufficient info on these properties in the InfoPath help and on the MSDN web site.

Signature

Greg Collins [Microsoft MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPathDev ( http://www.InfoPathDev.com )

S.Y.M. Wong-A-Ton - 13 Aug 2006 04:21 GMT
It would help a lot in the near future if you mentioned which sample form you
were looking at? It saves us time when trying to help you. :)  Thanks!

You can find more information on the "To" property of the "MailEnvelope"
object here:
http://msdn.microsoft.com/library/en-us/ipsdk/html/xdproTo_HV01021343.asp?frame=true

Just set it to a string representing one or more email addresses and you
should be good to go. Another option is to pass it as a variable to the
createEmail() function like this:

function createEmail(emailAddress)
{
   ....
   oEnvelope.To = emailAddress;
   ...
}

and then call it somewhere else in your code:

createEmail("someone@example.com");
---
S.Y.M. Wong-A-Ton

> So, how would I change the createEmail(); function to accommodate that?  
> Also, I'm not really a programmer but would like to know where to find this
[quoted text clipped - 5 lines]
> >
> > etc.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.