Notifications are working but wrong address

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
emerinea
Posts: 6
Joined: Tue Feb 10, 2009 1:32 pm

Notifications are working but wrong address

Post by emerinea »

I believe this is totally something my hosting company needs to fix. I just need help with the wording because they have no idea what I'm talking about.

My no reply email is set up as noreply@********.us, but it comes through as **********@*******.hostmonster.com. What needs to change with my account with hostmonster to fix this?

Thanks,

Andy
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hello,

Try adding this code to the top of submit_ticket.php file (change the e-mail to your own address):

Code: Select all

ini_set("sendmail_from", "noreply@********.us");
Then try submitting a ticket and see if it works. If it does do the same for the reply_ticket.php and admin/admin_reply_ticket.php files.

P.s.: I changes your e-mail addresses to be unreadable.
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
emerinea
Posts: 6
Joined: Tue Feb 10, 2009 1:32 pm

Post by emerinea »

The script should be fine. It used to work until I parked hn.k12.oh.us domain on my hardinnorthern.org server. I never changed the script. It has something to do with the hn.k12.oh.us domain being parked on the hardinnorthern.org server and my email server having the address as email.hn.k12.oh.us and all of my staff's email ending in @hn.k12.oh.us

I'm just not sure what needs to be changed on the webserver.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Have you tried what I suggested?

The default sendmail_from e-mail address can otherwise be set in the php.ini file on the server (or with .htaccess or by pasting the code I gave you to the script).

Hesk does add a "From:" header to all mail sent so it is possible your server forces a default address - if this is the case I'm not sure how to change it, you would need to check within the documentation/support forum for your server software.
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