Well i didn't modify any code , 'cept for the email id .
Besides i just need a simple send mail code, dunno if that's what you are lookign for.
Just copied and pasted the code by Russell Grice, Page 1 of this post with subject "Finally got it working"
________________________________________________
Added in references for CDO libraries and ActiveX library(although not sure if thats needed) nicked some code from MS site.
Public Function SendEMail_CDO(strFrom, strTo, strCC, strSubject, strBody)
Dim mail
Dim config
Dim fields
Set mail = CreateObject("CDO.Message")
Set config = CreateObject("CDO.Configuration")
Set fields = config.fields
With fields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 ' SMTP SERVER
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "10.1.14.64" ' IP OF SERVER
.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
.Update
End With
Set mail.Configuration = config
With mail
.From = strFrom
.To = strTo
.CC = strCC
.Subject = strSubject
.TextBody = strBody
.Send
End With
Set mail = Nothing
Set fields = Nothing
Set config = Nothing
End Function
------------------------------------------------------------------------------
Good Luck

Gina.
Besides i just need a simple send mail code, dunno if that's what you are lookign for.
Just copied and pasted the code by Russell Grice, Page 1 of this post with subject "Finally got it working"
________________________________________________
Added in references for CDO libraries and ActiveX library(although not sure if thats needed) nicked some code from MS site.
Public Function SendEMail_CDO(strFrom, strTo, strCC, strSubject, strBody)
Dim mail
Dim config
Dim fields
Set mail = CreateObject("CDO.Message")
Set config = CreateObject("CDO.Configuration")
Set fields = config.fields
With fields
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 ' SMTP SERVER
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "10.1.14.64" ' IP OF SERVER
.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10
.Update
End With
Set mail.Configuration = config
With mail
.From = strFrom
.To = strTo
.CC = strCC
.Subject = strSubject
.TextBody = strBody
.Send
End With
Set mail = Nothing
Set fields = Nothing
Set config = Nothing
End Function
------------------------------------------------------------------------------
Good Luck

Gina.