473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Calling PHP gurus

It's nice to see all the support in this newsgroup. Hopefully I'll be a
contributor soon.

For now I'm hoping you could answer a question about the mail function in
PHP. When I use the mail command in my localhost, it's great. I can modify
the headers, use html tags, etc. But when I use it on my web space (1and1),
the header comes back as cgi-mailer-bounces-...@perfora.net, the header info
I entered, shows in the message (instead of the header) and the html tags
are displayed in the message as regular text.

Of course the php.ini file on my webspace is read only, so is there any php
commands I can use to override the display of the header and the use html
tags?

Any help would be greatly appreciated. Thanks and have a great day!
Jul 17 '05 #1
5 2898
The only way I've EVER been able to get mail working 100% of the time (i.e.
not bounced,
not blocked, thru spam filters, etc.) is the use PHPMailer
(http://phpmailer.sourceforge.net/).

"Lochness" <so*****@somewhere.com> wrote in message
news:7Ps2c.726385$ts4.121656@pd7tw3no...
It's nice to see all the support in this newsgroup. Hopefully I'll be a
contributor soon.

For now I'm hoping you could answer a question about the mail function in
PHP. When I use the mail command in my localhost, it's great. I can modify the headers, use html tags, etc. But when I use it on my web space (1and1), the header comes back as cgi-mailer-bounces-...@perfora.net, the header info I entered, shows in the message (instead of the header) and the html tags
are displayed in the message as regular text.

Of course the php.ini file on my webspace is read only, so is there any php commands I can use to override the display of the header and the use html
tags?

Any help would be greatly appreciated. Thanks and have a great day!

Jul 17 '05 #2
They dont support html email...
"Lochness" <so*****@somewhere.com> wrote in message
news:7Ps2c.726385$ts4.121656@pd7tw3no...
It's nice to see all the support in this newsgroup. Hopefully I'll be a
contributor soon.

For now I'm hoping you could answer a question about the mail function in
PHP. When I use the mail command in my localhost, it's great. I can modify the headers, use html tags, etc. But when I use it on my web space (1and1), the header comes back as cgi-mailer-bounces-...@perfora.net, the header info I entered, shows in the message (instead of the header) and the html tags
are displayed in the message as regular text.

Of course the php.ini file on my webspace is read only, so is there any php commands I can use to override the display of the header and the use html
tags?

Any help would be greatly appreciated. Thanks and have a great day!

Jul 17 '05 #3
Hello,

On 03/06/2004 08:05 PM, Lochness wrote:
It's nice to see all the support in this newsgroup. Hopefully I'll be a
contributor soon.

For now I'm hoping you could answer a question about the mail function in
PHP. When I use the mail command in my localhost, it's great. I can modify
the headers, use html tags, etc. But when I use it on my web space (1and1),
the header comes back as cgi-mailer-bounces-...@perfora.net, the header info
I entered, shows in the message (instead of the header) and the html tags
are displayed in the message as regular text.

Of course the php.ini file on my webspace is read only, so is there any php
commands I can use to override the display of the header and the use html
tags?


If they are using safe mode probably not.

Anyway, you may want to try this class that lets you specify the
return-path address as a (virtual) header of your mail messages.

It comes with several sub-classes to let you try different delivery
modes (mail() function, sendmail program, qmail program and smtp TCP
connection.) Depending on what your ISP blocked, you may want to try one
each of the sub-classes until one works.

To simplify your task, the class comes with several wrapper functions
named sendmail_mail(), qmail_mail() and smtp_mail(), each using one of
the sub classes, that emulate the mail() function, so you do not have to
change your scripts much.

http://www.phpclasses.org/mimemessage
--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Jul 17 '05 #4
Woohoo it worked awesome! And I only need to include two class files.

Thank you so much Mangina!!

"Mangina" <su*****@microsoft.com> wrote in message
news:10*************@corp.supernews.com...
The only way I've EVER been able to get mail working 100% of the time (i.e. not bounced,
not blocked, thru spam filters, etc.) is the use PHPMailer
(http://phpmailer.sourceforge.net/).

"Lochness" <so*****@somewhere.com> wrote in message
news:7Ps2c.726385$ts4.121656@pd7tw3no...
It's nice to see all the support in this newsgroup. Hopefully I'll be a
contributor soon.

For now I'm hoping you could answer a question about the mail function in PHP. When I use the mail command in my localhost, it's great. I can

modify
the headers, use html tags, etc. But when I use it on my web space

(1and1),
the header comes back as cgi-mailer-bounces-...@perfora.net, the header

info
I entered, shows in the message (instead of the header) and the html tags are displayed in the message as regular text.

Of course the php.ini file on my webspace is read only, so is there any

php
commands I can use to override the display of the header and the use html tags?

Any help would be greatly appreciated. Thanks and have a great day!


Jul 17 '05 #5
so*****@somewhere.com says...
For now I'm hoping you could answer a question about the mail function in
PHP. When I use the mail command in my localhost, it's great. I can modify
the headers, use html tags, etc. But when I use it on my web space (1and1),
the header comes back as cgi-mailer-bounces-...@perfora.net, the header info
I entered, shows in the message (instead of the header)


Email "from" and "reply-to" values set in the "header" section are
probably being over-written by security setting in mail on the server.
Not unusual. Try setting these using the fifth parameter of the mail
function instead (-f for from, reply-to). The PHP install account will
need to be "trusted" by your mail program. Eg:

$to="yo*@there.com";
$subject="The subject";
$headers="";
$body="The message.";
$params="-f me@here.com";

mail($to, $subject, $body, $headers, $params);

Geoff M
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alex | last post by:
I'm sure that the following is possible, I just need a little help please. I have a object which I declare as a application object "gObj". I need to use "gObj" with all sessions. I need...
0
by: Michael Brandt Lassen | last post by:
Hi gurus This problem is about calling Web services secured by Forms Authentication from Windows Forms user controls embedded in HTML. Using the object tag I’ve managed to include a Windows...
1
by: WindAndWaves | last post by:
Hi Gurus Can someone tell me how you can call a function/macro in another database??? TIA - Nicolaas
3
by: jburris | last post by:
I have been through enough of these threads to think that this should be an easy fix... but, are there circumstances in which the following code syntax does not work? =!!.Form! (this is out of...
0
by: Richard Mathis | last post by:
My problem is rather complicated (for me), so I'm going to post my problem here as well as what I've done so far to solve my problem. Any assistance would be appreciated. I originally posted this...
4
by: Dursun | last post by:
I need to call a subroutine in FormA from within FormB. Let FormA be an MDIForm and let FormB be its MDIChild form. So, the FormB.MDIParent property will return an object refernce to the FormA...
3
by: akg | last post by:
Hi Gurus, I have a requirement like below. In my asp.net(C#) code behind file "MyPage.aspx.cs" file I have a function like below: void PopulateAccount(int AccountNumber) { ...
6
by: Mail.To.Nathaniel | last post by:
Hi all :) I have an-easy-to-resolve (I am sure but I am obviously unable to figure the answer out) problem for C++ gurus. Here's the situation I have fallen into... 2 header files: H1.h &...
4
by: cdawson2000 | last post by:
Hello Gurus, I have a movie that is composed of a picture and 5 buttons below it. When the user clicks button1, a lighting effect occurs, then the image is changed to image1. When the user clicks...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.