Email Notification (Not completed successfully) screenshots

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Locked
blacksmith
Posts: 91
Joined: Mon Feb 11, 2008 6:57 am

Email Notification (Not completed successfully) screenshots

Post by blacksmith »

I write a message from top menu: MyAccount > Messages > New Message then I click Submit Message. The message go out form TimeTrex and entered into my mail server.

So now the message is in the mail server and ready to be sent to its destination which are these tow emails entered into MyAccount > Contact Information

Image

The problem is that my email host doesn't allow such an email address sender like this: localhost@timetrex

This is a screenshot of my mail server:

Image

How can I change the sender email address to be: timetrex@mydomain.com with or without the user name and password?

By the way, this is a screenshot of my php.ini:

Image

Thanks

TimeTrex Standard Edition v2.2.8
PHP 5.2.5
Windows XP Pro SP2
Apache 2.2.8
MySQL 5.0.51a
Firefox 2.0.0.14
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

The email's "From:" address will use whatever domain name you use to access the TimeTrex interface.

So, if you enter:

http://localhost/timetrex/

into your browser to access TimeTrex, thats where the emails will come from.

But if you enter:

http://timetrex.mydomain.com/

The emails will come from: timetrex.mydomain.com
blacksmith
Posts: 91
Joined: Mon Feb 11, 2008 6:57 am

Manually configure what is after "@"

Post by blacksmith »

Thanks for your reply.

Now you solved half of the problem. Now I know from where come the email sender name.

The second half is that I want manually configure what is after "@" in the email's "From:" address. The email's "From:" address must contain ".com" or ".whatever" at its end even though I have a local host or an intranet.

Is there any way to do that.

Thanks very much
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

You have two options, change your hosts file:

c:\windows\system32\drivers\etc\hosts

And add a line similar to:
127.0.0.1 timetrex.mydomain.com
This should allow you to access TimeTrex with the above domain, and therefore change the "From:" address used in emails.

Or modify the source code to change the from address.
blacksmith
Posts: 91
Joined: Mon Feb 11, 2008 6:57 am

Starting point for second alternative

Post by blacksmith »

Thanks for immediate reply.

Now we have two alternatives. Thanks for the first one.

As for the second alternative, may you refer just to the - starting point - file in source code that is responsible for changing the "From" email address. And let the rest for me. I will share my results if I have any progress.

Thanks again.
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

I would start with either of these two files:

modules/message/MessageFactory.class.php
modules/core/ExceptionFactory.class.php
blacksmith
Posts: 91
Joined: Mon Feb 11, 2008 6:57 am

Thanks for quick response

Post by blacksmith »

Thanks for quick response
Locked