Hi,
I am trying to have the results of a query be put into an email as an HTML table, but I need to have the email pop up as it would if I used mailto so that the user can edit the email before sending, change the To field if desired, etc.
The email should go through the normal email client (in this case, Outlook) because this is what users are familiar with, and I'm not sure how PHP mail would handle Echange Server mailing groups and such.
I posted this question on another PHP forum (PHP Freaks) but got only one reply so far which didn't provide any information I didn't already know.
I have attempted to use mailto but can't get it to place any data into the email body.
echo "<a href=\"mailto:somebody@mysite.co.uk?Subject=DailyReport&Body=" . email_table($numresults) . "\">email</a>";
I placed my bog-standard query table output routine into a function, email_table(), which works perfectly for screen output but puts nothing into the email body.
What's going wrong here? I'm fairly new to PHP. I tried just putting in email_table without the dots but it made little difference (email body just contained something along the lines of "email_table(Resource#3)".
I'm a bit stuck on this one and would really like to get it to work, surely it must be possible. 🙂