Author |
Topic  |
|
Avengeance
Starting Member
7 Posts |
Posted - 26 May 2005 : 14:06:00
|
When trying to register as a new user on my forums, the email never gets sent. In fact, I'm not even sure an email file is being generated TO send.
I have MDaemon installed, and it's selected in the email config. I look on the MDaemon logs, and I see no attempted communcation of any kind that indicates the forum software is trying to send an email through MDaemon. What am I doing wrong? |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
Posted - 26 May 2005 : 15:48:47
|
In inc_mail.asp find where it says
case "mdaemon"
Set gMDUser = Server.CreateObject("MDUserCom.MDUser")
mbDllLoaded = gMDUser.LoadUserDll
if mbDllLoaded = False then
response.write "Could not load MDUSER.DLL! Program will exit." & "<br />"
else
Set gMDMessageInfo = Server.CreateObject("MDUserCom.MDMessageInfo")
gMDUser.InitMessageInfo gMDMessageInfo
gMDMessageInfo.To = strRecipients
gMDMessageInfo.From = strSender
gMDMessageInfo.Subject = strSubject
gMDMessageInfo.MessageBody = strMessage
gMDMessageInfo.Priority = 0
gMDUser.SpoolMessage gMDMessageInfo
mbDllLoaded = gMDUser.FreeUserDll
end if
if Err <> 0 Then
Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Err.Description & "</li>"
end if
and change it to
case "mdaemon"
on error goto 0
Set gMDUser = Server.CreateObject("MDUserCom.MDUser")
mbDllLoaded = gMDUser.LoadUserDll
if mbDllLoaded = False then
response.write "Could not load MDUSER.DLL! Program will exit." & "<br />"
else
Set gMDMessageInfo = Server.CreateObject("MDUserCom.MDMessageInfo")
gMDUser.InitMessageInfo gMDMessageInfo
gMDMessageInfo.To = strRecipients
gMDMessageInfo.From = strSender
gMDMessageInfo.Subject = strSubject
gMDMessageInfo.MessageBody = strMessage
gMDMessageInfo.Priority = 0
gMDUser.SpoolMessage gMDMessageInfo
mbDllLoaded = gMDUser.FreeUserDll
end if
if Err <> 0 Then
Err_Msg = Err_Msg & "<li>Your request was not sent due to the following error: " & Err.Description & "</li>"
end if (insert the red line)
Try to send an email. If you get an error, post it here. |
Podge.
The Hunger Site - Click to donate free food | My Blog | Snitz 3.4.05 AutoInstall (Beta!)
My Mods: CAPTCHA Mod | GateKeeper Mod Tutorial: Enable subscriptions on your board
Warning: The post above or below may contain nuts. |
 |
|
Avengeance
Starting Member
7 Posts |
Posted - 26 May 2005 : 15:51:58
|
Tried that. No error. If there was an error, the IF ERR <> 0... would have show n it.
Is there a list of properties for the gMDMessageInfo. and gMDUser. objects? |
 |
|
Talie
New Member

95 Posts |
Posted - 28 May 2005 : 13:52:45
|
I'm also having a problem with registration emails not being sent when I have the forum set "Restrict Registration" once admin has approved the registration, no email is sent .... regular registration works ok, users can email other users with no problem, password recovery works ok.... it's only when restrict registration is set that there seems to be a problem
UPDATE:
I found the answer to my problem here...
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=56802&SearchTerms=restrict+registration
i was clicking on the "Activate Account" link for individual menmbers, rather than ticking the box and using the administrator options !
..... which begs the question ..... what is the point of the link "Activate Account" if it doesn't let the user know they're approved?? |
Edited by - Talie on 28 May 2005 14:15:49 |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 30 May 2005 : 07:24:33
|
It's there so you can manually activate an account should a member have problems doing so themselves.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
Avengeance
Starting Member
7 Posts |
Posted - 31 May 2005 : 08:35:05
|
Thanks, but that doesn't answer the question I'm posing.
Nothing that has to do with sending email is working.
I found a list of properties and methods for the mdaemon object here (http://files.altn.com/MDaemon/Release/MDCOM-API.html).
Basically, what's happening, is "nothing". The page seems to load OK (the page register.asp?mode=DoIt), no error is taking place, but the email that is supposed to get sent to the newly registered user to complete his registration is never getting spooled to MDaemon.
Anyone else using MDaemon for email? I'm running the web and email server on the same box, so this should be pretty simple.
|
Edited by - Avengeance on 31 May 2005 08:41:28 |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 31 May 2005 : 08:48:53
|
quote: Originally posted by Talie Thanks, but that doesn't answer the question I'm posing.
quote: Originally posted by Talie ..... which begs the question ..... what is the point of the link "Activate Account" if it doesn't let the user know they're approved??
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
 |
|
Podge
Support Moderator
    
Ireland
3776 Posts |
|
Avengeance
Starting Member
7 Posts |
Posted - 01 June 2005 : 09:26:58
|
I don't want to open my webserver up to abuse by installing other mail software that could allow relaying or hacking. I also need to keep the amount of stuff installed and running on the system to a minimum, for efficiency sake. I'm going to add another CASE to the SELECT in the INC_MAIL.ASP page, where I can write out the email contents to a file, and shell a program I have that can send mail much the same way Outlook Express does. I'm using the program elsewhere, and it works great.
|
 |
|
|
Topic  |
|