Author |
Topic  |
|
JohnC
Junior Member
 
215 Posts |
Posted - 13 March 2006 : 19:02:14
|
Can someone please help possibly point out a mistake in the following code:
<%
strOriginalRecipientEmail = rs("M_EMAIL")
strRecipientsName = "Some Forums"
strRecipients = "email@someforums.com"
strFrom = Request.Form("YEmail")
strFromName = Request.Form("YName")
strSubject = "Email by " & Request.Form("YName") & " to " & strRName
strMessage = "Email from " & strRecipientsName & vbNewline & vbNewline
strMessage = strMessage & "From: " & Request.Form("YName") & " (" & Request.Form("YEmail") & ")" & vbNewline & vbNewline
strMessage = strMessage & "To: " & strRName & " (" & strOriginalRecipientEmail & ")" & vbNewline & vbNewline
strMessage = strMessage & Request.Form("Msg") & vbNewline & vbNewline
strMessage = strMessage & Request.ServerVariables("remote_addr") & " " & Now() & " Server Time" & vbNewline & vbNewline
%> The code uses inc_mail.asp as an include. It is not sending email and not producing an error. It was working at some point but quit upon a move to a new server. All other email functions still work fine. |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 13 March 2006 : 19:06:36
|
What component are you using to send the email? |
Support Snitz Forums
|
 |
|
JohnC
Junior Member
 
215 Posts |
Posted - 13 March 2006 : 21:48:13
|
inc_mail.asp, and everything associated with my inc_mail (subscriptions, registration, email member, etc) is working just fine. |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 14 March 2006 : 01:25:13
|
Ok. That didn't answer my question. Let me ask another: what email component do you have selected in your Email Configuration in your Admin Options?
Is this forum code that you modified? Can you post a link to a txt version of your file so we can take a look at the whole code? |
Support Snitz Forums
|
 |
|
JohnC
Junior Member
 
215 Posts |
Posted - 14 March 2006 : 13:43:56
|
Sorry, I am using CDOSYS. That is all I have available to me. I will try to figure out a way to get you the code. In the meantime, I take it you don't see any errors in the code that I posted? |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 14 March 2006 : 15:45:38
|
No I don't see any problems with your code. So I am looking at what other changes you made to the code on the page.
If you use a unmodified version of the pop_mail.asp file, does it work? If it does, then we can narrow it down specifically to the changes you made to it. |
Support Snitz Forums
|
 |
|
JohnC
Junior Member
 
215 Posts |
Posted - 15 March 2006 : 22:32:04
|
I found my problem on this. Thanks for your help, Davio! You can probably delete this topic as I don't see it offering any help to anyone else. |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 16 March 2006 : 00:29:46
|
Well, you could at least let me know what the problem was, instead of leaving me wondering what was wrong.  |
Support Snitz Forums
|
 |
|
|
Topic  |
|