Email Question

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/70256?pagenum=1
04 November 2025, 23:35

Topic


MaGraham
Email Question
02 August 2012, 01:13



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.

 

Replies ...


AnonJr
02 August 2012, 12:46


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.
MaGraham
02 August 2012, 17:42




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?

AnonJr
02 August 2012, 19:00


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:
Code:
<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().
MaGraham
03 August 2012, 06:20




Well, that was simple! :)

Thank you, AnonJr!
Is there something just as simple to make the window a bit wider?


AnonJr
03 August 2012, 17:06


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?
MaGraham
04 August 2012, 22:39



About 150 pixels more added in width would be great!

And, thank you so much!!


Carefree
05 August 2012, 11:20


In "inc_header.asp"

Code:


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 & _
MaGraham
06 August 2012, 17:02




That worked, Carefree!
Thank you both so much!


© 2000-2021 Snitz™ Communications