Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Mail Configuration
 Send a message activation ?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

m_r
New Member

Belarus
68 Posts

Posted - 08 October 2008 :  16:54:47  Show Profile

After the revitalization of the Director of membership

Send a message to activate membership

Welcome to our site has been subscription

How addendum ?<

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 08 October 2008 :  17:40:15  Show Profile  Visit HuwR's Homepage
no idea what you are trying to ask<
Go to Top of Page

m_r
New Member

Belarus
68 Posts

Posted - 09 October 2008 :  10:23:47  Show Profile
hi HuwR

after approval by the Department membership
Send a message
of the completion of registration<
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 09 October 2008 :  10:31:11  Show Profile  Visit Etymon's Homepage
I think he means this, "After the member's registration has been approved by the forum administrator, send a message of the completed registration". I'm not sure who he wants to send the message to though.

Here is a discussion for something like that: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=64411

<

Edited by - Etymon on 09 October 2008 10:33:48
Go to Top of Page

m_r
New Member

Belarus
68 Posts

Posted - 10 October 2008 :  19:07:30  Show Profile
hi Etymon
Wardak was very useful
My question and I
When activating the membership and the completion of registration by the Director to send a welcome message a member of the certification by the Director<
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 10 October 2008 :  20:17:12  Show Profile  Visit Etymon's Homepage
If you speak another language, someone here may be able to translate for you.

It sounds like this to me. After the Director approves the new member you want the code to automatically send an e-mail from the Director to the new member. The message to the new member may say something like "Your membership has been approved. You can use your username and password at our forums now".

In register.asp try the following:

Search for this:



Call DoCount

'## Forum_SQL - Delete the Member



Between Call DoCount and '## Forum_SQL - Delete the Member insert the following:



'## BEGIN E-mail Approval Message to the New Member.##'

if mlev = 4 then

'Note: strRecipientsName = New Member's Member Name
'Note: strRecipients = New Member's e-mail address
'Note: strFrom = Your web site's contact e-mail address
'Note: strFromName = The title of your forum
'Note: strMessage = The subject of the message
'Note: strsubject = The message you are sending.
'Note: strMessage by itself starts the string and strMessage = strMessage & adds the first part of the string to the next part.
'Note: & vbNewline is the same as <br> in HTML and & vbNewline & vbNewline is the same as <br><br> in HTML.
'Note: INCLUDE FILE="inc_mail.asp uses all of the variables above and places each variable into a script to send the mail.

strRecipientsName = chkString(rsKey("M_NAME"),"SQLString")
strRecipients = chkString(rsKey("M_EMAIL"),"SQLString")
strFrom = strSender
strFromName = strForumTitle
strsubject = strForumTitle & " Registration "
strMessage = "Hello " & chkString(rsKey("M_NAME"),"SQLString") & vbNewline & vbNewline
strMessage = strMessage & "You received this message from " & strForumTitle & " because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at " & strForumURL & vbNewline & vbNewline
strMessage = strMessage & "You can change your information at our website by selecting the ""Profile"" link." & vbNewline & vbNewline
strMessage = strMessage & "Happy Posting!" 'The message you are sending to the new member


'Note: Below is only for display on your browser to show you what the page is doing. It does not effect how the mail is sent. You can add an apostrophe before Response.Write and the code will be ignored.

Response.Write "strRecipientsName = " & strRecipientsName & "<br>"
Response.Write "strRecipients = " & strRecipients & "<br>"
Response.Write "strFrom = " & strFrom & "<br>"
Response.Write "strFromName = " & strFromName & "<br>"
Response.Write "strsubject = " & strsubject & "<br><br>"
Response.Write "strMessage = " & strMessage & "<br><br>"

'Note: inc_mail.asp is the final step and it is the code that sends out your mail.
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%

end if

'## END E-mail Approval Message to the New Member.##'


This makes your code look something like this:

			Call DoCount

'## BEGIN E-mail Approval Message to the New Member.##'

if mlev = 4 then

'Note: strRecipientsName = New Member's Member Name
'Note: strRecipients = New Member's e-mail address
'Note: strFrom = Your web site's contact e-mail address
'Note: strFromName = The title of your forum
'Note: strMessage = The subject of the message
'Note: strsubject = The message you are sending.
'Note: strMessage by itself starts the string and strMessage = strMessage & adds the first part of the string to the next part.
'Note: & vbNewline is the same as <br> in HTML and & vbNewline & vbNewline is the same as <br><br> in HTML.
'Note: INCLUDE FILE="inc_mail.asp uses all of the variables above and places each variable into a script to send the mail.

strRecipientsName = chkString(rsKey("M_NAME"),"SQLString")
strRecipients = chkString(rsKey("M_EMAIL"),"SQLString")
strFrom = strSender
strFromName = strForumTitle
strsubject = strForumTitle & " Registration "
strMessage = "Hello " & chkString(rsKey("M_NAME"),"SQLString") & vbNewline & vbNewline
strMessage = strMessage & "You received this message from " & strForumTitle & " because you have registered for a new account which allows you to post new messages and reply to existing ones on the forums at " & strForumURL & vbNewline & vbNewline
strMessage = strMessage & "You can change your information at our website by selecting the ""Profile"" link." & vbNewline & vbNewline
strMessage = strMessage & "Happy Posting!" 'The message you are sending to the new member


'Note: Below is only for display on your browser to show you what the page is doing. It does not effect how the mail is sent. You can add an apostrophe before Response.Write and the code will be ignored.

Response.Write "strRecipientsName = " & strRecipientsName & "<br>"
Response.Write "strRecipients = " & strRecipients & "<br>"
Response.Write "strFrom = " & strFrom & "<br>"
Response.Write "strFromName = " & strFromName & "<br>"
Response.Write "strsubject = " & strsubject & "<br><br>"
Response.Write "strMessage = " & strMessage & "<br><br>"

'Note: inc_mail.asp is the final step and it is the code that sends out your mail.
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%

end if

'## END E-mail Approval Message to the New Member.##'

'## Forum_SQL - Delete the Member


I added notes to the additional code so you can understand what is going on in the code. The notes won't effect the process.<

Edited by - Etymon on 10 October 2008 20:35:30
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 11 October 2008 :  10:00:49  Show Profile  Visit HuwR's Homepage
doesn't the forum already do this ?<
Go to Top of Page

m_r
New Member

Belarus
68 Posts

Posted - 12 October 2008 :  12:43:30  Show Profile
Very good
Thank you for your very
<
Go to Top of Page

m_r
New Member

Belarus
68 Posts

Posted - 12 October 2008 :  12:48:24  Show Profile
It is working well<
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 12 October 2008 :  14:15:25  Show Profile  Visit Etymon's Homepage
You are very welcome m_r

Huw, I don't think it does send an e-mail upon a forced approval. At least, not where I was working on the code. I did my test using a standard Snitz offline, created my test account offline with a bogus e-mail address. Then I logged in as the Forum Admin, saw the new bogus account in the members pending area and clicked on the Activate Account link. The note at the top of the list said this ... NOTE: The following table will show you a list of registered users that are waiting to be authenticated.

My settings were as follows:

1) Main Forum Configuration:

- Prohibit New Members: Off
- Require Registration: Off

2) Email Server Configuration

- E-mail Mode: On
- Require Unique E-mail: On
- E-mail Validation: On
- Restrict Registration: Off
- Require Logon for sending Mail: On
<

Edited by - Etymon on 12 October 2008 14:23:19
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 12 October 2008 :  15:32:55  Show Profile  Visit HuwR's Homepage
my mistake, I thought you were talking about authorising pending members rather than activating, the two are not the same.

however, I would be interested in knowing how you figured out they don't get an email if by your own admission you used a bogus email addres <
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 12 October 2008 :  20:52:20  Show Profile  Visit Etymon's Homepage
Haven't tested out the bogus e-mail part. Just went off of m_r's criteria and a hunch of how to get him what he wanted. LOL!<
Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 13 October 2008 :  21:37:47  Show Profile  Visit Etymon's Homepage
I do not understand your question exactly, but it sounds like you want to modify the behavior of the standard design. If my translation is correct, your question is not appropriate for the (Help: Mail Configuration) forum. Instead, your question should go in the (MOD Add-On Forum W/O Code) forum.<

Edited by - Etymon on 13 October 2008 21:41:30
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07