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

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Email Question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MaGraham
Senior Member

USA
1297 Posts

Posted - 02 August 2012 :  01:13:05  Show Profile  Reply with Quote

Is there a way to block Outlook Express, AOL, etc. from opening when a member tries to email someone from my website? I want members to be able to send email from my website only. If I can accomplish this, no one can see the recipient's email address UNLESS the recipient replies to an email. . .thus allowing me to promise to keep a member's email address private. But when Outlook Express or AOL, etc. opens, it automatically displays the email address in its window.



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley

AnonJr
Moderator

United States
5768 Posts

Posted - 02 August 2012 :  12:46:35  Show Profile  Visit AnonJr's Homepage  Reply with Quote
do you have "Email Mode" set to "on" or "off" in your Email server config?

If Email Mode is on, it will use the email component and all the other settings you filled in on the Email Server Config.

If Email Mode is off, it will post a mailto: link with the user's email address and then open in the person's default email client.

Edited by - AnonJr on 02 August 2012 12:54:01
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 02 August 2012 :  17:42:39  Show Profile  Reply with Quote



You are absolutely correct! :)

I had been working on a few things and had turned the email off and totally forgot I had not turned it back on.

My motherboard died recently (Windows 7) so I am back on an older (Windows XP) computer. I knew the email had worked perfectly before so I thought it had something to do with Windows XP. Sure glad it didn't!

Thank you so much!

Another question: How do I make the email window just a bit larger?



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 02 August 2012 :  19:00:02  Show Profile  Visit AnonJr's Homepage  Reply with Quote
I don't have the particular line numbers in front of me, but if you search pop_profile.asp and topic.asp (possibly other files depending on what MODs are installed) for "pop_mail.asp", you'll see the link is wrapped up in the Java Script function openWindow() - kinda like in one spot in pop_profile.asp:
<a href=""JavaScript:openWindow('pop_mail.asp?id=" & rs("MEMBER_ID") & "')"">Click to send an E-Mail</a>


Change openWindow( to openWindow4( to get a little more height in the pop up.

If you want to specify your own window size, go to inc_window.js and make your own variant of the openWindow() function - note: given how widely it is used elsewhere in the code, I do not recommend modifying the original openWindow().
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 03 August 2012 :  06:20:38  Show Profile  Reply with Quote


Well, that was simple! :)

Thank you, AnonJr!

Is there something just as simple to make the window a bit wider?



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 03 August 2012 :  17:06:47  Show Profile  Visit AnonJr's Homepage  Reply with Quote
For that you would have to make an additional openWindow() function with the width and height you want. When I'm not on my tablet I'll see what I can put together for instructions. How wide are you looking for?
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 04 August 2012 :  22:39:54  Show Profile  Reply with Quote


About 150 pixels more added in width would be great!

And, thank you so much!!



"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 05 August 2012 :  11:20:07  Show Profile  Reply with Quote
In "inc_header.asp"



Look for the following lines (appx 236-255), notice the lines in green.  That's the window currently being opened with height/width of 400 pixels each.  Now see the lines in red, they use height/width of 450 & 525 respectively (almost what you're requesting).  So the simplest method would be to use openWindow(5) where Anon suggested openWindow(4).

		"function openWindow(url) {" & vbNewLine & _
		"	popupWin = window.open(url,'new_page','width=400,height=400')" & vbNewLine & _
		"}" & vbNewLine & _
		"function openWindow2(url) {" & vbNewLine & _
		"	popupWin = window.open(url,'new_page','width=400,height=450')" & vbNewLine & _
		"}" & vbNewLine & _
		"function openWindow3(url) {" & vbNewLine & _
		"	popupWin = window.open(url,'new_page','width=400,height=450,scrollbars=yes')" & vbNewLine & _
		"}" & vbNewLine & _
		"function openWindow4(url) {" & vbNewLine & _
		"	popupWin = window.open(url,'new_page','width=400,height=525')" & vbNewLine & _
		"}" & vbNewLine & _
		"function openWindow5(url) {" & vbNewLine & _
		"	popupWin = window.open(url,'new_page','width=450,height=525,scrollbars=yes,toolbars=yes,menubar=yes,resizable=yes')" & vbNewLine & _
		"}" & vbNewLine & _
		"function openWindow6(url) {" & vbNewLine & _
		"	popupWin = window.open(url,'new_page','width=500,height=450,scrollbars=yes')" & vbNewLine & _
		"}" & vbNewLine & _
		"function openWindowHelp(url) {" & vbNewLine & _
		"	popupWin = window.open(url,'new_page','width=470,height=200,scrollbars=yes')" & vbNewLine & _

Edited by - Carefree on 05 August 2012 11:23:59
Go to Top of Page

MaGraham
Senior Member

USA
1297 Posts

Posted - 06 August 2012 :  17:02:05  Show Profile  Reply with Quote


That worked, Carefree!

Thank you both so much!




"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07