PDA

View Full Version : Email Sender/Notification servername@box###.hostingco.com


nemmon
05-20-2009, 07:56 PM
Hello,

I have installed osticket and I have gone through the wiki, fixes from this forum and I cannot get my system to show: noreply@myticketsys12.com
Instead is shows: servername@box###.hostingco.com

These are the settings I have in my class.misc.php
/* Send email out after minor cleanups..*/
function sendmail($to, $subject, $message, $from, $headers = '') {

//TODO: provide an option to use SMTP server. Log all outgoign emails??
//do some cleanup...avoid stupid errors.
$to=preg_replace("/(\r\n|\r|\n)/s",'', trim($to));
$subject=preg_replace("/(\r\n|\r|\n)/s",'', trim($subject));
$message = preg_replace("/(\r\n|\r)/s", "\n", trim($message));
$headers = "From: $from \r\n" . $headers;

$headers = "Sender: $from \r\n" . $headers;
$headers = "X-Mailer: osTicket 1.6 \r\n" . $headers;

//echo "[$to,$subject,$message ".$headers.']';
mail($to,$subject,$message,trim($headers));
}

I have created a valid email account and setup piping correctly..
What can I do? what am I doing wrong?

Thanks!

masino_sinaga
05-21-2009, 12:32 AM
Guess what?
Do you use Windows as your operating system?
Have you checked the email setting in your php.ini file?

Best regards,
Masino Sinaga

nemmon
05-21-2009, 07:55 AM
Hi, the webserver is linux.
I have checked my php.ini
and I have done the following:

1. Created the email account
2. Added to my php.ini and still same issue: "sendmail_path = /usr/sbin/sendmail -t -i -f emailo@mysite.com"

masino_sinaga
05-23-2009, 02:03 PM
O, I see.

Please try an alternative way: using SMTP.
Here is the topic regarding SMTP:

http://www.osticket.com/forums/showthread.php?t=381

Best regards,
Masino Sinaga