Wrong email address in ticket notification emails

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
nick00
Posts: 6
Joined: Mon Jan 28, 2013 4:33 pm

Wrong email address in ticket notification emails

Post by nick00 »

Script URL: http://eppc.dyndns-free.com/tickets
Version of script: 2.4.2
Hosting company: Hosted on NAS
URL of phpinfo.php: http://eppc.dyndns-free.com/phpinfo.php
URL of session_test.php: Sorry - I can't find it.
What terms did you try when SEARCHING for a solution: "incorrect email"

Write your message below:

Hi there,

I've installed the helpdesk and set my email address as address@domain.com (my work address) in all fields. The emails that hesk sends out are reported as being sent from address2@anotherdomain.com (my personal email address).

No idea why this is happening - can any of you guys help with this?

Thanks,
Nick.

EDITED to add location of phpinfo.php
Last edited by nick00 on Wed Jan 30, 2013 2:15 pm, edited 1 time in total.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Wrong email address in ticket notification emails

Post by Klemen »

HESK will try to set the from email to the value of "From address" setting (admin panel > Settings > General > "From:" email).

However, not all servers allow that. You might need to change the from email address by modifying PHP configuration - sendmail_from value in php.ini file (if you have access to it), or use .htaccess to change the sendmail_from value

Code: Select all

php_value sendmail_from address@domain.com
If THAT doesn't work, the only solution is to use a SMTP server to send mail using a real email account (admin panel > Settings > Mail > Send emails using: SMTP server). Make sure that the "From" email setting is the same as the email address set here.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
nick00
Posts: 6
Joined: Mon Jan 28, 2013 4:33 pm

Re: Wrong email address in ticket notification emails

Post by nick00 »

Klemen,

Many thanks for your response.

I perhaps should have mentioned that the script is hosted on my NAS. I can access the php.ini file but there doesn't seem to be any mention of sendmail_from. The nearest thing I have to that is this:

Code: Select all

[mail function]
SMTP = localhost
smtp_port = 25
sendmail_path = /usr/sbin/sendmail -t -i
Any ideas?

Thanks,
Nick.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Wrong email address in ticket notification emails

Post by Klemen »

You will need to manually add it to the php.ini then:
http://php.net/manual/en/mail.configuration.php

Just add a line that says

Code: Select all

sendmail_from = you@yourmail.com
You could also use htaccess to do the same as suggested in my previous post.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
nick00
Posts: 6
Joined: Mon Jan 28, 2013 4:33 pm

Re: Wrong email address in ticket notification emails

Post by nick00 »

Hi Klemen,

Thanks, do I replace the line:

Code: Select all

sendmail_path = /usr/sbin/sendmail -t -i
with:

Code: Select all

sendmail_from = you@yourmail.com
or add the above line somewhere in here:

Code: Select all

[mail function]
SMTP = localhost
smtp_port = 25
sendmail_path = /usr/sbin/sendmail -t -i
I've tried lots of different combinations and I either get no message, or the message comes from my personal address.

Sorry for my ignorance.

Nick.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Wrong email address in ticket notification emails

Post by Klemen »

It should go below

Code: Select all

sendmail_path = /usr/sbin/sendmail -t -i
If this doesn't work try setting HESK to use a SMTP server (a real email account) to send emails ("Send emails using: SMTP server" in settings).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply