Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Is it possible to hide the email address?
Old 03-18-2009, 07:46 PM Is it possible to hide the email address?
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
On my old site, Physicsguy's Reviews, there is a feedback page in where you can email me without the sender seeing my address. To make it there I just used the Freewebs editor, but I don't know how to make it work on my new site, PGReviews. I would like it so ther is a text field where you type your message and click Submit and it sends it to me. I 've tried hacking my own site and taking that code on my feedback page (the Freewebs site), and it works and all, but it runs it through my Freewebs server and that server only lets through so many emails a week. I would like it so on my new site it runs it through to me, straight to me with an email nobody can see.

Let's say my email is physicsguy@physicsguy.com (it's not) and I want an input field where you type the message you want to send to me and click Submit, like I described above. I want it to run through my own server (I use Apache to upload my stuff, if that makes any difference) and go to me.

I've tried to make myself as clear as possible, but if you still don't understand try my feedback page to get what I'm getting at. That'
s what I want on PGReviews.

Thanks!
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!

Last edited by Physicsguy; 03-18-2009 at 07:47 PM.. Reason: Typos
Physicsguy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-18-2009, 08:02 PM Re: Is it possible to hide the email address?
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
It's certainly possible, by using a server-side code. Here is an example I made using PHP:

PHP Code:
<?php
$message 
$_POST['message'];
$opinion $_POST['opinion'];
$review $_POST['review'];
$headers "From: ThePhysicsGuy"
$subject "A Message"
$sendemail "email@address.com";
$body "
Message:
$message

What user thought of the website:
$opinion

Review:
$review
"
;
if(
$_POST['submit']){
    if(
$opinion == '1') {
    
$opinion ="Yes";
    }
    if(
$opinion == '2') {
    
$opinion ="No";
    }
    if(
$opinion == '3') {
    
$opinion ="Yes, but needs work";
    }
    
mail($sendemail$subject$body$headers);
}
?>

<form method="post">
Message:<br />
<textarea name="message">
</textarea><br /><br />
Did you like the the site?<br />
<select name="opinion">
<option value="1">Yes</option>   
<option value="2">No</option>
<option value="3">Yes, but needs work</option>
</select><br /><br />
Review:<br />
<textarea name="review">
</textarea><br /><br />
<input type="submit" value="Submit" name="submit">
</form>
- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }

Last edited by stevej; 03-19-2009 at 12:32 AM..
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-18-2009, 08:08 PM Re: Is it possible to hide the email address?
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
Dang! My server doesn't support PHP! ARRGH! Thanks though!
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!

Last edited by Physicsguy; 03-18-2009 at 08:09 PM.. Reason: typos - i like to be perfect :P
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 03-18-2009, 08:37 PM Re: Is it possible to hide the email address?
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
? Sorry I don't speak that language.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 03-18-2009, 09:33 PM Re: Is it possible to hide the email address?
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
OK, I'll see if I can post some JavaScript code soon. I'm not too fluent in that JS, but I'll see what I can make. I'm usually a full proponent of server-side code, as apposed to client-side; but I guess you gotta do what you gotta do!

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-19-2009, 12:30 AM Re: Is it possible to hide the email address?
stevej's Avatar
Professional Multitasker

Posts: 996
Location: Not positive
Trades: 0
Never mind. Somewhere, I thought I saw a JavaScript function that could send mail, but I guess not. As far as I know, the only language that isn't PHP you can send mail through is perl, but you're on your own with that since I don't know a lick of perl. Unless, we could get tripy on here...

But ultimately, I would recommend that you find a different hosting provider. PHP is such a useful language, I don't know how I could possibly live without it. Not too sure how you can either.

- Steve
__________________
if($stevej == "helpful") { $talkupation += $user_power; }
stevej is offline
Reply With Quote
View Public Profile
 
Old 03-19-2009, 03:51 AM Re: Is it possible to hide the email address?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You can send mail with ASP
http://www.candsdesign.co.uk/article...-email/cdosys/

or even javascript
http://www.candsdesign.co.uk/article...pt/send-email/ though it's not reliable
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-19-2009, 08:01 AM Re: Is it possible to hide the email address?
Physicsguy's Avatar
404 - Title not found

Posts: 919
Name: Scott Kaye
Location: Ontario
Trades: 0
Thanks! I really want PHP, yes, but I'm not getting it yet.
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Old 03-19-2009, 09:45 AM Re: Is it possible to hide the email address?
Skilled Talker

Posts: 84
Trades: 0
The option I could see is first you create a js script that will serialize or encode your mail address . Assign that encoded or serialized data to a variable in another js function in your code and deserialize that variable for sending mail.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
- 1-888-869-HOST(4678)
Award winning Managed Hosting -
Please login or register to view this content. Registration is FREE

Managed Dedicated Servers. Reseller Discounts. 24/7 Impressive Tech Support
HivelocityDD is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Is it possible to hide the email address?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.92048 seconds with 12 queries