FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP Mail
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP Mail [message #170767 is a reply to message #170765] Mon, 22 November 2010 08:38 Go to previous messageGo to previous message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma:
Senior Member
On 21-11-10 21:38, The Magnet wrote:
> On Nov 21, 12:02 pm, Michael Fesser<neti...@gmx.de> wrote:
>> .oO(Robert Hairgrove)
>>
>>> The Magnet wrote:
>>>> Hi,
>>
>>>> In this application the PHP scripts are running on one server, but the
>>>> postfix server is a different machine. I tried this Pear mail and
>>>> although it does send using a report SMTP server there are a few
>>>> things that I cannot seem to do:
>>
>>>> - Cannot seem to alter headers to send HTML email
>>>> - Recipient always has email appear as "undisclosed-recipients"
>>
>>>> Can anyone help? Is there a better / easier way to do this? We need
>>>> to send HTML emails. We tried PHPMailer and could not get it to work
>>>> at all, so, we are looking for another suggestion.
>>
>> It might help to say what "could not get it to work" means. Such a
>> simple "doesn't work" is no error description and hence pretty useless.
>>
>>> Most of these extra mail libraries are overkill.
>>
>> Not really.
>>
>>> Did you look at the PHP
>>> site documentation for the mail() function?
>>
>> If you have a reliable mailer class, you really don't want to use the
>> mail() function anymore. Especially creating MIME meassages by hand is
>> just nonsense, error-prone and too much work.
>>
>>> There are some examples
>>> (perhaps contributed by 3rd parties) which show you how to send HTML
>>> emails. If you always use the same format, i.e. maybe with no additional
>>> attachments, it is pretty simple to roll your own function using the
>>> mail() function.
>>
>> With a good class it's even simpler and much more reliable:
>>
>> $mail = new Mail(…);
>> $mail->addAddress(…);
>> $mail->addAttachment(…);
>> $mail->send();
>>
>> Something like that.
>>
>>> Also, it is a good idea to read the RFC docs referenced in the PHP site
>>> to understand what is going on WRT email headers.
>>
>> A good class takes care of all those things, including prevention of
>> header injection, which is often forgotten when using mail().
>>
>> Micha
>
>
> I'm sorry, I should have been more detailed. I am running CentOS
> 5.x. We were using mail(), but now since Postfix is on the other
> server, I need to find a way to have it use that server.
>
> With PHPMailer, there was some sort of class file which I could not
> find and could not get the procedure working. I cannot explain it,
> just the call did not do anything.If you have an example of how
> PHPMailer is used or where I can go to see one, and get a complete
> copy of it, because the copies I downloaded were always missing some
> class.xxxxxxx.xxxxx file.
>
> Thanks you a lot.
>
>

what is wrong with:
http://tinyurl.com/34y6r4g


--
Luuk
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Firewall - NetDefender :
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 08:47:02 GMT 2024

Total time taken to generate the page: 0.04014 seconds