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
Wrong email address in ticket notification emails
Moderator: mkoch227
Wrong email address in ticket notification emails
Last edited by nick00 on Wed Jan 30, 2013 2:15 pm, edited 1 time in total.
Re: Wrong email address in ticket notification emails
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
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.
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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Wrong email address in ticket notification emails
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:
Any ideas?
Thanks,
Nick.
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
Thanks,
Nick.
Re: Wrong email address in ticket notification emails
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
You could also use htaccess to do the same as suggested in my previous post.
http://php.net/manual/en/mail.configuration.php
Just add a line that says
Code: Select all
sendmail_from = you@yourmail.com
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: Wrong email address in ticket notification emails
Hi Klemen,
Thanks, do I replace the line:
with:
or add the above line somewhere in here:
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.
Thanks, do I replace the line:
Code: Select all
sendmail_path = /usr/sbin/sendmail -t -i
Code: Select all
sendmail_from = you@yourmail.com
Code: Select all
[mail function]
SMTP = localhost
smtp_port = 25
sendmail_path = /usr/sbin/sendmail -t -i
Sorry for my ignorance.
Nick.
Re: Wrong email address in ticket notification emails
It should go below
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).
Code: Select all
sendmail_path = /usr/sbin/sendmail -t -i
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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