PDA

View Full Version : Smtp


teh_fonx
12-20-03, 07:28 PM
Not really sure if thas the right topic question, but here it goes, i have recruting site, this particulair page uses a submit form http://www.geocities.com/twelveinchproductions/join_up.html, now when the visitors want to submit their info they mouse over the stamps, my problem is that i dont want it to send the information via their email, but rather through a smpt (or atleast i think thats what i want). Any help would be apprecaited, also post if what i said make absolutely no logical sense because i wouldnt be suprized if that was the case.

snaip
12-21-03, 12:09 AM
Greetings,

If you want info to be sent to your via email using smtp, then your host should support server-side scripting like PHP, ASP, CGI. And I fear that geocities.com doesn't.

Instead, you can remotely use services from other site. For example, you can sign up a free account at bravenet.com and use their Email Forms:

http://www.bravenet.com/webtools/emailfwd/index.php

I hope that helps...

teh_fonx
12-21-03, 12:58 AM
thnx, the site is not going to stay on geocities, i just uploaded it there because i have no clue how to work the ftp on my globat acct. I have a domain name with globat, its www.w-i-m-p.net, i they should support server side sripting right ?

sorry im really knew to these things. Could you perhaps elaborate on how to set all that up, i would appreaciate that, or atleast a push me in the direction of a guide of some sort.

thnx in advance.

Asteryus
12-21-03, 01:15 AM
Ok, just to maybe speed things up, here is our exact webspace package:

http://www.globat.com/packages/index.php?packages=budgetPackage

if you could maybe take a quick look at this if you geta chance and see if anything there resembles anything we need, we would appreciate it. I would assume they have it but I really don't know.

And again, thnx for the help.

snaip
12-21-03, 02:23 AM
Yes, your hosting plan supports MS FrontPage 2002, Flash, MYSQL, PHP4, PERL5 and SSI Support.

I had had a quick talk with the support at globat, and they pointed out that they support formmail.php. Would recommend you going through this tutorial:

http://support.globat.com/kb/index.php?page=index_v2&id=115&c=4

Let me know if you need anything else!

Asteryus
12-21-03, 02:32 AM
Hey, thanks a lot. We really appreciate all this help. I mean, what can I say except you've really made this precoss a lot easier for us and well thank you.

snaip
12-21-03, 02:52 AM
You're most welcomed! Give me a shout whenever you need my help! ;)

teh_fonx
12-21-03, 03:10 AM
i cant even express how much you helped out. Once aggain thanx, and u can be sure well be buggina ya if we run into any more road blocks :)

Asteryus
12-21-03, 01:25 PM
Well, that was quick before we ran into another problem. Anyway, we followed those instructions and have set it whole php script as we should, but it still doesn't send anything. Our site is:

http://www.w-i-m-p.net/test_form.html

and in that php file we put:

$referers = array('www.w-i-m-p.net', 'globat.com' 'w-i-m-p.net', '203.22.204.87');

which is the only place that has to be edited. According to all the instructions, FAQ's, and message boards i've read this should do it, but there is still something wrong. I really hate to bug you again, but if you happen to have a second if you could maybe take a quick look and see if you can see any errors. Again, thanks for all the help.

snaip
12-21-03, 10:32 PM
Hi,

Try this:

Open the file formmail.php and edit line 481 replacing the email@example.com with the email address you want the content of the form to be emailed to you...

Let me know if it works...

snaip
12-21-03, 10:42 PM
If it still doesn't work, use this one:


<?php

$msg = "Sender Name:\t$Name.......\n";
$msg .= "Sender E-Mail:\t$Email......\n";
$msg .= "Position:\t$Position...\n";
$msg .= "Experience:\t$Experience.\n";


$recipient = "asteryus@w-i-m-p.net";
$subject = "Feedback from www.w-i-m-p.net";

$mailheaders = "From:$Email......\n";
$mailheaders .= "Reply-To:$Email......\n\n";

mail($recipient, $subject, $msg, $mailheaders);
header("Location: http://www.w-i-m-p.net/contactthanks.html");

?>


Replace the php code in the formmail.php with the above. And also create a thanks page, and save it at the URL: http://www.w-i-m-p.net/contactthanks.html

teh_fonx
12-22-03, 12:39 AM
Well, believe it or not we actually got it to work today, its pretty much doing all we wanted it to do except for a few minor gliches, namely when we recieve the email it seems that there is code outside of what we inteded because we get 3 extra lines in the emails not tied to any of our text boxes or buttons, these 3 extra lines are as follows

x: 20
y: 66
email: email@example.com

-----------------------------------

this is the entire mesage we recieve in each email after somebody sumbits their info:

Below is the result of your feedback form. It was submitted by email@example.com on December 21st, 2003 at 09:25PM (PST).

Name_______:: sam g
Email______:: sam_g@hotmail.net
Position___:: Animator
Experience_:: asdf
x: 20
y: 66
email: email@example.com

and we cant quite firugre out where the 3 bottom lines are comming from, not really a big issue, but if you have any idea where its comming from that would be great.

Also once aggain i wanted to thank you, your help has been invaluable, i dont know where we would be without your guidance.

p.s if you care to check out the website. www.W-I-M-P.net. The form is in the join up page.

snaip
12-22-03, 08:44 AM
Oops, had a look to see where those are coming from; but really can't understand the code.

But as you said, it's not a big issue, as long as you are getting content from the form emailed to you.

The PHP code that I posted earlier would solve this problem, and email you only content from you form. Maybe you can give it a try and see..

Btw, no need for thanks! ;) You're always most welcomed!

Asteryus
12-23-03, 01:38 AM
cutally it wasn't that. If you look at my code below, I am missing a comma in between 'globat.com' and 'w-i-m-p.net' and I think that was the whole problem.


$referers = array('www.w-i-m-p.net', 'globat.com' 'w-i-m-p.net', '203.22.204.87');


Again, thanks for all your help. You've been a huge help.

snaip
12-23-03, 05:39 AM
Wow, finally found the bug! ;)

teh_fonx
12-27-03, 08:00 PM
sorry for the late, reply, but we were able to finnaly get it to work. Thanks for your help, we couldn't have done it without you.

snaip
12-27-03, 09:37 PM
Glad to know it's working... If you need more help, post here, or you'll find my IM contacts in my profile, and just buzz me!