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: General / Classic ASP versions(v3.4.XX)
 Send e-mail - possible to save the message?
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 04 December 2005 :  05:16:55  Show Profile  Visit Roger Fredriksson's Homepage
Why not just replace your adress in the copy-function above with the senders adress? Wouldn´t that do the trick?

rf/www.avgifter.com
Go to Top of Page

tinem
Junior Member

Denmark
209 Posts

Posted - 04 December 2005 :  08:09:04  Show Profile  Send tinem an ICQ Message
I'm not sure what you mean? What I want:

A sent a message to B and A got a copy of this message so he can see what he has sent to B

S sent a message to T and S got a copy of his message so he can see what he has sent to T

and so on.


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.
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 04 December 2005 :  09:07:59  Show Profile  Visit Roger Fredriksson's Homepage
Yes, that was what I understood before trying to give you a hint how to do it. I understnd that the changes you have made results in you getting a copy of every sent email via the forum - true?. If that is tru you just you retrieve A:s email - say a2a@jcv.com - and then replace strRecipients = "tinem@email.dk" in the code above with strRecipients = "a2a@jcv.com" then A will get a copy of what she/he sent.


rf/www.avgifter.com
Go to Top of Page

tinem
Junior Member

Denmark
209 Posts

Posted - 04 December 2005 :  11:45:07  Show Profile  Send tinem an ICQ Message
quote:
Originally posted by Roger Fredriksson

Yes, that was what I understood before trying to give you a hint how to do it. I understnd that the changes you have made results in you getting a copy of every sent email via the forum - true?.


Yes.

quote:
If that is tru you just you retrieve A:s email - say a2a@jcv.com - and then replace strRecipients = "tinem@email.dk" in the code above with strRecipients = "a2a@jcv.com" then A will get a copy of what she/he sent.


I can't see the light, sorry. What if the forum has 100 members?

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.
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 04 December 2005 :  12:14:58  Show Profile  Visit Roger Fredriksson's Homepage
The number of members doesn´t matter. Now you are using
strRecipients = "tinem@email.dk"
strFrom = Request.Form("YEmail")

change that to
strRecipients = Request.Form("YEmail")
strFrom = Request.Form("YEmail")

The only reason for me to doubt that this solves your problem is that Jorrit did not suggest it. He or someone else ASP-er could step in and correct me if I am wrong. Meanwhile, why not test it?
---
I do not have time right now to see how inc_mail works but I suppose it is even easier to send a copy to sender as I do in my CDONT like this sendmail.cc ="copy@avgifter.com"

rf/www.avgifter.com

Edited by - Roger Fredriksson on 04 December 2005 12:30:44
Go to Top of Page

tinem
Junior Member

Denmark
209 Posts

Posted - 05 December 2005 :  02:46:21  Show Profile  Send tinem an ICQ Message
Sorry to tell that it's not functioning. NO MAIL at all is sent.:-)

And what about strRecipientsName = "Tine"?

If I not got the problem solved here do you know of another place where I can ask for help to 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.
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 05 December 2005 :  04:38:53  Show Profile  Visit Roger Fredriksson's Homepage
Did the code that Jorrit suggested generate two mails, one mail was sent to the adress "YEmail" and one was sent to you ("tinem@email.dk")? Please forward the resulting email to support@avgifter.com

strRecipientsName = "Tine" is only a way to later write a more personal message and has nothing to do with the issue.

This is definitly the place where you could get the help you need. Snitzers, please step in and explain why it is not working.

rf/www.avgifter.com
Go to Top of Page

tinem
Junior Member

Denmark
209 Posts

Posted - 05 December 2005 :  06:44:19  Show Profile  Send tinem an ICQ Message
HURRA! It's functioning now. I tried it again with another memberacount from TDC and it worked. Before I tried with an Hotmail acount and I think the problem could be that you have to wait a lot for a mail sent from Hotmail.

Thanks a lot for your help. Now maybe we just have to delete - strRecipientsName = "Tine"? - Or do you know how to make this showing the membersname and NOT "Tine"?

Is there some drawback using this new feature?

I think you should make this a MOD because I'm sure a lot of other people would like to have this feature.

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 05 December 2005 06:50:44
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 05 December 2005 :  07:57:54  Show Profile  Visit Roger Fredriksson's Homepage
Glad to hear that. Replace strRecipientsName = "Tine" with strRecipientsName = strRName and have a look at the lines once more and I sure that you understand how it works.

I hope you do not mind but I also recommend you to learn a little bit about the basics of ASP, a very good book is Beginning Active Server Pages 3.0, more info on www.wrox.com.

rf/www.avgifter.com

Edited by - Roger Fredriksson on 05 December 2005 07:58:54
Go to Top of Page

tinem
Junior Member

Denmark
209 Posts

Posted - 05 December 2005 :  09:00:30  Show Profile  Send tinem an ICQ Message
I have tried learning ASP and have been following a course but I think it's very difficult to understand, sorry.:-(

strRecipientsName = strRName - this is NOT functioning. The copy that was sent to the member "test" says "Hello admin" and it should be have been "Hello test". "admin" was the member the original mail was sent to. So now what to do? I can understand that even for a used programmar in ASP it's not always so easy.:-)

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.
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 05 December 2005 :  10:17:16  Show Profile  Visit Roger Fredriksson's Homepage
Look at the lines constituting the information in the emails again and I am sure that you can figure out yourself what changes needed to be done (replace "Hello " & strRecipientsName & vbNewline & vbNewline with "Hello " & Request.Form("YName") & vbNewline & vbNewline).

By the way, I am not close to be one who would say that I know how to ASP - that would almost be insulting to real coders and programmers. I am just a little bit more then a Cutting and Pasting guy but I learn a lot from the real ASP:ers in this forum - still I am absolutely convinced that you need to know basics before starting to experimenting with the code. On the other hand you will get far by just downloading and running and really analyze small changes - like the one above- so you understand why it works or not.

rf/www.avgifter.com
Go to Top of Page

tinem
Junior Member

Denmark
209 Posts

Posted - 06 December 2005 :  04:55:45  Show Profile  Send tinem an ICQ Message
Thanks for your reply. I have now printed out the codes and found some other text that I have changed and now everything is working the way it should. Now I just have to translate it to danish but I give the code down here which is functioning the way it should so other people can use it.

quote:
'## Sends a copy of the mail sent from the forum to the sender
strOriginalRecipientEmail = rs("M_EMAIL")
strRecipientsName = strRName
strRecipients = Request.Form("YEmail")
strFrom = Request.Form("YEmail")

strFromName = Request.Form("YName")
strSubject = "Sent From " & strForumTitle & " by " & Request.Form("YName") & " - COPY OF THE MESSAGE"
strMessage = "Hello " & Request.Form("YName") & 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" -->
<%

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.
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 06 December 2005 :  06:01:21  Show Profile  Visit Roger Fredriksson's Homepage
OK, I say that you have made your first "mod" - congrats! It is a great feeling to get the code to behave as you want it to - no matter on what ASP-level we are. ;)

rf/www.avgifter.com
Go to Top of Page

Nijii
Starting Member

Greenland
49 Posts

Posted - 25 February 2007 :  00:54:37  Show Profile  Visit Nijii's Homepage
I made some changes in pop_mail.asp so that I could get copies of mails sent from the forum. The strange thing is that the second part in red is received whilst the first part is not sent to the recipient. I then deleted the second part in red and then the reciepient could recieve the mial.

Why is it not sending to both?

'## E-mails Message to the Author of this Reply.
if (Err_Msg = "") then

strRecipientsName = strRName
strRecipients = strREmail
strFrom = YEmail
strFromName = YName
strSubject = "Sent From " & strForumTitle & " by " & YName
strMessage = "Hello XXX" & strRName & vbNewline & vbNewline
strMessage = strMessage & "You received the following message from: " & YName & " (" & YEmail & ") " & vbNewline & vbNewline
strMessage = strMessage & "At: " & strForumURL & vbNewline & vbNewline
strMessage = strMessage & Request.Form("Msg") & vbNewline & vbNewline

if strFrom <> "" then
strSender = strFrom
end if
'## Send a copy of the mail sent from the forum.
strRecipientsName = "my name"
strRecipients = "xxxxx@mydomain.com"
strFrom = YEmail
strFromName = YName
strSubject = "Sent From " & strForumTitle & " by " & YName
strMessage = "Hello yyy" & strRName & vbNewline & vbNewline
strMessage = strMessage & "You received the following message from: " & YName & " (" & YEmail & ") " & vbNewline & vbNewline
strMessage = strMessage & "At: " & strForumURL & vbNewline & vbNewline
strMessage = strMessage & Request.Form("Msg") & vbNewline & vbNewline
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 25 February 2007 :  03:45:42  Show Profile  Visit Roger Fredriksson's Homepage
I would try by including <!--#INCLUDE FILE="inc_mail.asp" --> twice, one before the red part and on after.

rf/www.avgifter.com
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07