Forum Moderators: phranque

Message Too Old, No Replies

SSI Email Tag

SSI Email Tag

         

amadeusmax

9:04 am on Jan 6, 2003 (gmt 0)



I need to have someone break this one down for me. All I wanted to do is have some SSI coding in which I would have an automatic email sent to me every time my main page was accessed.

<!--#email tohost="amadeusmax.com" message="Thanks for the HTMLib" toaddress="webmaster@amadeusmax.com" subject="accessed page" -->

I have read that tohost,fromhost, toaddress, and fromaddress are required. But no matter what combination I use , I do not recieve an email.

Any help would be appreciated, and as frustrated as I am now, if you could break it down to the simplest level, as I have fried my brain and probably repeated the same mistake many times.

Brett_Tabke

2:08 pm on Jan 6, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Welcome to the board. For that to work, you really need to call an external program to send the email. I know it can be done by calling sendmail from the ssi, but by doing that, you are creating a pretty signifcant hole in your system. If a spammer figured it out, they could use you almost as an open relay. So, the moral is, never use sendmail or almost any other emailer that passes a destination email in an ssi tag.

Hit hotscripts or any of the other scripting archives to find some extermal email script you can call from ssi. That way, you are not passing any vulnerable data from the ssi.