Follow @dporton

Send SMTP Email via Gmail

Just helped someone get this sorted and thought i woulds share. The trick was to allow Less Secure apps in your account. Here is the link

Turn it on and then just use the normal CDO code.

Dim oEmail, sEmailFrom, sEmailTo, sEmailSubject, sEmailBody,sBCC

' Send email

sEmailTo = ""
sEmailFrom = ""
sEmailSubject = "Email Subject"
sEmailBody = "Email Body this is bold"
sBCC = ""

Set oEmail      = CreateObject("CDO.Message")

With oEmail
 With .Configuration.Fields
  .Item[""] = True
  .Item[""] = ""
  .Item[""] = 2
  .Item[""] = ""
  .Item[""] = "xxxxxxxxxxx"	
  .Item[""] = 465
  .Item[""] = 60
  .Item[""] = 1	
 End With
End With	

oEmail.From     = sEmailFrom
oEmail.To       = sEmailTo
oEmail.BCC      = sBCC
oEmail.Subject  = sEmailSubject
oEmail.HTMLBody = sEmailBody


set oEmail = Null

How many Session Engines ( 5.5 )

So we have created some scripts that will show us our possibly concurrency, but what does this mean and how do we work out how many session engines we will need. This article will explain, what a session engine is and why we need at least one of them. We will show you some test results that we have run with the Data Collection Load tool and some standard scripts.

Read moreHow many Session Engines ( 5.5 )

How many concurrents : Part 4

In the previous articles we designed some scripts to read the IVW log files to work out what the concurrency was, next we will write a script that will try and Estimate what sort of concurrency certain survey criteria might produce. In this article we will take all the information that we have gathered from Data Collection Users to try and produce some example loads.

Read moreHow many concurrents : Part 4

How many concurrents : Part 2

In this article we are going to create the final DMS script that we use to recode the concurrents.csv file created in the previous article into something that is richer and usable for tabulation. The final output file will  be in a DataCollection Data file ( ddf ) format. This article assumes that you have some basic knowledge of DMS and VBA scripting.

Read moreHow many concurrents : Part 2

How many concurrents : Part 1

Ever wanted to know what has been going on with your DataCollection Server Web concurrents? Interested in finding out if you are going over your limit of allowable concurrents frequently? If the answer to these questions is yes , then this set of articles is for you. In it we will show you how to look at the log files produced on your servers and calculate what has been going on and when. It should be noted that this article assumes that you have some knowledge of Data Management scripts as well as Tables scripts and VBA.

Read moreHow many concurrents : Part 1

Learn ODBC : Updating records

Now that we know how to connect , find , insert and delete records there is one more action that we will  write about in this series of articles on ODBC. As well as all the above we will need at some point in time  to know how to update a record. This article will show you how to do just that.

Read moreLearn ODBC : Updating records

Learn ODBC : Finding a record

In this second article about ODBC we will begin to explore the ADODB.Recordset object. We will take what we have learnt previously and use it to write a function that will connect to a database table using the ADODB.Connection object and find a specific record, once found we will return its id.

Read moreLearn ODBC : Finding a record

%d bloggers like this: