I'm currently rewriting a helpdesk script that we have running at work. One part of the script allows the user to submit a new trouble ticket. On the result page, it needs to send an e-mail to the helpdesk e-mail address to notify them of a new ticket.
The person who originally wrote the script used a mail_sock function that is currently giving en error if the script is run from IE, works fine in mozilla/firefox
I get this error:
MAIL FROM error: .555 5.5.4 Magoo parameter unrecognized RCPT TO error: .503 5.0.0 Need MAIL before RCPT DATA error: .503 5.0.0 Need MAIL command
DATA(end)error: .500 5.5.1 Command unrecognized: "Subject: Problem Ticket #00150 -> Asset #666"
QUIT error: .500 5.5.1 Command unrecognized: "To xxx@xxx.com"
I don't really know how to use the mail_sock.php include so I'm just going to rewrite it.
What is the best way to have my script send out an e-mail? Note, the SMTP server and the webserver are on different servers, so I don't think I can use mail() since there is no local sendmail running.
thanks