What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Email Script

Email Script
Author: Message:
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: Email Script
Ugh that code is horrible , I dont have time to help you rewrite it now.. maybe in the morning but.

1) getenv is dodgy use $_SERVER insted
2) why are you posting things which you can get from the  sendemail.php page , REMOTE_ADDR , HTTP_USER_AGENT and HTTP_REFERER.
2) The use of global variables on the second page is blah... use $_POST['variable_name']
3) Even if your code fails it still sends the email.... so if global variables are turned off on your server (notice errors  ftw :P) then all those variables wont exist and they will all be empty so when you go to use them it will email blank variables
quote:
Originally posted by raceprouk
1. You don't need to prepend 'From: ' to the from address.
yes you do ... that field is "Extra headers" so hes adding the from header.

code:
bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]] )


This post was edited on 06-07-2006 at 03:09 PM by -dt-.
[Image: dt2.0v2.png]      Happy Birthday, WDZ
06-07-2006 03:05 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Email Script - by Felu on 06-07-2006 at 10:20 AM
RE: Email Script - by RaceProUK on 06-07-2006 at 02:32 PM
RE: Email Script - by -dt- on 06-07-2006 at 03:05 PM
RE: Email Script - by RaceProUK on 06-07-2006 at 06:47 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On