Battlespace Posted August 20, 2013 Posted August 20, 2013 I downloaded the latest oscommerce yesterday and everything is working great except for the Contact Us page. The "Tools\Send Email" works with no problem but it seems the Contact Us is inserting some characters into the from address ("<"). I always get an invalid email address message. That address is the "From" and with me as the "To", it is never sent. The "validate address" option in Mercury is disabled. When the e-mail is successful it doesn't have the "<" around it. I have not modified any of the PHP. Is the solution to actually add some code to remove these characters or is there something else wrong? Here is what Mercury reports when it is bad: http://store.battlespacegames.com/contactus_oscommerce.JPG Here is what it looks like from the Tools\Send Email option in Admin and works just fine: http://store.battlespacegames.com/contactus_oscommerce_2.JPG edit: images were showing when I created but after submission they are now links... hmmm
Battlespace Posted August 21, 2013 Author Posted August 21, 2013 I found the problem in the email.php file. It was adding < > around the e-mail but for some reason it wasn't passing to_name to Mercury so it was failing. I'm not sure if there is a better way around it but I just modified this code and it's working now. $to = (($to_name != '') ? '"' . $to_name . '" <' . $to_addr . '>' : $to_addr); $from = (($from_name != '') ? '"' . $from_name . '" <' . $from_addr . '>' : $from_addr);
Recommended Posts
Archived
This topic is now archived and is closed to further replies.