Page 1 of 1

email problem ,

Posted: Mon Apr 13, 2009 9:27 am
by andrew80706
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

now I install hesk successfully,when I submit a ticket ,customer and me can't receive any email about this.

I have read all related questions in this fourm. but I still can't solve this problem.
firstly, I bulid a PHP enviroment as below:
HESK2.0
PHP 5.2.5
Apache 2.2.8
MySQL 5.0.45
phpMyAdmin 2.11.4
ZendOptimizer 3.3.0
OpenSSL 0.9.8g 
eAccelerator 0.9.5.2
the operation system is windows 2003 SE

secondly I copy the PHP.INI
(REMOVED)

the mail() function of PHP is ok ,
at the same time ,I install SMTP model in win2003 ,anonymous can send email from smtp service.

as my opinion,HESK will transfer the mail() to send email . but it doesn't work.
it's very strange, when I solve this problem ,I will introude this nice software to my boss.

thank you for your efforts in this software.

Posted: Mon Apr 13, 2009 10:43 am
by Klemen
Does this work, do you get the e-mail (chane e-mail to yours)?

Code: Select all

<?php
mail('you@yourdomain.com','Test','Test');
echo "Mail sent!";
?>
If yes:
1. check inside your SPAM/Junk/Bulk folder

2. in submit_ticket.php remove

Code: Select all

,$headers
(found twice, remove both).

Then try again.

Posted: Mon Apr 13, 2009 12:06 pm
by andrew80706
Klemen wrote:Does this work, do you get the e-mail (chane e-mail to yours)?

Code: Select all

<?php
mail('you@yourdomain.com','Test','Test');
echo "Mail sent!";
?>
If yes:
1. check inside your SPAM/Junk/Bulk folder

2. in submit_ticket.php remove

Code: Select all

,$headers
(found twice, remove both).

Then try again.

thank you for your response
when I run the php,I get the result as below:

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in D:\www\test.php on line 5
Mail sent!



HESK(submit_ticket.php) call the mai() function of PHP, then the PHP will connect with the email server through mail function.

our company has bulit a email server by myself. I point the SMTP to our email server.
I can use the command :
telnet X.x.x.x 25 to login the email successfully .
I think that it means the PHP can connect with email server through 25 port.

I am confused about the ananymous model for email server.
the PHP program don't have email account ,why it can send email to customer.

thank you very much.

Posted: Mon Apr 13, 2009 12:25 pm
by Klemen
I'm afraid I can't help getting mail server to work or explain how it works. Once your PHP mail() works fine Hesk mails should also.

Posted: Tue May 19, 2009 2:27 pm
by GRINX
Hi,

Put this in your submit_ticket.php after <?

ini_set("SMTP", "your.smtphost.here");
ini_set("smtp_port", 25);

At the place of your.smtphost.here you put your SMTP host which you got from your host / mail provider. (E.G. mail.home.nl)
The script then works fine!

Good luck!