/    Sign up×
Community /Pin to ProfileBookmark

sending mail – my own, or script?

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.

to post a comment
PHP

11 Comments(s)

Copy linkTweet thisAlerts:
@PunkSktBrdr01Oct 23.2003 — 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 [URL=http://us2.php.net/manual/en/ref.mail.php]mail()[/URL] function. Also, check out:

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

Have fun!
Copy linkTweet thisAlerts:
@HackerXOct 23.2003 — 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
Copy linkTweet thisAlerts:
@PunkSktBrdr01Oct 23.2003 — 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.
Copy linkTweet thisAlerts:
@HackerXOct 24.2003 — 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?
Copy linkTweet thisAlerts:
@pyroOct 24.2003 — 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....
Copy linkTweet thisAlerts:
@SulauthorOct 24.2003 — 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?
Copy linkTweet thisAlerts:
@pyroOct 24.2003 — [i]Originally posted by Sul [/i]

[B]Isn't that more secure?[/B][/QUOTE]
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
Copy linkTweet thisAlerts:
@HackerXOct 24.2003 — [i]Originally posted by pyro [/i]

[B]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.... [/B]
[/QUOTE]


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!
Copy linkTweet thisAlerts:
@pyroOct 24.2003 — IMO, free hosts suck.
Copy linkTweet thisAlerts:
@HackerXOct 24.2003 — 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
Copy linkTweet thisAlerts:
@pyroOct 24.2003 — The PHP obviously isn't being processed... Don't know if Tripod supports PHP or not.
×

Success!

Help @Sul spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.4,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...