Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "smtp.mandrillapp.com"
.Item(cdoSMTPAuthenticate) = 1
.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 587
.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoBasic
.Item(cdoSendUsername) = "username"
.Item(cdoSendPassword) = "pwd"
.Update
End With
bSentBCC = False
For j = 0 To UBound(SendTo) - 1
'get email address
sMyEmail = vbNullString
If DontSend(SendTo(j)) = False Then sMyEmail = SendTo(j)
If Not sMyEmail = vbNullString Then
If ValidEmail(sMyEmail) = True Then
sPageToSend = "http://www.gopherstateevents.com/misc/pix-vids_notif.asp?event_id=" & lEventID
Set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", sPageToSend, false
xmlHttp.SetTimeouts 0, 60000, 300000, 300000
xmlhttp.send ""
EmailContents = xmlhttp.responseText
Set xmlhttp = nothing
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage
Set .Configuration = cdoConfig
.To = sMyEmail
.From = "bob.schneider@gopherstateevents.com"
.Subject = "Pictures Are Ready for " & sEventName
.HTMLBody = EmailContents
.Send
End With
Set cdoMessage = Nothing
End If
End If
Next
Set cdoConfig = Nothing
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE