- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- PHP MIME Encoded Emails Missing Content-Type
Operating System - OpenVMS
1824218
Members
3841
Online
109669
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2007 02:53 AM
01-11-2007 02:53 AM
PHP MIME Encoded Emails Missing Content-Type
I'm running a PHP script on both Windows and VMS.
The script uses the standard mimemessage class from PHP-Classes (http://www.phpclasses.org/mimemessage) to create a mixed text and HTML email message.
When I send the message from Windows, Outlook sees both the text version and HTML version fine.
When I send from VMS, the Content-Type header seems to be missing, and I just get this sort of output :-
--0aa5252431577e6f551db3ad7b8225f6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
This is an HTML message. Please use an HTML capable mail program to read this message.
--0aa5252431577e6f551db3ad7b8225f6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
It looks like the script isn't adding the MIME boundary information from VMS, but at some point it seems to :-
[To] => Rob Alpha , Robert TBS
[Subject] => Testing Manuel Lemos' MIME E-mail composing and sending PHP class: HTML message
[From] => Robert Atkinson
[Reply-To] => Robert Atkinson
[Sender] => robert@xxxxxxxxx
[Return-Path] => robert@xxxxxxxxxx
[X-Mailer] => http://www.phpclasses.org/mimemessage $Revision: 1.70 $ (mail)
[MIME-Version] => 1.0
[Content-Type] => multipart/alternative; boundary="7382dc4684130df990c17829671b46e2"
)
Any PHP pro's know what's wrong, or can give me some sample code that can output a mixed content email?
Thanks, Rob.
The script uses the standard mimemessage class from PHP-Classes (http://www.phpclasses.org/mimemessage) to create a mixed text and HTML email message.
When I send the message from Windows, Outlook sees both the text version and HTML version fine.
When I send from VMS, the Content-Type header seems to be missing, and I just get this sort of output :-
--0aa5252431577e6f551db3ad7b8225f6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
This is an HTML message. Please use an HTML capable mail program to read this message.
--0aa5252431577e6f551db3ad7b8225f6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
It looks like the script isn't adding the MIME boundary information from VMS, but at some point it seems to :-
[To] => Rob Alpha , Robert TBS
[Subject] => Testing Manuel Lemos' MIME E-mail composing and sending PHP class: HTML message
[From] => Robert Atkinson
[Reply-To] => Robert Atkinson
[Sender] => robert@xxxxxxxxx
[Return-Path] => robert@xxxxxxxxxx
[X-Mailer] => http://www.phpclasses.org/mimemessage $Revision: 1.70 $ (mail)
[MIME-Version] => 1.0
[Content-Type] => multipart/alternative; boundary="7382dc4684130df990c17829671b46e2"
)
Any PHP pro's know what's wrong, or can give me some sample code that can output a mixed content email?
Thanks, Rob.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP