Ask a Question related to PHP Development, Design and Development.
-
Lochness #1
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!
Lochness Guest
-
Need SQL Query Help from Gurus
I have a table that stores ratings information (column called PPMSBRTotal) for vendors on a monthly basis. The ratings data is stored along with the... -
Any DataGrid Gurus out there?
Hi How can I force a DataGrid into Edit Mode from Page_Load? How can I call the ItemCommand from Page_Load? Can I have a hidden CommandButton... -
Calling on the Flash gurus!! How do I bring in a multi-page PDF into Flash?
Hello, I think this may be new territory, well for me at least. I am trying to IMPORT a cable drawing package (PDF with over a hundred pages)... -
Question to all ASP GURUS
Hi all Is there any way I can copy one folder from one place to another place over the internet.... Kind regards -
Hey layers gurus-need an eye here
This is my first "real" attempt at using layers. www.billraydrums.com/7_19_03/new.htm Please take a look-see and give me some hints as to how... -
Mangina #2
Re: Calling PHP gurus
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
([url]http://phpmailer.sourceforge.net/[/url]).
"Lochness" <someone@somewhere.com> wrote in message
news:7Ps2c.726385$ts4.121656@pd7tw3no...modify> 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(1and1),> the headers, use html tags, etc. But when I use it on my web spaceinfo> the header comes back as cgi-mailer-bounces-...@perfora.net, the headerphp> 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> 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!
>
>
Mangina Guest
-
Hayden Kirk #3
Re: Calling PHP gurus
They dont support html email...
"Lochness" <someone@somewhere.com> wrote in message
news:7Ps2c.726385$ts4.121656@pd7tw3no...modify> 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(1and1),> the headers, use html tags, etc. But when I use it on my web spaceinfo> the header comes back as cgi-mailer-bounces-...@perfora.net, the headerphp> 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> 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!
>
>
Hayden Kirk Guest
-
Manuel Lemos #4
Re: Calling PHP gurus
Hello,
On 03/06/2004 08:05 PM, Lochness wrote:If they are using safe mode probably not.> 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?
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.
[url]http://www.phpclasses.org/mimemessage[/url]
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
[url]http://www.phpclasses.org/[/url]
PHP Reviews - Reviews of PHP books and other products
[url]http://www.phpclasses.org/reviews/[/url]
Metastorage - Data object relational mapping layer generator
[url]http://www.meta-language.net/metastorage.html[/url]
Manuel Lemos Guest
-
Lochness #5
Re: Calling PHP gurus
Woohoo it worked awesome! And I only need to include two class files.
Thank you so much Mangina!!
"Mangina" <support@microsoft.com> wrote in message
news:104kmicgbi8vca0@corp.supernews.com...(i.e.> The only way I've EVER been able to get mail working 100% of the timein> not bounced,
> not blocked, thru spam filters, etc.) is the use PHPMailer
> ([url]http://phpmailer.sourceforge.net/[/url]).
>
> "Lochness" <someone@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 functiontags> modify> > PHP. When I use the mail command in my localhost, it's great. I can> (1and1),> > the headers, use html tags, etc. But when I use it on my web space> info> > the header comes back as cgi-mailer-bounces-...@perfora.net, the header> > I entered, shows in the message (instead of the header) and the htmlhtml> php> > are displayed in the message as regular text.
> >
> > Of course the php.ini file on my webspace is read only, so is there any> > commands I can use to override the display of the header and the use>> > tags?
> >
> > Any help would be greatly appreciated. Thanks and have a great day!
> >
> >
>
Lochness Guest
-
gmuldoon #6
Re: Calling PHP gurus
[email]someone@somewhere.com[/email] says...
Email "from" and "reply-to" values set in the "header" section are> 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)
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="you@there.com";
$subject="The subject";
$headers="";
$body="The message.";
$params="-f [email]me@here.com[/email]";
mail($to, $subject, $body, $headers, $params);
Geoff M
gmuldoon Guest



Reply With Quote

