Posted on 10/05/2012 08:49:51
Hi Dmitrij!
1) About error:
Such error can occur because of mismatch of version number of Dll's references to other component.
Lets find it source:
a) create a handler for CheckoutDoneOrderIsComplete notification with such code
Dynamicweb.LogToFile.Log(Dynamicweb.Frontend.PageView.Current.Execution.getExecutionTable(True), "/CustomErrors", LogToFile.LogType.OneEntryPerFile, True, LogToFile.LogElements.URL)
b) after returning from payment gateway (after CheckoutDoneOrderIsComplete), add to current url new parameter: ?debug=true
first log will stored in Files/System/Log/CustomErrors, second will showed on the screen
2)Email sending
If order details isn't matter:
Dim mail As New System.Net.Mail.MailMessage()
'Set parameters for MailMessage
mail.IsBodyHtml = True
mail.Subject = "Subject"
mail.SubjectEncoding = System.Text.Encoding.UTF8
mail.From = New System.Net.Mail.MailAddress(SenderMail, SenderName, System.Text.Encoding.UTF8)
mail.To.Add(RecipientMail)
mail.BodyEncoding = System.Text.Encoding.UTF8
mail.Body = "..."
'Send mail
EmailHandler.Send(mail)
Best regards,
Vladimir