lemonjoos Posted October 9, 2007 Share Posted October 9, 2007 hey people, how do i retrieve information from a SQL database and put it in a email script? and the email i have to send to is also from the SQL database! Quote Link to comment https://forums.phpfreaks.com/topic/72488-php-email-scripting-with-mysql/ Share on other sites More sharing options...
Orio Posted October 9, 2007 Share Posted October 9, 2007 1) Fetch the data from your SQL-database. If you need to fetch the email address fetch it too. 2) Format a string using the values you fetched in step 1. 3) Using the mail() function, send the string you formatted to the email address you want. Nobody will code the entire thing for you, you know. If that's what you're looking for checkout the Freelancing board. Read some PHP-SQL tutorials, read about the mail function, read about strings and you should have the tools to complete this script. Orio. Quote Link to comment https://forums.phpfreaks.com/topic/72488-php-email-scripting-with-mysql/#findComment-365519 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.