Author Topic: Email  (Read 20746 times)

0 Members and 1 Guest are viewing this topic.

Offline CHRISman

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • http://www.CHRISman.ca
The same problem !!!
« Reply #15 on: May 11, 2002, 07:02:03 PM »
Hello there,

I have the same problem as the topic was started !
The Email function does NOT work with my 4image gallery.
I'm sure I do NOT use SMTP server, it is set to NO... but nor user get registration e-mail... nor eCards are send to specified e-mail.
I've try it with different e-mails...but result is the same! :(  :(  :(
Try it your self  :arrow: : http://pic.chrisman.ca

There is another thing I would like to ask !
Now, whe guest uploads an image it apears As "image to validate" and I just validate or delete the image... but when a USER uploads an image it apears NOwhere! I must go to "Edit images", and search if there is new image... then to click "Edit" ... and then I must set option "Activate
" , in orthe the image apears in the directiry it was uploaded to, otherwise it stays hiden :( :( :(
Is there a way , automate the "Active" option when user upload smth. ???

Thank you in advance

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Email
« Reply #16 on: May 11, 2002, 07:52:27 PM »
Hi,

check if this code works. It will send you an email to the adress you specified in $email:
Code: [Select]
<?php
$email 
"you@domain.com";
mail&#40;$email, "Test Mail", "Test Message"&#41;;
?>




Second question:
Replace in members.php this code:
Code: [Select]
$image_active = (isset($HTTP_POST_VARS['image_active']) && $HTTP_POST_VARS['image_active'] == 1) ? 1 : 0;

$image_allow_comments = (isset($HTTP_POST_VARS['image_allow_comments']) && $HTTP_POST_VARS['image_allow_comments'] == 1) ? 1 : 0;


with this:

Code: [Select]
image_active = (isset($HTTP_POST_VARS['image_active']) && $HTTP_POST_VARS['image_active'] == 0) ? 0 : 1;

$image_allow_comments = (isset($HTTP_POST_VARS['image_allow_comments']) && $HTTP_POST_VARS['image_allow_comments'] == 0) ? 0 : 1;


Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline CHRISman

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • http://www.CHRISman.ca
Ok , I try it...
« Reply #17 on: May 11, 2002, 08:19:51 PM »
so, I suppose the problem is with my server couse get this msg:
Warning: mail() has been disabled for security reasons. in test1.php on line 3
What should I do? to send mail to server admin or ... ?
===
I've changed the code (second question) and it works fine... :)

Thank you very much !!!

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: Ok , I try it...
« Reply #18 on: May 11, 2002, 09:24:04 PM »
Quote from: CHRISman
What should I do? to send mail to server admin or ... ?

Yes, do that!

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline CHRISman

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • http://www.CHRISman.ca
Last question !
« Reply #19 on: May 11, 2002, 10:00:56 PM »
Now:
I've set Max Image file size to 500 KB

But when uploadin picture larger than +/- 200-250 KB I get: "The page cannot be displayed" error !
Only images slaller are uploaded withot problem ...

Where is the problem ?

I'm sorry for bothering you with stuped questions but that is a problem I would like to solve :)

Thank you again very much ... the "4image" gallery is just fine for my needs :)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Email
« Reply #20 on: May 11, 2002, 10:04:58 PM »
Check "upload_max_filesize" in your phpinfo(). Maybe it's set to 200KB.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline CHRISman

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • http://www.CHRISman.ca
L:((((
« Reply #21 on: May 11, 2002, 11:50:10 PM »
Yes you're right
the result of this:
Code: [Select]

$a = ini_get("upload_max_filesize");
echo $a;


Is: 200K

:((((

Can I change it... i read the manual and there sais that is changeble only during the script is running ?


Thank you very much again... !

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Re: L:((((
« Reply #22 on: May 12, 2002, 09:11:45 AM »
Quote from: CHRISman
Can I change it... i read the manual and there sais that is changeble only during the script is running ?


No, i don't think so. You have to add the images larger that 200K with "Check new images".

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline CHRISman

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • http://www.CHRISman.ca
Hello there
« Reply #23 on: May 21, 2002, 10:47:04 PM »
So, in my server mail() funtion is disabled... and when I ask them why...:
Here is the answere:
Quote
The mail() function have disabled for security reason and Internet
respect. The function email() replaced it.
bool email(string From, string To, string Sujet, string Message, string
[Reply To]);


So tell me how to change the mail() funvtion with email() function, where to change the code ? I've did not find email() function with "php manual" but ... they say it is the way to send E-mails !

Pease help me !

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Email
« Reply #24 on: May 21, 2002, 11:01:16 PM »
You will find it in "includes/email.php".

Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline CHRISman

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • http://www.CHRISman.ca
L:)
« Reply #25 on: May 21, 2002, 11:51:11 PM »
I've changed this in lines 168-171:
Quote
if (@mail($this->address, $this->subject, $this->body, $headers)) {
        return true;
      }


with this :
Quote
if (@email($this->address, $this->subject, $this->body, $headers)) {
        return true;
      }


Is that right... when I send e-mail it returns true of this statement... but I still did not recieve any eCard ?

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Email
« Reply #26 on: May 21, 2002, 11:58:23 PM »
Try:

Code: [Select]
if (@email($this->from_email, $this->address, $this->subject, $this->body, $headers)) {
  return true;
}


Greets Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search