This is a discussion on Sending HTML email... within the PHP Development forums, part of the Programming & Scripting category; I'm nearing my wits end on this... I have a page setup to send an html email of a report ...
| |||||||
|
#1
| ||||
| ||||
| I'm nearing my wits end on this... I have a page setup to send an html email of a report that is generated by a given date. This form works great, exactly as expected. Now I am trying to create a new form to send a simple html email to someone and I'm being stymied at every turn... Here's the code of the page that works (the addresses have been changed to protect the innocent): PHP Code: PHP Code: Please help. I'm about to drop-kick my web server... One more ridiculous question... Is there somewhere you need to authorize a page to send email? I don't remember ever having to do that... Or would the name of the file have anything to do with it? Or the directory in which it's stored? Last edited by bryceowen; April 8th, 2009 at 01:34 PM. |
|
#2
| ||||
| ||||
| Why use an output buffer? Follow the HTML example here: PHP: mail - Manual
__________________ jmurrayhead If you agree with me... click the icon! If my post solved your problem, click the button in the lower right-hand corner of the post.If you like it here...throw us a few bones to help support us. Join our Folding team: DeveloperBarn Folding |
|
#3
| ||||
| ||||
| Well, I used the output buffer because that's what worked the first time I tried to get PHP to send HTML email. (Refer to: PHP: Sending Email (Text/HTML/Attachments)) I'm at a loss as to why it doesn't work when I copy the EXACT SAME code into another file and load it... I did go back and try it the way it says in the manual and I finally got it to send, but I'd still like the multi-part option to work right. Some of the folks who get these messages read them on their smartphones and they don't display HTML email... |
|
#4
| ||||
| ||||
| O.K. I figured out how to get the multi-part done. Just posting here for future use. I'm still not able to get it to work the way my original page works, but this accomplishes the same thing. PHP Code: |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sending Emails Using ASP.NET | richyrich | .Net Code Samples | 5 | July 6th, 2009 04:21 AM |
| Reduce HTML File Size | BLaaaaaaaaaarche | HTML & CSS Help | 1 | February 19th, 2009 08:06 PM |
| How to insert variable html into php | evdv | PHP Development | 1 | January 14th, 2009 08:54 PM |
| Sending Email with ASP and CDOSYS | jmurrayhead | ASP Code Samples | 1 | November 13th, 2008 09:26 AM |
| Sending Email using CDOSYS & Classic ASP | richyrich | ASP Code Samples | 0 | March 17th, 2008 09:52 AM |