Click to See Complete Forum and Search --> : sending mail - my own, or script?


Sul
10-23-2003, 02:18 PM
Hi

I was wondering - should I use an already written script that sends mail from a website, or write my own? Is it difficult for a newbie to php (not new to general programming) to write a mailer script? I wanted to write it so that I could learn in the process. If there are tutorials about helping me to do this please point to them! :) If you think it's a bad idea, could you refer me to a good, secure script that will do?

Thank you very much.

PunkSktBrdr01
10-23-2003, 02:33 PM
What kind of script are you looking for? If you want something to mail you info when a form is submitted, it's easy to write one. Read up on PHP's mail() (http://us2.php.net/manual/en/ref.mail.php) function. Also, check out:

http://webdevfaqs.com/php.php#mailer

Have fun!

HackerX
10-23-2003, 05:57 PM
I tried to use that above link but when i click submit I get a page not found error. whats the problem?

http://www10.brinkster.com/hackerxra/formindex.htm

PunkSktBrdr01
10-23-2003, 06:03 PM
What link, HackerX? The one in your post? I tried the one in your post, and that is giving me a "HTTP/1.1 405 Method not allowed" error. The page is there, but their is problems with the server. Does the server support PHP? If it doesn't, you can't use PHP scripts on your server.

HackerX
10-24-2003, 07:17 AM
the link you gave. I tried to use that script(see my link) when I click submit I get a page not found error. does Brinkster support PHP and if not can anyone tell me a free host that does?

pyro
10-24-2003, 07:24 AM
Brinkster? No, I don't think it supports PHP. It is a M$ based host, so it supports ASP.

Take a look around http://www.free-php-hosting.com or if you don't mind paying a bit, I'd highly recommend http://www.dr2.net.

Also, the script is a form mailer, not a login script....

Sul
10-24-2003, 11:22 AM
Okay, but what about the php script available from "Matt's Script Archive"? He wrote a CGI mailer before. Isn't that more secure? If it is how so? How can I make my custom script just as secure?

pyro
10-24-2003, 11:27 AM
Originally posted by Sul
Isn't that more secure?Nope, it's been listed third on Secury Focus's list of top attacks for 1st quarter of 2002: http://www.securityfocus.com/corporate/research/top10attacks_q1_2002.shtml

HackerX
10-24-2003, 04:09 PM
Originally posted by pyro
Brinkster? No, I don't think it supports PHP. It is a M$ based host, so it supports ASP.

Take a look around http://www.free-php-hosting.com or if you don't mind paying a bit, I'd highly recommend http://www.dr2.net.

Also, the script is a form mailer, not a login script....

sry but I am getting really mad. after going from site to site, I just cant seem to find a FREE host that has a cgi-bin! I tried lycos becuz it did but when I tried to upload it I got an error, none of these php hosts work either!

pyro
10-24-2003, 04:12 PM
IMO, free hosts suck.

HackerX
10-24-2003, 04:33 PM
ok I think I finally got a host that will work but when I click submit I get a page not found error and when I go directly to the PHP file itself I just see its contents.

http://zonewebdesign.tripod.com/mailer.php

pyro
10-24-2003, 04:38 PM
The PHP obviously isn't being processed... Don't know if Tripod supports PHP or not.