PDA

View Full Version : fsock problems in phpSupportTickets


consult
11-19-2003, 10:57 AM
I installed the phpSupportTicket add in script on a site and am having problems with the ticket email part.

I am getting an error when I login to the PHP Support Ticket and add a new ticket...it adds the ticket but it doesn't email the info. Instead I get two fsockopen messages:

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/immedia/public_html/SupportTickets/class.smtp.php on line 87

Warning: fsockopen(): unable to connect to smtp.immediasoftware.com:25 in /home/immedia/public_html/SupportTickets/class.smtp.php on line 87


I've never worked with or seen fsock stuff before so I wondered if anyone else had any clue what I have to fix to get this piece working?

wcfan3
11-19-2003, 02:19 PM
from the FAQ on their website (phpSupportTickets) (http://www.phpsupporttickets.com/index.html?page=faq):

PHP Support Tickets - Frequently Asked Questions

1. The email will not send out correctly?

This is directly associated with the SMTP setup within the config.php file. What is SMTP? Well this is Simple Mail Transfer Protocol it is used to transfer e-mail between computers. It is a server-to-server protocol. SMTP can be configured in many ways, i.e. some allow relaying, some require SMTP authentication other require that the email be a domain on the email server. So basically you need to know how your SMTP server is set up.

You are asked to fill out the following VARIABLES to allow the application to send through your SMTP server.

socketfrom - This must be a fully validated email that appears on the Server.

socketfromname - This can be anything, it is just aesthetics for the user who recieves the email.

socketreply - I would set this to the same as socketfrom.

socketfrom - Again I would set this to the same as socketfromname.

sockethost - This is vital, this tells the application to look for an SMTP server at this address. Usually this is smtp.yourdomain.com but the zone i.e. smtp can be anything some companies use mail.yourdomain.com etc so please find this out.

SMTP auth can be set on a server, it requires that the user send through a Username and Password to validate the account, this essentially stops spamming companies using your email to send mass email through it. This can be switched on or off in this application, please set it to your appropriate server.

smtpauth - Set this to TRUE or FALSE depending on your server set up.

smtpauthuser - This will likly be the username of your email account.

smtpauthpass - This will likly be the username of your email account.