Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Email problem

I am having problems getting emails to send or receive. I have all of the appropriate settings in the admin console, but am not able to download or send emails using OSticket. I have used the search function on these forums which has helped me greatly. I know that I can send email out using the following php code(found when searching)

<title>PHP Mail() test</title>
This form will attempt to send a test email. Please enter where this test should be sent to<br><p>
<form action = \"php_mail.php\" method = \"post\" name=\"sendmail\">
Enter an email address: <input type = \"text\" name = \"to\"><br>
<input type=\"submit\" value=\"Send\" name=\"submit\"><input type=\"reset\" value=\"Reset\" name=\"reset\"><br><p>
$host = $_SERVER['HTTP_HOST'];
$uri = $_SERVER['SCRIPT_URI'];
$mail_subject=\"Test email from $host\";
$mail_body=\"This is a test email, sent from $uri\";
$header = \"Content-type: text/html\n\";
$header .= \"From: \\"PHP mail() Test Script\\"<noreply@$host>\n\";
if(mail($mail_to, $mail_subject, $mail_body,$header)){
print \"Email sent successfully!\";
print \"Email did not send\";

but when I put in a ticket from my gmail address here is the output from miniRelay(what I am using to relay the email out).
18:40:40 [2] Sending message
18:40:41 [2] Error 5.5.2 Syntax error. b23si12569457ugd.20
18:40:41 [2] Connected with
18:40:42 [2] Error 5.5.2 Syntax error. 19si12645760ugl.12
18:40:42 [2] Connected with
18:40:43 [2] Error 5.5.2 Syntax error. 31si12625246ugg.8
18:40:43 [2] Connected with
18:40:46 [2] Sending message
18:40:46 [2] Error 5.5.2 Syntax error. 4si5932462yxd.49
18:40:46 [2] Connected with
18:40:47 [2] Error 5.5.2 Syntax error. 5si3805441yxt.1
18:40:47 [2] Connected with
18:40:47 [2] Error 5.5.2 Syntax error. 30si9805yxk.47
18:40:47 [2] ERROR: 3 times retried, returning message

I don't even know where to start to troubleshoot this because I checked all of the settings in the admin panel many times over. Again, I just want to be able to download pop3 messages - which OSticket says I have the correct settings when I test them, and respond to them. Additionally when a user places a ticket I want to be able to have OSticket auto-respond to them. I have OSticket hosted on a separate server running XAMPP not on my domain if it helps.


  • Looks like the messages were sending but getting caught in spam filters for the various emails I was testing. I got an email from Frontbridge(Exchange Hosted Filtering) showing my SPAM quarantine was full of test ticket autoresponse messages...hah. Even Gmail put them in my SPAM folder. Don't know why. It's still not downloading the messages though...
Sign In or Register to comment.