*** Send Email Confirmation
IF !llPrintOnly
loIP = CREATE("wwIPStuff")
loIP.cMailServer=Config.cMailServer
loIP.cSenderEmail=Config.cMailFromEmail
loIP.cSenderName=Config.cMailFrom
loIP.cCCList = Config.cMailCC
loIP.cRecipient = oCust.Email
loIP.cSubject = "West Wind Technologies Order Confirmation: " + oInv.Invno*** Mail Confirmation has custom HTML text and embeds invoice
loIP.cMessage = loEval.MergeText(File2Var(Config.cHTMLPagePath + "templates\mailconfirmation.wc") )loIP.cContentType = "text/html"
loIP.SendMailAsync()
Response.ExpandTemplate( Config.cHTMLPagePath + "orderconfirmation.wws")
ELSE
Response.ExpandTemplate( Config.cHTMLPagePath + "printorder.wws")
Change the class to wwSmtp and it will likely work as is...
+++ Rick ---
The below code is from the web store.. doesn't the new way use something different? anyway it errored saying wwipstuff not found.. I included setpaths.prg in my project.. then it found wwipstuff... shouldn't setpaths be included by default into newly created projects in beta 6?
*** Send Email Confirmation
IF !llPrintOnly
loIP = CREATE("wwIPStuff")
loIP.cMailServer=Config.cMailServer
loIP.cSenderEmail=Config.cMailFromEmail
loIP.cSenderName=Config.cMailFrom
loIP.cCCList = Config.cMailCC
loIP.cRecipient = oCust.Email
loIP.cSubject = "West Wind Technologies Order Confirmation: " + oInv.Invno*** Mail Confirmation has custom HTML text and embeds invoice
loIP.cMessage = loEval.MergeText(File2Var(Config.cHTMLPagePath + "templates\mailconfirmation.wc") )loIP.cContentType = "text/html"
loIP.SendMailAsync()
Response.ExpandTemplate( Config.cHTMLPagePath + "orderconfirmation.wws")
ELSE
Response.ExpandTemplate( Config.cHTMLPagePath + "printorder.wws")
West Wind Technologies
Making waves on the Web
from Maui
Change the class to wwSmtp and it will likely work as is...
+++ Rick ---
The below code is from the web store.. doesn't the new way use something different? anyway it errored saying wwipstuff not found.. I included setpaths.prg in my project.. then it found wwipstuff... shouldn't setpaths be included by default into newly created projects in beta 6?
*** Send Email Confirmation
IF !llPrintOnly
loIP = CREATE("wwIPStuff")
loIP.cMailServer=Config.cMailServer
loIP.cSenderEmail=Config.cMailFromEmail
loIP.cSenderName=Config.cMailFrom
loIP.cCCList = Config.cMailCC
loIP.cRecipient = oCust.Email
loIP.cSubject = "West Wind Technologies Order Confirmation: " + oInv.Invno*** Mail Confirmation has custom HTML text and embeds invoice
loIP.cMessage = loEval.MergeText(File2Var(Config.cHTMLPagePath + "templates\mailconfirmation.wc") )loIP.cContentType = "text/html"
loIP.SendMailAsync()
Response.ExpandTemplate( Config.cHTMLPagePath + "orderconfirmation.wws")
ELSE
Response.ExpandTemplate( Config.cHTMLPagePath + "printorder.wws")
+++ Rick ---
Thanks Rick...
Change the class to wwSmtp and it will likely work as is...
+++ Rick ---
The below code is from the web store.. doesn't the new way use something different? anyway it errored saying wwipstuff not found.. I included setpaths.prg in my project.. then it found wwipstuff... shouldn't setpaths be included by default into newly created projects in beta 6?
*** Send Email Confirmation
IF !llPrintOnly
loIP = CREATE("wwIPStuff")
loIP.cMailServer=Config.cMailServer
loIP.cSenderEmail=Config.cMailFromEmail
loIP.cSenderName=Config.cMailFrom
loIP.cCCList = Config.cMailCC
loIP.cRecipient = oCust.Email
loIP.cSubject = "West Wind Technologies Order Confirmation: " + oInv.Invno*** Mail Confirmation has custom HTML text and embeds invoice
loIP.cMessage = loEval.MergeText(File2Var(Config.cHTMLPagePath + "templates\mailconfirmation.wc") )loIP.cContentType = "text/html"
loIP.SendMailAsync()
Response.ExpandTemplate( Config.cHTMLPagePath + "orderconfirmation.wws")
ELSE
Response.ExpandTemplate( Config.cHTMLPagePath + "printorder.wws")
West Wind Technologies
Making waves on the Web
from Maui
Honestly, my boss wanted to do this in meteor/mongo.. I convinced him I could do it just as fast with the west-wind store... He actually really likes this little store.... http://70.61.231.5/wwstore and it wont take long to make it a SPA app.. or just 2 or 3 pages..
Thanks
JimM
I probably should update the store to work with current tools, but it's been so long since any work was done on it and there's been very little interest in it I'm not sure it's worth it. The code for most of the store is fine, but all the UI stuff is - welll out of date to say the least :-)
+++ Rick ---
Thanks Rick...
Change the class to wwSmtp and it will likely work as is...
+++ Rick ---
The below code is from the web store.. doesn't the new way use something different? anyway it errored saying wwipstuff not found.. I included setpaths.prg in my project.. then it found wwipstuff... shouldn't setpaths be included by default into newly created projects in beta 6?
*** Send Email Confirmation
IF !llPrintOnly
loIP = CREATE("wwIPStuff")
loIP.cMailServer=Config.cMailServer
loIP.cSenderEmail=Config.cMailFromEmail
loIP.cSenderName=Config.cMailFrom
loIP.cCCList = Config.cMailCC
loIP.cRecipient = oCust.Email
loIP.cSubject = "West Wind Technologies Order Confirmation: " + oInv.Invno*** Mail Confirmation has custom HTML text and embeds invoice
loIP.cMessage = loEval.MergeText(File2Var(Config.cHTMLPagePath + "templates\mailconfirmation.wc") )loIP.cContentType = "text/html"
loIP.SendMailAsync()
Response.ExpandTemplate( Config.cHTMLPagePath + "orderconfirmation.wws")
ELSE
Response.ExpandTemplate( Config.cHTMLPagePath + "printorder.wws")