PDA

View Full Version : Simple PHPMailer? not for me...


davidtrin
01-05-2002, 02:58 AM
Hello there
After seen the tutorial for PHP mailer I decided to have a try and test it on my latest project. It looked very easy and hassle free.
I haven't got a clue on PHP and so I just followed Jesse instructions and changed only the e mail address on the php3 file as follows:

<?php
mail("myem@ilhere.com", $subject, $message, "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
?>

where I've changed the e mail to a brand new address from my new server.
I've tried to set it to my yahoo address, to my new address in the server and to redirect from the new address to my yahoo. Nothing happens.
The redirection is working fine my with other addresses.

My server is oneandone.co.uk and they support PHP4, do I have to change something because of the different version?
What is the problem with that tutorial/codes?

Jesse
01-05-2002, 10:27 AM
You may have to change the file extension ut PHP4 server generally recognize PHP3 extentions. The easiest way to test if everything is working is this:
<? phpInfo(); ?>
Paste that into a blank document and save it as "test.php" (or .php3). Upload it to your server and then access it via your browser. If it shows upa big diagnostics page, you're ready to go, else, try the other extension. If it doesn't work with either extension you don't have PHP (or it's improperly configured).
You may also have restricted access to the mail function to prevent mail abuse. It should mention that in the diagnostics page I think... else contact your sys-admin and ask them.
Good luck.