We have a web form which sends out an email to the ticking systems email address in order to create tickets. This works fine, however, all of the email addresses for the tickets created are created under "helpdesk@domain.com" which isn't ideal. We have now set it up that the body of this email sends the email address of the person in the message body, and I plan to modify the code in order to pick up that tag instead of the from field. 1) There isn't enough funding to integrate the API fully2) The email system doesn't support sending from non-registered email addressesI have found "$data = $from->mailbox.'@'.$from->host;" in a file called class.mailparse.php in the includes folder, would I simply just need to rewrite this to use a regular expression to find the email address instead? Does OSTicket support overrides for custom modules?

I have been experimenting with this, I have tried to set the email address to "anything@domain.com", however it always seems to revert back to the from email address still. 

Sounds to me like your either building your email header incorrectly... or that PHP is overriding your FROM address (If you are using PHPMail to send your email you might want to check your php.ini)

Not sure what you mean by this. This has nothing to do with sending emails. This is about the email parsing which picks up emails from an IMAP account and creates tickets for new emails. I simply want it to pick up the email addresses from the body of the email using Regex instead of using the from feild since the source of the emails is from an external system that sends emails. 

Sounds to me like your either building your email header incorrectly... or that PHP is overriding your FROM address (If you are using PHPMail to send your email you might want to check your php.ini)

Write a Reply...