Your browser does not seem to support CSS. If images appear below, please disregard them.
It appears that you're running an Ad-Blocker. This site is monetized by Advertising and by User Donations; we ask that if you find this site helpful that you whitelist us in your Ad-Blocker, or make a Donation to help aid in operating costs.
Previous Thread
Next Thread
Print Thread
Rate This Thread
#18984 - 06/08/02 01:22 AM PHP form processing troubles.  
Joined: Mar 2002
Posts: 562
Le4rner Offline
UGN Supporter
Le4rner  Offline
UGN Supporter

Joined: Mar 2002
Posts: 562
I am trying to do a form (mostly for prctice) that will e-mail a freind the link to a site. HTML and PHP I have is listed below.

I am a bit lost as to what I am doing wrong.

HTML
Code:
 <html>
<head>
<title>Form</title>
</head>


<body bgcolor="#FFFFFF">
<FORM ACTION="test.php" METHOD="POST">
Your Freinds name

<INPUT TYPE="text" NAME="name" SIZE="20" MAXLENGTH="30">



Your Name

<INPUT TYPE="text" NAME="freind" SIZE="20" MAXLENGTH="30">



Their e-mail address


Your message about this site

<INPUT TYPE="text" NAME="message" SIZE="50" MAXLENGTH="90">




<INPUT TYPE="submit" VALUE="Send it!">

</FORM>

</body>


</html>
 
test.php
Code:
 <?php
mail ("$email", "$name... $freind wants you to check this site", "$message !n http://rrfn.promodtecnologies.com !");
?> 

Sponsored Links
#18985 - 06/08/02 02:36 AM Re: PHP form processing troubles.  
Joined: Mar 2002
Posts: 562
Le4rner Offline
UGN Supporter
Le4rner  Offline
UGN Supporter

Joined: Mar 2002
Posts: 562
Okay I got it sort of working, but when I get the e-mails it shows [email protected] (My ISP) as the return address. I wana have it so the sender puts in their e-mail (ha ha ha yea right) and it lists that as the return address. anyone able to help with this?

#18986 - 06/15/02 02:56 AM Re: PHP form processing troubles.  
Joined: Mar 2002
Posts: 143
olosoft Offline
Member
olosoft  Offline
Member

Joined: Mar 2002
Posts: 143
.
hmm, i dont know how this sendmail thing works, but when i was playing around with SR's anonimailer which uses winsock and shit, i couldnt get it to send any emails becuase nowadays most prohibit relaying. but when i finaly found a server that worked it also did the same thing with my IP in the email address. so i tried a few other servers and i finaly found one that displayed the from address like i wanted.

basicaly, i think its how the server handels the from address and it varies depending on the server. if you can figure out how, try to change the server that sendmail uses. here are a few servers that i found support relaying and display the from address correctly:

webmaster.logifruit.es
mail.hnair.com
210.217.43.1
hmi.west163.com
203.227.132.1
public.anshan.cngb.com
sigit.co.kr
195.5.21.177
211.100.8.43
cmas-tj.cablemas.com

#18987 - 06/15/02 03:17 AM Re: PHP form processing troubles.  
Joined: Feb 2002
Posts: 7,195
Gremelin Offline
Community Owner
Gremelin  Offline

Community Owner

Joined: Feb 2002
Posts: 7,195
Likes: 3
Portland, OR; USA
SendMail is for linux heh... Its a lot easier to use than smtp hehe...

basically you tell it what you want and you do it, i mean you reged your nick and got an email from Gizmo[at]undergroundnews[dot]com do you really think that i sent every one?


Donate to UGN Security here.
UGN Security, Back of the Web, and VNC Web Services Owner
#18988 - 06/15/02 01:11 PM Re: PHP form processing troubles.  
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage  Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
ya, I think my anonimailer announces itself as localhost. It doesn't give it's IP, but the recieving SMTP server may record it anyway. I didn't realize that not all servers did this.


Domain Registration, Hosting, Management
http://www.dollardns.net
Sponsored Links
#18989 - 06/17/02 07:53 AM Re: PHP form processing troubles.  
Joined: Mar 2002
Posts: 562
Le4rner Offline
UGN Supporter
Le4rner  Offline
UGN Supporter

Joined: Mar 2002
Posts: 562
I got it working now. There where some headers I had to include. But now you can heh, tell it what e-mail address you are sending from and who to e-mail, type in a message....

Bada bing it's out there. Pretty cool actualy. I knew how to spoof e-mails in telenet... Now I have a progy that makes it easier.....

Nah, actualy I have mine set up as a send your buddy a link to this site script.

If anyone abuses it I can easily track them down. Plus you can find out what server a e-mail came from just buy looking at the full header of an e-mail.


Member Spotlight
Gremelin
Gremelin
Portland, OR; USA
Posts: 7,195
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums45
Topics46,816
Posts81,986
Average Daily Posts11
Members2,159
Most Online1,567
Apr 25th, 2010
Latest Postings
Top Posters(All Time)
UGN Security 39,980
Gremelin 7,195
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Liked Users (All Time)
§intå× Likes: 1
Cold Sunn Likes: 1
Crime Likes: 1
Cyrez Likes: 1
Ghost Likes: 1
Gremelin Likes: 4
Ice Likes: 1
unreal Likes: 1
Top Liked Users (30 Days)
Powered by UBB.threads™ PHP Forum Software 7.6.0
(Snapshot build 20160902)