Page 1 of 1

Wrong email address in ticket notification emails

Posted: Mon Jan 28, 2013 4:44 pm
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

Re: Wrong email address in ticket notification emails

Posted: Mon Jan 28, 2013 6:15 pm
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.

Re: Wrong email address in ticket notification emails

Posted: Wed Jan 30, 2013 12:56 pm
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.

Re: Wrong email address in ticket notification emails

Posted: Wed Jan 30, 2013 7:35 pm
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.

Re: Wrong email address in ticket notification emails

Posted: Thu Jan 31, 2013 2:58 pm
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.

Re: Wrong email address in ticket notification emails

Posted: Sun Feb 17, 2013 9:08 am
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).