1
Feanor
understanding Admin | Preferences | Mail Setup
  • 2005/10/4 13:38

  • Feanor

  • Just popping in

  • Posts: 5

  • Since: 2005/10/3


I see on the Mail Setup page (in both 2.0.13.1 and 2.2.2) there are places to enter FROM address and FROM name.

It looks to me that these two settings are stored in 'from' and 'fromname' table *_config.

What is the intended use for these two configuration settings?

2
bluenova
Re: understanding Admin | Preferences | Mail Setup

When a email is recieved by a user sent from the system, the email will look like it came from the details specified in these fields.

3
Watdehek
Re: understanding Admin | Preferences | Mail Setup
  • 2005/10/4 14:53

  • Watdehek

  • Friend of XOOPS

  • Posts: 130

  • Since: 2005/2/21


"From address" is the email address the receiver will see in the header, "From name" is the name the receiver will see in the header.

E.g. "From: XOOPS Site Webmaster (webmaster@dummy.com)"

4
Feanor
Re: understanding Admin | Preferences | Mail Setup
  • 2005/10/4 15:15

  • Feanor

  • Just popping in

  • Posts: 5

  • Since: 2005/10/3


Um, where?

In modules/system/admin/mailusers/mailform.php it looks like 'sitename' and 'adminmail' are being used.

5
bluenova
Re: understanding Admin | Preferences | Mail Setup

In mailform.php you can specify the values when sending a mail.

The initial values (FROM address and FROM name) relate to a system message like user validation or password reset.

6
Feanor
Re: understanding Admin | Preferences | Mail Setup
  • 2005/10/4 15:32

  • Feanor

  • Just popping in

  • Posts: 5

  • Since: 2005/10/3


It looks like lostpass.php and register.php also use 'adminmail' and 'sitename'.

I think I understand the intended use.

I'm looking for actual XOOPS php files that use 'from' and 'fromname'.

Am I looking in the wrong places?

Would someone point me at which XOOPS php files use 'from' and 'fromname'?


::edit::

In v2.2.2, I found references to 'adminmail' in these files:

backend.php
banners.php
class/mail/xoopsmultimailer.php
class/xoopsmailer.php
kernel/notification.php
lostpass.php
misc.php
modules/pm/class/privmessage.php
modules/profile/activate.php
modules/profile/changemail.php
modules/profile/register.php
modules/system/admin/mailusers/mailform.php
modules/system/xoops_version.php



And found references to 'fromname' in this file:

modules/system/xoops_version.php


In v2.0.13.1, I found references to 'adminmail' in these files:

backend.php
banners.php
class/mail/xoopsmultimailer.php
class/xoopsmailer.php
kernel/notification.php
lostpass.php
misc.php
modules/contact/index.php
modules/news/admin/index.php
modules/news/submit.php
modules/system/admin/mailusers/mailform.php
modules/xoopspartners/join.php
modules/xoopspoll/index.php
register.php
user.php


And I found no references to 'fromname'.


Have I looked in all the right places???

::end edit:

7
Feanor
Re: understanding Admin | Preferences | Mail Setup
  • 2005/10/5 16:15

  • Feanor

  • Just popping in

  • Posts: 5

  • Since: 2005/10/3


@bluenova & Watdehek:

Well, I doubled back and took a good long look at the files I listed that seem to be using 'sitename' and 'adminmail' in place of 'fromname' and 'from' in v2.0.13.1.

From looking at that code, it still appears to me that what I'm reading here might not be true.

So, I performed a simple test.

In Admin | Preferences | General Settings, I changed Admin mail address to admin.mail@mydomain, and in Admin Preferences | Mail Setup, I changed FROM name to from.name and I changed FROM address to from.addr@mydomain.

Then I logged out, went to user.php, and clicked on the link to recover the password for a registered user account.

In both cases, for both v2.0.13.1 and v2.2.2 - the e-mail sent by XOOPS used 'sitename' and 'adminmail' - not 'fromname' and 'from'.


Is this behavior duplicatable by someone besides me?

If so, please post here.

Login

Who's Online

466 user(s) are online (380 user(s) are browsing Support Forums)


Members: 0


Guests: 466


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits