| |||||||||||
Jazzing up PHP Emails! Posted by seandosh (seandosh), 29 October 2003 I have no problems mailing from a server using PHP but does anyone know how I can make the content more graphical i.e how to change the font adding images, links etc...I figured if I wrote the body of the email using just plain old html MS Outlook and the like would pick up on this but instead it just displayed the code in the body of the email. I'm simply using the following code to send the email. if (mail("$email", "$title", "$text", "From:email@email.co.uk")) { echo "<br>mail sent to "; echo $name; echo"<br><br><b>Thank you!</b>"; } else { print "FAILURE!"; } Is their another function I need to use? If anyone can shed any light on this i'd be very grateful! Sean. Posted by Custard (Custard), 29 October 2003 Hello,Perhaps you need a Content-Type: text/html header in the mail. Most of the HTML emails I've seen contain MIME entities, one of which is text (Content-Type: text/plain) and one of text/html. I don't know php very well, but I'd start by looking for things to do with MIME. hth Bruce Posted by John_Moylan (jfp), 30 October 2003 Pear can help here with Mail_mime.This can send text, html and attachemnts. I use this one on the command line. Code:
jfp This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.
|
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |