![]() |
| ||
| Sending HTML email via PHP mail function I've got a basic subscription list signup for a website, and a basic form to input the text for sending an email to the subscribers... but I need to know what steps I need to take to create an HTML email, place a different main topic in the newsletter each month, and still have it available to view from the site at a later time.... Can anyone help? |
| ||
| I'm not sure exactly how extensive your knowledge is of PHP or how much you've done so far. Since you say this is written in PHP (or you want it to be) I take it you are working on a *Nix platform? Do you have sendmail configured on the server? A database set up to keep track of subscriptions as well as prior newsletters? |
| ||
| Re: Sending HTML email via PHP mail function You must give content type see the example below: mail($to, $object, $message, "From: $from\nReply-To: $from\nContent-Type: text/html;); 8) |
| ||
| Re: Sending HTML email via PHP mail function Quote:
text/html;and the );? |
| ||
| Re: Sending HTML email via PHP mail function if you want to send HTML emails via PHP you should consider reading this article: http://www.phpbuilder.com/columns/kartic20000807.php3 I know it will help ;) cheers.- |
| ||
| Re: Sending HTML email via PHP mail function This is how I send HTML email in my PHP Contact Form demo located at : http://programmers-paradise.net/demo...ct/contact.php The send email code is : [php]@mail($to, $subject, $message, "From: $from\nContent-Type: text/html; charset=iso-8859-1");[/php] You can download the Contact Form at: http://programmers-paradise.net/pafi...tion=file&id=3 ;) |
| ||
| Re: Sending HTML email via PHP mail function Quote:
This is because most hosting companies look out for accounts that sent a huge number of emails in a short period time. They identify such accounts as spammers and your account might get displayed. You can find scripts that would handle that for you on hotscripts.com rather than spending a lot of time writting your own script and re-inventing the wheel. |
| ||
| Re: Sending HTML email via PHP mail function Quote:
Does that make sense? I no longer run a web business, but I guess if there are others who would reference this posting for answers, I'd love any feedback (and to finally know for myself how to do it). Thank you for those of you who did post back when I requested - DaniWeb is AWESOME! ;) |
| ||
| Re: Sending HTML email via PHP mail function There are all kinds of downloadable software in the web site.http://www.qweas.com/ With a strong search engine, you will find many software with discount or even free price. |
| All times are GMT -4. The time now is 1:21 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC