gwbush,
Here ya go. These instructions are for the webwizjournal application, but it should be very similar for other webwiz applications.
First you will need to edit the setup_email_notification.asp file. At about line 220 you will need to insert this line of code. This will add the Mdaemon option to your email component list.
<option value="Mdaemon"<% If strMailComponent = "Mdaemon" Then Response.Write(" selected") %>>Mdaemon</option>
You can add it right after this line:
<option value="AspMail"<% If strMailComponent = "AspMail" Then Response.Write(" selected") %>>AspMail</option>
Next you will need to edit the send_mail_function_inc.asp file.
At about line 60 you will need to enter this code:
Dim objMDUser 'Holds the Mdaemon email object
Dim objMDMessageInfo 'Holds Mdaemon message information
You can insert the above code immediately after this line:
Dim objAspMail 'Holds the Server Objects AspMail email object
At about line 235 you will need to add this code:
'Mdaemon component
Case "Mdaemon"
'Create the e-mail server object
Set objMDUser = Server.CreateObject("MDUserCom.MDUser")
objMDUser.LoadUserDll
Set objMDMessageInfo = Server.CreateObject("MDUserCom.MDMessageInfo")
'Who the e-mail is from
objMDMessageInfo.From = strEmailAddress
'Who the e-mail is sent to
objMDMessageInfo.To = strEmailAddress
'The subject of the e-mail
objMDMessageInfo.Subject = strSubject
'The message type
objMDMessageInfo.ContentType = "text/html"
'The main body of the e-mail
objMDMessageInfo.MessageBody = strEmailBody
'Send the e-mail
objMDUser.SpoolMessage objMDMessageInfo
'Unload DLL
objMDUser.FreeUserDll
The above code will be inserted immediately after this line of code:
'Close the server mail object
Set objAspMail = Nothing
Hope that helps! I have used this code in both the journal and guestbook applications. Other applications may use different file names- but should be pretty easy to locate. I have used this with Mdaemon version 5 on up to 6.8.5. I'm confident it will continue to work with version 7 of Mdaemon as well (due out in March).
