Computing.Net > Forums > Web Development > Email... continued

Email... continued

Reply to Message Icon

Original Message
Name: Jamie_McCoy
Date: April 21, 2004 at 16:38:33 Pacific
Subject: Email... continued
OS: XP Pro 5.1
CPU/Ram: Pentium 4 - 2.4Ghz, 512MB
Comment:

this is my third post on the matter, hopefully i can get exactly what i need this time

take a look at this form below

Click

i need some code that will let a user simply click send after typin in the info, and have that message sent to my hotmail account. Cant be doing with any redirections to 'post box' sites where a user then has to click confirm again

think you can help?

p.s, i know nothing of CGI or PERL, only php and java

thnxs a lot

Regards, Jamie McCoy


Report Offensive Message For Removal


Response Number 1
Name: drsmartman
Date: April 21, 2004 at 16:48:30 Pacific
Reply: (edit)

Jamie,

If you know php, have you looked at the mail()
function? It is pretty simple and straightforward.
have a look and give it a shot....if you have any
questions about it, let us know....


Report Offensive Follow Up For Removal

Response Number 2
Name: SN
Date: April 21, 2004 at 20:14:46 Pacific
Reply: (edit)

Jamie-
Can you post a link to the code like you did last time? I'll have another look at it.
-SN


Report Offensive Follow Up For Removal

Response Number 3
Name: Jamie_McCoy
Date: April 22, 2004 at 07:57:20 Pacific
Reply: (edit)

Report Offensive Follow Up For Removal

Response Number 4
Name: SN
Date: April 22, 2004 at 08:12:33 Pacific
Reply: (edit)

Your server may not have register_globals on. Try changing:
if($name) {
to
if ($_GET['name'])

Why do you pass this stuff through GET anyway? I would use POST.

I'm not sure what you're doing with the redirect thing, but I guess you want them to go to your hotmail page???

-SN


Report Offensive Follow Up For Removal

Response Number 5
Name: Jamie_McCoy
Date: April 22, 2004 at 08:35:46 Pacific
Reply: (edit)

Still not working, and im about to give up

is their anyone who already has a script which does what i want. if so could they post me it

Regards, Jamie McCoy


Report Offensive Follow Up For Removal


Response Number 6
Name: Jamie_McCoy
Date: April 22, 2004 at 08:36:28 Pacific
Reply: (edit)

tried what your said SN by the way, didnt work

instead it said something about a parse error on line 59

Regards, Jamie McCoy


Report Offensive Follow Up For Removal

Response Number 7
Name: SN
Date: April 22, 2004 at 16:11:06 Pacific
Reply: (edit)

Jamie-
I forgot to put the opening bracket:
changing:
if($name) {
to
if ($_GET['name']) {

The problem isn't the code, so far as I can tell. It is some setting or something on the server, so somebody else's code may not work either.

Luck
-SN


Report Offensive Follow Up For Removal

Response Number 8
Name: FBI Agent
Date: April 23, 2004 at 00:57:01 Pacific
Reply: (edit)

your counter is messed up on your website, it goes up by 3 whenever i refresh the site.

FBI_Agent


Report Offensive Follow Up For Removal

Response Number 9
Name: Jamie_McCoy
Date: April 23, 2004 at 03:13:10 Pacific
Reply: (edit)

thats because i have th code on the main page
the status bar at the top
and the pop up

Regards, Jamie McCoy


Report Offensive Follow Up For Removal

Response Number 10
Name: Jamie_McCoy
Date: April 23, 2004 at 03:20:10 Pacific
Reply: (edit)

Done what you said with the 'name'] thing

i now get this error

Click

Regards, Jamie McCoy


Report Offensive Follow Up For Removal

Response Number 11
Name: Jamie_McCoy
Date: April 23, 2004 at 04:41:43 Pacific
Reply: (edit)

thnx for all your help but ive found a way how to do it now

im going to use a perl script once ive had CGI enabled on my account

Regards, Jamie McCoy


Report Offensive Follow Up For Removal

Response Number 12
Name: jam14online
Date: April 23, 2004 at 12:08:08 Pacific
Reply: (edit)

I know you've probably got it sorted already, but check out my contact page. It's a home-brew PHP script by me. If you're interested, just e-mail me.

James



Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Email... continued

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge