Freigeben über


Populating Your Email Inbox in Microsoft Dynamics CRM 4.0 Demo VPC

Not on your machine... Sure that others will take care of that. :-) But in the Microsoft Dynamics CRM 4.0 VPC, there is NOT a good set of emails in the inbox. Wouldn't it be nice to have a tool to help you?

Beth from RSM McGladrey has been bugging me for a couple of weeks about a script to populate the inbox in the 4.0 VPC.

After looking around the web, I found some scripts, but most of them were way too complicated. Since in the VPC we moved from Exchange to POP3 and saved some memory, we are able to use the SMTP server to send an email to the CRM Admin Mailbox.

If you want to change things, just change things inside the " marks. Just make sure that there is a closing and opening " marks.

  1: Set objMessage = CreateObject("CDO.Message") 
  2: objMessage.Subject = "I am Interested in your Products" 
  3: objMessage.From = "example1460@contoso.com" 
  4: objMessage.To = "crmadmin@contoso.com" 
  5: objMessage.TextBody = "We’ve reviewed the sample portfolio you sent us, and we like what we see. We’d like to invite you to meet with our marketing department to discuss ideas for new promotions. This would be a preliminary meeting, not a paid consultation. But we have an urgent need to improve response rates on mailings for more than a dozen products. If you like us and we like you, chances are good that you’ll walk away with an assignment to do a major package for us. I’ve enclosed control mailings for six of our most critical products. Based on your review of these mailings, we’d be interested in hearing which product you feel you could be the most successful with—and why. We want to know how you would propose to beat mailings that have worked well but are tiring recently.We’re hoping you’re available sometime next week, preferably Tuesday, Wednesday, or Thursday. Please let me know your availability so that we can set a firm time and date." 
  6: objMessage.Send

If you want the email to be emailed to you many times, you can either write a batch file or just copy this script multiple times in the same vbs file.

So to use this, just change anything you want, and then copy the contents into a NotePad file and save it as a file ending with .vbs. (So Emailer.vbs) Double click on it and away it will run. There are no prompts. Then just do a Send / Receive in Outlook to see the emails hit your Inbox. (Or Junk Mail Folder....)

You can read more about the things we are using here at: https://msdn2.microsoft.com/en-us/library/ms526914.aspx or https://www.paulsadowski.com/WSH/cdo.htm  is an excellent resource if you want to take this to the next level. :-) 

If you use this as is, attached is the script already saved as a vbs file and ready to run.

EmailPopScript.zip

Comments

  • Anonymous
    January 22, 2008
    Hi Ben, This is very helpful post. Thanks for sharing.