A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Automatic Email From Custom Contact Form



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6  
Old October 11th 06, 08:30 PM posted to microsoft.public.outlook.program_forms
Michelle W@
external usenet poster
 
Posts: 11
Default Automatic Email From Custom Contact Form

Is there a way to put in the script so it only sends an email when the item
is created? Right now it is sending an email after any updating that is done
to the record... Thanks!

"Sue Mosher [MVP-Outlook]" wrote:

The basics would be:

Function Item_Write()
Set newItem = Application.CreateItem(0)
With newItem
.To = "
.Subject = "New contact"
.Body = "There is a new contact."
.Send
End With
End Function

Embellish to your heart's content.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Michelle W@" wrote in message ...
How do I go about doing that? Do you have a tutorial for it

"Sue Mosher [MVP-Outlook]" wrote:

You could put code in the form's Item_Write event handler to generate such a message.

"Michelle W@" wrote in message news I am building a custom contact form for my companies client database and what
I would like to have if possible is when the sales person initiates the
client contact form and saves it to a public folder an email would be
generated to me alerting me that a new contact has been filled out. Is this
possible?


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom contact form Michael T Outlook - Using Forms 1 September 20th 06 05:38 PM
Is it possible to open the default Contact form with the Activities tab activated from a custom form? VSTO 2005, Outlook 2003 David Webb Outlook and VBA 1 June 20th 06 09:59 PM
Custom Contact Form Marella Outlook - Using Contacts 4 May 12th 06 03:56 PM
Emailing a contact vCard with custom form loses all custom info Kim Outlook - Using Contacts 7 April 27th 06 12:21 AM
Importing in to Custom Contact Form Mark the Outlook Idiot Outlook - Using Contacts 1 February 6th 06 09:53 PM


All times are GMT +1. The time now is 03:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.