It would be great to add the ability to use a local
variable for the sendmail_from and not use the default
variable in the php.ini file on a gedcom by gedcom
basis. If a message gets bounced, it get returned to
this default message. Users may have different
administrators for different gedcoms.
Thanks,
Chris
Logged In: YES
user_id=1185549
I have found that this can be added to the sessions.php file
to update this value. All that needs to happen now is to
add it to the gedcom config file so that it can be changed
by gedcom level.
ini_set('sendmail_from', 'name@address.com');
Logged In: YES
user_id=1185549
Thinking more, the smtp settings probably don't need to be
on a gedcom by gedcom basis. It should be added to the
regular server config. Here are the changes I have come up
with.
config.php
$SMTP_SERVER ="";
$SMTP_PORT = "";
$SENDMAIL_FROM = "";
sessions.php
$CONFIG_VARS[] = "SMTP_SERVER";
$CONFIG_VARS[] = "SMTP_PORT";
$CONFIG_VARS[] = "SENDMAIL_FROM";
if (!empty($SMTP_SERVER)) ini_set
('smtp',$SMTP_SERVER);
if (!empty($SMTP_PORT)) ini_set('smtp_port',$SMTP_PORT);
if (!empty($SENDMAIL_FROM)) ini_set
('sendmail_from',$SENDMAIL_FROM);
This project is introducing me to PHP, so I am not sure how
to write the script to update the config.php to the new version
with these added variables. Also, there needs to be help
written for these new variables. I could do this, I just need
guidance on where this needs to be updated.