Trying to get os ticket to email when new tickets are created etc.

--> Did learn about the corn job and followed the instruction to set it up in Windows/Wamp environment (php_imap is enabled). When I run the sched task it throws an error that is generic. When running the cron job in cmd window I get the follwing

Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\support\include\pear\Mail\mail.php on line 128

Fatal Error: Contact system adminstrator.

:

At rpesent, I did not config any mail server on the box. Do I need one? Does the Google route work? There are q's around google and when I tried my local account the os-tecket admin page just timed out.

Thanks!

with Google

Have tried to work this with Google smtp & POP but still no luck.

Any thoughts?

Thanks

C:\wamp\bin\php\php5.3.0\php.exe C:\wamp\www\support\api\cron

.php

PHP Warning: mail(): Failed to connect to mailserver at "localhost" port 25, ve

rify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\

www\support\include\pear\Mail\mail.php on line 128

Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify

your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\s

upport\include\pear\Mail\mail.php on line 128

Fatal Error: Contact system adminstrator.

You might try googling:

PHP Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port"

The error that you are receiving is a PHP error, not a osTicket error. Open up your php.ini and look for "" or "SMTP". You should find something like:

; For Win32 only.

SMTP = emailserver.name.com

smtp_port = 25

As a side note if you do not have a mail server that you can use for this, there are alternatives. We ran IndigoMail (Sendmail for windows) for a while.

http://www.indigostar.com/indigomail.php(http://www.indigostar.com/indigomail.php)

You might also make sure that any firewalls you have (including the native windows one on your webserver) isn't blocking the following ports: 993 (imap), 465, 587 (smtp auth). If you can use telnet on the webserver to test them.

imap.gmail.com

Use SSL: Yes

Port: 993

smtp.gmail.com (use authentication)

Use Authentication: Yes

Use STARTTLS: Yes (some clients call this SSL)

Port: 465 or 587

Good luck!

thanks, I do think that google is blocked and I need my own like Indigo or so.

WAMP doesn't have a built in mail server, so you'd need to install one. Similarlly, it lacks out-of-the-box SSL support required for GMail.

I wouldn't really consider WAMP a viable solution for anything other than dev/testing.

Write a Reply...