Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Mail not sent problem
Hello all!

I have tried to call this functions, but it doesn`t work. Could you tell me
where the mistake is.
I have got the message: "Could not mail" and email is not sent.

$parameters = "From: website@{$_SERVER['SERVER_NAME']}\r\n" . "X-Mailer:
PHP/" . phpversion();
mail("marcinzmyslowski@poczta.onet.pl","cos","tam",$parameters) or die
("Could not mail");


Regards
Marcin



Report this thread to moderator Post Follow-up to this message
Old Post
Kamyk
02-13-05 08:57 PM


Re: Mail not sent problem
Hello,

on 02/13/2005 04:52 PM Kamyk said the following:
> Hello all!
>
> I have tried to call this functions, but it doesn`t work. Could you tell m
e
> where the mistake is.
> I have got the message: "Could not mail" and email is not sent.
>
>  $parameters = "From: website@{$_SERVER['SERVER_NAME']}\r\n" . "X-Mailer:
> PHP/" . phpversion();
> mail("marcinzmyslowski@poczta.onet.pl","cos","tam",$parameters) or die
> ("Could not mail");

If you enable error reporting, PHP will output the error that made the
mail function fail.

--

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

Report this thread to moderator Post Follow-up to this message
Old Post
Manuel Lemos
02-14-05 08:57 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Language archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:56 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.