This is a discussion on "web email the graphics" within the PHP Forum section. This forum, and the thread "web email the graphics are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
web email the graphics
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
web email the graphics
Can I type html codes inside the textarea tag area and how can I insert a graphic or image or photo in the Mail Body area? Maybe it is stupid question for you guys, but any inputs will be much appreciated!!!
Here is the url:http://www.sandragreen.com/emailblast.php |
|
|
|
||||
|
Re: web email the graphics
Well, that's a loaded question if I ever heard one
You can certainly send HTML emails as well as embedded or attached images with PHP. You need to send your messages in MIME format. The mail function in PHP sends plain text emails by default. You need to send a bunch more email headers to create a MIME message. A very simple example looks like this :
I found this tutorial from Sitepoint which is very good and explains from woe to go about PHP email. With that said however, you can't go past the Mail class from PEAR. It takes most (in fact almost all) of the pain away for you via Object Abstraction Mail class from PHP Extension and Application Repository I hope that helps
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Last edited by Rakuli; Oct 4th, 2007 at 09:05. Reason: Something wrong with code, not accepting it. |
|
|||
|
Re: web email the graphics
Thanks Pal. That was very valuable tip. Much appreciated!!
|
|
|||
|
Re: web email the graphics
Hi Rakuli, after reading that tutorial, testing it on my remote ISP server, I copied and pasted the html tags into the mail body textarea, I've received the html tags all over the place of the message, didn't interprete the html codes into normal look as the same as in the browser. I am getting confused! Can you please test it and pasted the html codes into the mail body area to see if you get the same problem or not. http://www.sandragreen.com/main.html,
Much appreciated!! |
|
||||
|
Re: web email the graphics
Hi Begeiste, that page you give cannot be found (I used the form from your first post, not sure if that is what you mean).
Do you have the code you're using, I might be able to see why you're not getting the HTML email. Cheers,
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
|||
|
Re: web email the graphics
Sorry I was submitting the wrong name of the file. Can you test at this url : http://sandragreen.com/emailblast.php to your html code inside of mail body.
First can you insert your email at http://sandragreen.com/manage.php, after submitting the email will be added into the email table "subscribers". Then at http://sandragreen.com/emailblast.php, pasted your html code there to see if you receive the correct web page or whole lot of html tags in the email? In addition, the html email can be styled in the inline only or external attached styles? Here is the emailblast.php code below:
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP email form not sending email | Kurt | PHP Forum | 1 | Oct 12th, 2007 04:26 |
| Form submits to email via php, but email is blank!!?? | DH1234 | PHP Forum | 2 | Jun 18th, 2007 10:42 |
| Graphics | rbvinc | Graphics and 3D | 2 | Sep 18th, 2006 13:20 |
| Free Graphics site looking for link exchange with another graphics website! | mgcom | Link Building and Link Sales | 6 | Aug 19th, 2006 12:51 |