Hi,
i found a piece of code on the internet and it seems to work ok accept its needs an SMTP service installed on the machine. now i saw some comments that you could also use a SMTP thats running on a server.
but how can i address this server?
this is the code i'm using:
Local lcFileName,lcStr && Variables locales
Declare Integer ShellExecute In "Shell32.dll" ;
INTEGER HWnd, ;
STRING lpVerb, ;
STRING lpFile, ;
STRING lpParameters, ;
STRING lpDirectory, ;
LONG nShowCmd
lcFileName = Sys(2015)+'.mht'
oMSG = Createobject("CDO.Message")
oMSG.To = gEmTo
WAIT WINDOW gEmTo
oMSG.From = gEmFrom
oMSG.Bcc = gEmBcc
oMSG.Subject = "Hello Email"
oMSG.AddAttachment(DRVPath + HtmlFax + '\' + gType2 + '\print\' + gName)
oMSG.TextBody = "Please see attachement for the details."
oMSG.Send()
thanx,
i found a piece of code on the internet and it seems to work ok accept its needs an SMTP service installed on the machine. now i saw some comments that you could also use a SMTP thats running on a server.
but how can i address this server?
this is the code i'm using:
Local lcFileName,lcStr && Variables locales
Declare Integer ShellExecute In "Shell32.dll" ;
INTEGER HWnd, ;
STRING lpVerb, ;
STRING lpFile, ;
STRING lpParameters, ;
STRING lpDirectory, ;
LONG nShowCmd
lcFileName = Sys(2015)+'.mht'
oMSG = Createobject("CDO.Message")
oMSG.To = gEmTo
WAIT WINDOW gEmTo
oMSG.From = gEmFrom
oMSG.Bcc = gEmBcc
oMSG.Subject = "Hello Email"
oMSG.AddAttachment(DRVPath + HtmlFax + '\' + gType2 + '\print\' + gName)
oMSG.TextBody = "Please see attachement for the details."
oMSG.Send()
thanx,