php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #8006 raw_mail() function
Submitted: 2000-11-28 03:31 UTC Modified: 2003-02-26 14:16 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: james at ractive dot ch Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.0.3pl1 OS: all
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: james at ractive dot ch
New email:
PHP Version: OS:

 

 [2000-11-28 03:31 UTC] james at ractive dot ch
Dear PHP-Team

Maybe I'm not alone with my request.
What if you'd add a function that sends a mail without any parameters, but just the raw text that contains all header information?
The "problem" with the mail function is, that I have to strip out the "To:" and the "Subject:" header fields in the "addtitional headers". Otherwise the function mail() adds them again so that they are double.

My idea would be a function that just takes the full mail without any to, subject or additional headers parameters.
bool raw_mail (string mail)

Just an idea...

Regards

Jean-Pierre Bergamin
http://www.ractive.ch/gpl/popper.html

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-26 14:16 UTC] derick@php.net
Just use proc_open() or similar to open a pipe to sendmail and feed it the "raw data".

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC