06. Push and Pull Email [9:15]

Description: This video demonstrates sending e-mail from FileMaker Pro to Microsoft Outlook.   It also demonstrates pulling e-mail from Outlook into FileMaker.

YouTube Preview

Transcript:

Hi, in this video we’re going to take a look at working with Outlook e-mail. Open up the beginner demo. Register the plug-in. Authenticate and let’s first take a look at “pushing mail” from FileMaker to Outlook. We have the “To”, the “CC” and the “BCC” for storing e-mail addresses,  subject, body and a place for attachment. So if I click “send e-mail”, that will send an e-mail to Outlook. Let’s take a look at that.  So here we have – you can see that it populated the to, the subject and the body of the e-mail. You can create a CC and let’s add an attachment. And send the e-mail again-take a look at Outlook. This time we have an e-mail that includes an attachment and a CC.

 

1:29 So sending e-mail is fairly simple. The method that we use is a single command. So this script simply does the plug-in checker which checks for registration.  Then it calls the authenticate command.  And this is where the script is defined to send the e-mail.  So we’re using the “PCEM_SendMail” command with several parameters. The first parameter is the to, the cc, the bcc, subject and body, and finally we have the attachment path which includes both path to the attachment as well as the attachment name. We’re using the “substitute” command here to further define the path in a format that’s acceptable to the plug-in. For more information on the exact specifications of that path, refer to the documentation. The final parameter in this case is a “N” which allows you to use and send the e-mail as HTML or plain text. “N” in this case stands for plain text.

 

2:50 So a single command can send mail. And there’s more information on sending e-mail.  If you want to learn about sending HTML e-mail or Rich text e-mail you can refer to the documentation and the advanced demo where we have examples on how to do that.  In this case the attachment we’ve sent is referenced in the container field in FileMaker. So this button here simply inserts a reference to the attachment document, or in this case “attachment.rtf”.  And it uses that to identify a path. The plug-in simply needs a path and a filename in order to attach it. You can send multiple attachments as well. Again, for an example of multiple attachments you can look at the advanced demo or refer to the documentation.  So pushing e-mail has some advantages here with Outlook in that it removes the security dialog that you would normally see when you send mail from FileMaker Using the traditional mail command.

 

3:58 Pulling e-mail. When the demo opens up it first attempts to grab all the Outlook folders that you have within your e-mail environment. In this case I have deleted items, drafts, inbox, and a few subfolders within inbox, junk e-mail, outbox, and some RSS boxes. So if I want to pull e-mail from the inbox ( which is the default in this demo) I can specify my Outlook folder as the inbox and click “Pull”. Currently there are no messages in the inbox so let’s go add some. I’ve since added some e-mail to the inbox. I have test one, test two and test three as e-mails. Test three has an attachment. So click on the e-mail pull. Again we’re pulling from the inbox folder. Those three e-mails just came in.  Here’s the Outlook ID, the sent on, the received on – those are broken out into date and times.

 

5:06 When you get the information for sent on, it’s actually coming to you as a timestamp. We’ve just added a calculation field to break out the date and time separately just to make it distinct. The to, the cc, the bcc, the from, subject, body, header. There are additional fields you can pull such as categories that are explained in the advanced demo or in the documentation. So let’s take a look at how this e-mail is pulled. So here’s the script that does that. We first show all the records in FileMaker and delete all the records. So that way, if we had any e-mails prior to clicking the button, they’d be deleted. Then we performed the authenticate. Then the “open folder”. This tells Outlook which folder we’d like to look at. Here I’m specifying a global field of FileMaker which is set to “/inbox” which you saw in the preview screen.

 

6:15 Then we get the record count – this tells us how many e-mails we have in the inbox. Then we create a new FileMaker record and we tell Outlook to position itself on the first record. So that’s the “PCEM_GetFirstRecord” command. Then we create a loop. This will allow us to get multiple records. And let’s skip over the exit loop for a second and just look at the fields we’re pulling. In the “to” field in FileMaker we’re getting data from Outlook’s “to” field. Let’s take a closer look at that. PCEM_GetFieldData specified “to” – that’s the Outlook field name. For a complete list of field names you can refer to the “fields and functions” PDF document that’s part of the download package. So we grab the “to”, the “cc”, the “bcc”, populate all these fields in FileMaker from data from Outlook, and so forth.

 

7:14 Then towards the end, we determine if the count we received up here when we learned how many records there were in the inbox – if that count matches the current found count in FileMaker, we exit the loop. Up here we talked about another exit loop. So on this exit loop we’re exiting if the Outlook ID returns the word “end”. We would receive that information down here. When we call to get next record and we’re at the last record already, it will return the word “end” when you’ve reached the last record in Outlook. So, we exit the loop here if that happens. Or we exit the loop if the Outlook ID is less than zero.

 

8:00 So that’s how we pull multiple records regarding e-mail. To get more information on pulling attachments or even multiple attachments, you can refer to the advanced demo or the documentation.  Finally let’s take a look at this record in Outlook. We can view the record directly by clicking the “view” button here in FileMaker. And that script looks like this. We call the “open record” command (“PCEM_OpenRecord) and we enter the Outlook ID we received when we pulled the e-mail originally. So that tells Outlook which record to open.

 

8:55 And then to display the record, we use ”PCEM_Display”.  And that will bring the record to the foreground -it will actually open up the email in detail view. Thank you for watching.

Tags: , , , , ,

  • Buy Cheapest pantoprazole 40 mg price Now Order Cheap Meds Without Rx. Best Online.
  • Buy Cheap treating menopause symptoms Online The Largest Internet Pharmacy. Best Prices.
  • Buy Cheap herpes medication over the counter Now Best Prices. Top Online Pharmacy Supplier.
  • Buy Cheap otc bp meds Now Best Internet. Safe And Secure Payment System.
  • Buy Cheap list all hiv medications Now Drugs, Health And Beauty. Free Viagra Pills!
  • Buy Cheap prednisolone side effects Online Best Internet. Drugs, Health And Beauty.
  • Buy Cheapest cheap phentermine 37.5 without prescription Now Best Internet. Drugs, Health And Beauty.
  • Buy Cheapest take female passion strips pills Online Buy Medications Online. Best Online.
  • Buy Cheap rite aid pharmacy locations Online Best Prices. 24/Internet)(safe Pharmacy.
  • Buy Cheap prednisolone online buy Now Best Drugstore. Online Prices For prednisolone online buy!
  • Buy Cheapest fluconazole capsule uses Online Drugs, Health And Beauty. Low Prices.
  • Buying Cheap budesonide. Offshore Rx, Good Prices. Online Medical Shop.
  • Buy Cheapest osteoporosis medicine your bones Now Internet Prices For osteoporosis medicine your bones! Best Online.
  • Buy Cheap how many cvs pharmacies are there Online Best Prices. No Prescription Needed.
  • Buy Cheap new adhd medications 2012 Online Free Viagra Pills! Top Online Pharmacy.
  • Buy Cheap online prescription meds Now 24/Internet)(safe Pharmacy. Pharmacy Store.
  • Buy Cheap mexican pharmacy prices Now Guaranteed Shipping. Buy Medications Online.
  • Buy Cheap purchase eurax meds without prescription Online Cheap Online Pharmacy. Guaranteed Shipping.
  • Buy Cheap pioglitazone generic Online WorldWide Shipping. 24/Online Pharmacy.
  • statins names Online Without Prescription Top Online Pharmacy. Low Prices.
  • order doxazosin Online Without Prescription Best Prices. Best Online.
  • Buy Cheap minoxidil medication Now Free Viagra Pills! Cheap Pharmacy Online.
  • Buy Cheapest what is the medicine fluconazole used for Now WorldWide Shipping. No Prescription Needed.
  • Buy Cheapest migraine meds Now Discount Pharmacy Online. Low Prices.
  • Buy Cheapest yeast infection medicine pill Now Discount Online Pharmacy. Best Internet.
  • Buy Cheap how many cvs pharmacies are there Now Guaranteed Shipping. No Prescription Needed.
  • Buy Cheapest pioglitazone generic Now Special Prices For pioglitazone generic! Best Internet.
  • Buy Cheap buy tinidazole overnight delivery Now Best Online. No Prescription Online Pharmacy.
  • medication mobic Online Without Prescription Low Prices. Top Online Pharmacy.
  • Buy Cheapest atherosclerosis medications Now Guaranteed Shipping. Pharmacy Store.
  • Buy Cheapest prinivil medication Online Best Online. Cheap Prescription Drugs.
  • Buy Cheapest walmart discount medications list Now Order Cheap Meds Without Rx. Low Prices.
  • Buy Cheap order pyridium next day delivery Now 24/Online Pharmacy. Cheap Pharmacy Online.
  • Buy Cheapest pcos metformin Now Guaranteed Shipping. Free Viagra Pills!
  • Buy Cheap periactin price coupon Now No Prescription Needed. Best Drugstore.
  • Buy Cheap best medicine swollen throat Now Low Prices. Discount Online Pharmacy Shopping.
  • Buy Cheap buy tadacip canada online Now Guaranteed Shipping. Cheap Pharmacy Online.
  • Buy Cheapest nabumetone 500mg Now Pharmacy At The Best Price! Best Internet.
  • Buy Cheap purchase mevacor Online Online Medical Shop. Best Drugstore.
  • Buy Cheap causes cholesterol lowering medications Online Free Viagra Pills! Top Online Pharmacy.
  • Buy Cheapest osteoporosis medicine your bones Now Discount Pharmacy Online. Pharmacy Store.
  • Buy Cheap men health shaving products Now Low Prices. Cheap Meds Without Prescription.
  • Buy Cheap famous pharmacies Now No Prescription Needed. WorldWide Shipping.
  • Buy Cheapest valtrex medication interactions Online Best Internet. 24/Online Pharmacy.
  • buy myambutol Online Without Prescription Best Internet. Low Prices.
  • Buy Cheapest online canadian pharmacy adderall Now Buy Medications Online. Best Drugstore.
  • Buy Cheap mexican pharmacy online no prescription Now No Prescription Needed. Top Online Pharmacy.
  • Buy Cheapest online pet meds Online Internet Prices For online pet meds! Best Prices.
  • Buy Cheap osteoporosis medications injections Online Order Cheap Meds Without Rx. Low Prices.
  • Buy Cheapest discount frontline Now Best Online. 100% Satisfaction Guaranteed.
  • Buy Cheap california board of pharmacy Now Best Drugstore. No Prescription Needed.
  • Buy Cheap express scripts cost Now Best Internet. 24/Internet)(safe Pharmacy.
  • Buy Cheap osteoporosis acupuncture Now Pharmacy Store. 24/Internet)(safe Pharmacy.
  • Buy Cheap female enhancement libido Now Buy Medications Online. Top Online Pharmacy.
  • Buy Cheapest prescription drugs cats Online Low Prices. Online Prices For prescription drugs cats!
  • Buy Cheap arthritis alternative medicine Online Cheap Prescription Drugs. Best Drugstore.
  • Buy Cheap donepezil Now Drugs, Health And Beauty. Free Viagra Pills!
  • Buy Cheapest glucotrol xl price Now Best Online. Drugs, Health And Beauty.
  • Buy Cheapest foreign pharmacy reviews Now Buy Medications Online. WorldWide Shipping.
  • Buy Cheapest foreign online pharmacies Online Free Viagra Pills! Guaranteed Shipping.
  • Buy Cheap hydroxycut health Online Best Online. The Largest Internet Pharmacy.
  • Buying Cheap buy ventolin inhaler online. Offshore Rx, Best Prices. Top Online Pharmacy.
  • Buy Cheapest discounted medications Now 24/Online Pharmacy. Best Internet.
  • Buy Cheap purchase online without prescription ventolin Online Discount Online Pharmacy. Best Prices.
  • Buy Cheapest medication dehydration Now Pharmacy Store. Cheap Online Pharmacy.
  • Buy Cheap nortriptyline pain Online Cheap Prescription Drugs. Best Internet.
  • Buy Cheap buy tinidazole overnight delivery Now Pharmacy At The Best Price! Best Internet.
  • Buy Cheap purple pharmacy mexico Now Free Viagra Pills! Internet Prices For purple pharmacy mexico!
  • Buy Cheapest bladder control symptoms Online Guaranteed Shipping. Best Online.
  • Buy Cheap bph medication Now No Prescription Needed. Cheap Pharmacy Online.
  • Buy Cheapest lexapro wellbutrin weight loss Now Internet Prices For lexapro wellbutrin weight loss! Low Prices.
  • Buy Cheap walmart discount medications list Online Best Online. Drugs, Health And Beauty.
  • Buy Cheap purchase prinivil Now Low Prices. All Medications Are Certificated!
  • Buy Cheapest depakote medicine Now The Largest Internet Pharmacy. Best Prices.
  • Buy Cheap hydrochlorothiazide price Online Top Online Pharmacy. 24/Online Pharmacy.
  • Buy Cheap herbal pet health Now WorldWide Shipping. Cheap Pharmacy Online.
  • Buy Cheap pharmacies online with lorazepam Online Best Prices. Internet Prices For pharmacies online with lorazepam!
  • Buy Cheap bph medication Online Best Drugstore. Special Prices For bph medication!
  • Buy Cheap prednisolone side effects children Online Pharmacy At The Best Price! Pharmacy Store.
  • Buy Cheap combivent inhaler price Now Pharmacy At The Best Price! Best Drugstore.
  • Buy Cheapest chlamydia medication Now Best Internet. Cheap Online Pharmacy.
  • Buy Cheap medication micardis Now Top Online Pharmacy Supplier. Best Internet.
  • Buy Cheap shingles medication treatment Online Cheap Online Pharmacy. Pharmacy Store.
  • Buy Cheap gonorrhea drugs Now Best Online. Safe And Secure Payment System.
  • Buying Cheapest periactin price. Mexican Pharmacy, Best Prices. Best Online.
  • Buy Cheapest genital herpes medicine Now Cheap Prescription Drugs. Best Internet.
  • Buy Cheapest nabumetone 500mg Online Best Online. Online Medical Shop.
  • Buy Cheapest order roxithromycin Now 24/Online Pharmacy. WorldWide Shipping.
  • Buy Cheap how to get antibiotics for chlamydia Now No Prescription Needed. 24/Online Pharmacy.
  • Buy Cheapest valtrex medication interactions Online Discount Online Pharmacy. Best Prices.
  • Buy Cheapest south african pharmacists Now Best Online. Internet Prices For south african pharmacists!
  • Buy Cheap gout medication list Online Guaranteed Shipping. WorldWide Shipping.
  • Buy Cheapest yeast infection medicine pill Now Pharmacy At The Best Price! Best Drugstore.
  • Buy Cheapest sinus infection medications Now Cheap Pharmacy Online. Best Internet.
  • Buy Cheap candida medication Now Low Prices. Internet Prices For candida medication!
  • Buy Cheapest hypertension diuretic medications Now Cheap Pharmacy Online. WorldWide Shipping.
  • Buy Cheap health canada cholesterol Online Pharmacy Store. Buy Medications Online.
  • Buy Cheapest purchase prinivil Now Best Prices. Discount Online Pharmacy.
  • Buy Cheapest take tinidazole cheap Online Best Prices. Drugs, Health And Beauty.
  • Buy Cheap causes cholesterol lowering medications Online WorldWide Shipping. 24/Online Pharmacy.