mail

    Date: 12/09/07 (PHP Community)    Keywords: rss, database

    My mail script has gotten rather long and complex, so I'd like to move the code off of each page that requires an email to be sent.
    I've thought about using an include, but I want something cleaner. My emails are a standard template, just notification that a change has been made. The only difference is who the email gets sent to.
    This is where my novice will show ... what I want is the ability to put just one line on the page something like ...

    
    mail2user($emailaddress) 
    

    I'd pull the email address from my database as the script runs and the "mail2user" would know to pass the $emailaddrss variable to that "function"???

    Is this possible?

    Source: http://community.livejournal.com/php/602053.html

« stopping iFrames from... || Dream Weaver Issues »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home