Author Topic: Email error  (Read 16708 times)

0 Members and 1 Guest are viewing this topic.

Offline sfjoe

  • Newbie
  • *
  • Posts: 12
    • View Profile
Email error
« Reply #15 on: June 18, 2003, 12:23:29 AM »

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Email error
« Reply #16 on: June 18, 2003, 12:25:02 AM »
ok, but what about this question:
Quote from: Chris
Can you send email from any other php script from your site?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline sfjoe

  • Newbie
  • *
  • Posts: 12
    • View Profile
Email error
« Reply #17 on: June 18, 2003, 12:32:20 AM »
i'm not very versed in PHP. so i found this and ran it off my site(of course changed the email addresses) and didn't receive anything


<html>
<head>
<title>PHP Mail Array Loop</title>
</head>
<body>
<?php
$users= array (
"1rstaddress@wol.com"=>"John",
"2ndaddress@wol.com"=>"Paul",
"3rdaddress@wol.com"=>"George",
"4thaddress@wol.com"=>"Ringo");

foreach ($users as $key=>$val)
{
$subject="PHP Mail Test";
$message="Hello ".$val."<br>
This is just a simple form letter which can be sent to multiple locations.<br>
Best Regards<br>
Your Name (Webmaster)";
mail($key , $subject , $message , "From: youremailaddress@wol.com") ;
}
?>
</body>
</html>

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Email error
« Reply #18 on: June 18, 2003, 12:34:31 AM »
You can find plenty of easy to install, form to email php scripts at www.hotscripts.com if you care to try one out.

Offline sfjoe

  • Newbie
  • *
  • Posts: 12
    • View Profile
Email error
« Reply #19 on: June 18, 2003, 06:18:57 PM »
thanks everyone for all the help. i finally figured it out. the host contacted me and said there was something up with their server. now the email sends out fine. but now there is another problem. when it sends the activation link it sends: photos.halsworld.net/4images/activationcode

my subdomain photos.halsworld.net already points to the 4images folder. where would i be able to modify the settings so that it doesn't include the 4images folder in the activation link?

Offline sfjoe

  • Newbie
  • *
  • Posts: 12
    • View Profile
Email error
« Reply #20 on: June 19, 2003, 05:48:46 AM »
can anyone help please? thanks!

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Email error
« Reply #21 on: June 19, 2003, 02:03:59 PM »
Change
Code: [Select]
// define('SCRIPT_URL', 'http://www.yourdomain.com/4images'); //no trailing slash
to
Code: [Select]
define('SCRIPT_URL', 'http://photos.halsworld.net'); //no trailing slash
in includes/constants.php
Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline sfjoe

  • Newbie
  • *
  • Posts: 12
    • View Profile
Email error
« Reply #22 on: June 19, 2003, 06:24:49 PM »
thanks jan and everyone for all your help. it worked!  :D