Author |
Topic  |
tinem
Junior Member
 
Denmark
209 Posts |
Posted - 27 November 2005 : 08:26:18
|
When you send people mails inside from the forum then you have no copy of this mail. Is there a way to save this messages? I use vers. 3.4.03.
I also have the MOD email all users. Is it possible also from here to save the mail? |
This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well. |
|
Jorrit787
Average Member
  
Netherlands
681 Posts |
Posted - 27 November 2005 : 14:21:55
|
This is not a feature by default, but you can add this code to inc_mail to have a copy of every email sent to you:
strOriginalRecipientEmail = rs("M_EMAIL")
strRecipientsName = "xxxxx"
strRecipients = "xxxxx@xxxxx.com"
strFrom = Request.Form("YEmail")
strFromName = Request.Form("YName")
strSubject = "Sent From " & strForumTitle & " by " & Request.Form("YName") & "- ADMINISTRATOR COPY"
strMessage = "Hello " & strRecipientsName & vbNewline & vbNewline
strMessage = strMessage & "This is a copy of an email message from: " & Request.Form("YName") & " (" & Request.Form("YEmail") & ")"
strMessage = strMessage & " To: " & strRName & " (" & strOriginalRecipientEmail & ")" & vbNewline & vbNewline
strMessage = strMessage & Request.Form("Msg") & vbNewline & vbNewline
%>
<!--#INCLUDE FILE="include/inc_mail.asp" -->
<% Storing the message in the database would require different modifications, but it's not impossible. |
eXtremeGossip  |
Edited by - Jorrit787 on 28 November 2005 14:20:22 |
 |
|
tinem
Junior Member
 
Denmark
209 Posts |
Posted - 28 November 2005 : 03:40:55
|
Thanks for your answer but what I was looking for was a copy of the message that YOU sent to other people. |
This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well. |
 |
|
pdrg
Support Moderator
    
United Kingdom
2897 Posts |
Posted - 28 November 2005 : 04:48:21
|
Read what Jorrit says again - he suggests having yourself added to the to: or cc: line so you recieve a copy by email the same time as they do.
hth |
 |
|
tinem
Junior Member
 
Denmark
209 Posts |
Posted - 28 November 2005 : 07:15:22
|
Sorry I misunderstood this. I'm new to ASP.
I have uploaded my file here http://www.tinemuller.dk/tine_gaia_snitz_forum/inc_mail.asp.txt. Where should I put the code and should I only change this code to my own name and e-mailaddress? quote: strRecipientsName = "xxxxx" strRecipients = "xxxxx"
What does this mean quote: %> <!--#INCLUDE FILE="include/inc_mail.asp" --> <%
|
This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well. |
Edited by - tinem on 29 November 2005 04:34:02 |
 |
|
Jorrit787
Average Member
  
Netherlands
681 Posts |
Posted - 28 November 2005 : 14:19:57
|
You will need to edit pop_mail, not inc_mail. Insert the code I posted above at approximately line 97, after this code block:
'## E-mails Message to the Author of this Reply.
if (Err_Msg = "") then
strRecipientsName = strRName
strRecipients = rs("M_EMAIL")
strFrom = Request.Form("YEmail")
strFromName = Request.Form("YName")
strSubject = "Sent From " & strForumTitle & " by " & Request.Form("YName")
strMessage = "Hello " & strRName & vbNewline & vbNewline
strMessage = strMessage & "You received the following message from: " & Request.Form("YName") & " (" & Request.Form("YEmail") & ") " & vbNewline & vbNewline
strMessage = strMessage & "At: " & strForumURL & vbNewline & vbNewline
strMessage = strMessage & Request.Form("Msg") & vbNewline & vbNewline
if strFrom <> "" then
strSender = strFrom
end if
%>
<!--#INCLUDE FILE="include/inc_mail.asp" -->
<% Yes, you will have to edit strRecipientsName and strRecipients to reflect your own name and email address.
To answer your second question: The inclusion of inc_mail is needed to actually send the message through whatever email component it is you selected.
Please edit out the brent@ email address in your post. |
eXtremeGossip  |
Edited by - Jorrit787 on 28 November 2005 14:21:29 |
 |
|
DJGray
New Member

USA
68 Posts |
Posted - 28 November 2005 : 15:24:48
|
tinem,
Since you said you're new to ASP, I'll try to explain a little more what the INCLUDE FILE statment does. You will notice at the end of it that there is a path to the inc_mail.asp file. When you use an "include" statement like this, it is essentially inserting all of the code IN that file, right where you place this include statement. Now, it may not be immediately obvious what the advantages of this are.
For starters, it make the code WAY cleaner. Imagine having the entire contents of this file literally written at this point.
Secondly, it allows you to componentize your code. You can reason to yourself, "I need a mail reader, mail writer and mail sender. Write one ASP file for each of those objects and call them as you need them.
That's the third advantage. Write the code ONCE and call it any time anywhere you need to.
Hope that helps!
|
 |
|
tinem
Junior Member
 
Denmark
209 Posts |
Posted - 29 November 2005 : 06:18:48
|
Thank you very much DJGray for the explanation and thanks to Jorrit787 for the code to use.
Now it's functioning but I have tried logging in with another name and posting a message and I also got a copy of this. Does it mean that when people in the forum send messages to each other (not to me) I will get a copy? I don't think that's a good idea because they can be writing some stuff that doesn't concern me but maybe there is nothing to do about this? |
This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well. |
 |
|
Jorrit787
Average Member
  
Netherlands
681 Posts |
Posted - 29 November 2005 : 22:19:39
|
Oh, I thought that you wanted a copy sent to the ADMINISTRATOR, in stead of the sender 
In that case someone else will have to dig through the file for you and give you that code. |
eXtremeGossip  |
 |
|
tinem
Junior Member
 
Denmark
209 Posts |
Posted - 30 November 2005 : 02:32:11
|
I have discovered that whan I try sending a mail from for instance me (pjusk - normal member) og me (admin - administrator) I don't get the normal mail from pjusk. I only get the copy to admin after insetting your code.
But this way all the other members in the forum can't sent messages to each other or has I misunderstood something, sorry.
|
This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well. |
 |
|
Jorrit787
Average Member
  
Netherlands
681 Posts |
Posted - 30 November 2005 : 18:29:32
|
The code I suggested, if installed properly, does not interfere with the sending of the original message. Are you sure you put it in the right place?
Since you have indicated that the code I gave you doesn't do what you want done, I would suggest restoring your original pop_mail until someone gives you the code that will do what you want. |
eXtremeGossip  |
 |
|
tinem
Junior Member
 
Denmark
209 Posts |
Posted - 01 December 2005 : 02:39:39
|
Have you not used the code yourself?
You can see it here http://www.tinemuller.dk/tine_gaia_snitz_forum/pop_mail.asp.txt which is my testforum.
I have put this in front of the code '## Send a copy of the mail sent from the forum.
|
This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well. |
 |
|
Jorrit787
Average Member
  
Netherlands
681 Posts |
Posted - 01 December 2005 : 14:12:32
|
You deleted some code that sends the original mail, it should look like this:
if (Err_Msg = "") then
strRecipientsName = strRName
strRecipients = rs("M_EMAIL")
strFrom = Request.Form("YEmail")
strFromName = Request.Form("YName")
strSubject = fLangN(strLangPop_Mail00080, strForumTitle & "|" & Request.Form("YName"))
strMessage = fLangN(strLangPop_Mail00090, strRName) & vbNewline & vbNewline
strMessage = strMessage & fLangN(strLangPop_Mail00100, Request.Form("YName") & "|" & Request.Form("YEmail")) & vbNewline & vbNewline
strMessage = strMessage & fLangN(strLangPop_Mail00110, strForumURL) & vbNewline & vbNewline
strMessage = strMessage & Request.Form("Msg") & vbNewline & vbNewline
if strFrom <> "" then
strSender = strFrom
end if
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<%
'## Send a copy of the mail sent from the forum.
strOriginalRecipientEmail = rs("M_EMAIL")
strRecipientsName = "Tine"
strRecipients = "tinem@email.dk"
strFrom = Request.Form("YEmail")
strFromName = Request.Form("YName")
strSubject = "Sent From " & strForumTitle & " by " & Request.Form("YName") & "- ADMINISTRATOR COPY"
strMessage = "Hello " & strRecipientsName & vbNewline & vbNewline
strMessage = strMessage & "This is a copy of an email message from: " & Request.Form("YName") & " (" & Request.Form("YEmail") & ")"
strMessage = strMessage & " To: " & strRName & " (" & strOriginalRecipientEmail & ")" & vbNewline & vbNewline
strMessage = strMessage & Request.Form("Msg") & vbNewline & vbNewline
%>
<!--#INCLUDE FILE="inc_mail.asp" -->
<% |
eXtremeGossip  |
 |
|
tinem
Junior Member
 
Denmark
209 Posts |
Posted - 02 December 2005 : 02:22:46
|
Thanks for your big help. Now it's functioning but I'm not so happy with that I will get a coy of all the mails the members are sending to each other. ONLY a copy of the mail that I sent but as you say someone else should help me if you don't know how to do this.
Are you using this functioning yourself in your forum?
The best solution would be that every member in the forum that sends a message would receive a copy of this message so all know what they have been sending and not only ME.
I don't understand that no one else have been asking for this solution and no one have made a MOD for this?
|
This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well. |
 |
|
Jorrit787
Average Member
  
Netherlands
681 Posts |
Posted - 02 December 2005 : 11:25:15
|
quote: Originally posted by tinem
Thanks for your big help. Now it's functioning but I'm not so happy with that I will get a coy of all the mails the members are sending to each other. ONLY a copy of the mail that I sent but as you say someone else should help me if you don't know how to do this.
I know how to do it, but I don't have the time to go delving through files right now.
quote: Are you using this functioning yourself in your forum?
I used it on a forum that is no longer online.
quote: The best solution would be that every member in the forum that sends a message would receive a copy of this message so all know what they have been sending and not only ME.
I don't understand that no one else have been asking for this solution and no one have made a MOD for this?
If it is made a MOD, it should be made optional - Most people can remember what they sent and what they dind't. |
eXtremeGossip  |
 |
|
tinem
Junior Member
 
Denmark
209 Posts |
Posted - 04 December 2005 : 04:33:39
|
quote: I know how to do it, but I don't have the time to go delving through files right now.
Is there a place where I can ask people for making a MOD for this?
I think that a problem with not getting a copy of the message sent inside the forum is that if you don't get an answer from the person.:-( Then you begin thinking about if the message has been sent or not. |
This account was hacked by that very honest guy, Image. Better take care with your personal data, if you register to his forums or he will hack into your account here, as well. |
 |
|
Topic  |
|