Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
problem with php mail
Old 11-28-2007, 07:53 AM problem with php mail
Super Talker

Posts: 134
Trades: 0
i tried a test script for sending email using the php mail function. the function returns true (echo "mail sent") but no mail is arriving. i have a link to the script here. what can be the problem
__________________

Please login or register to view this content. Registration is FREE

Check out the Facebook Clone build with Jcow SNS at
Please login or register to view this content. Registration is FREE
, it is free and it always will be

Last edited by Falcone; 11-28-2007 at 08:20 AM..
Falcone is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-28-2007, 08:38 AM Re: problem with php mail
Novice Talker

Posts: 5
Trades: 0
Quote:
Originally Posted by Falcone View Post
i tried a test script for sending email using the php mail function. the function returns true (echo "mail sent") but no mail is arriving. i have a link to the script here. what can be the problem
I can't see the script as its name ends in .php I think you'll need to rename it .txt or something first. Or am I missing something here ?
pagedown is offline
Reply With Quote
View Public Profile
 
Old 11-28-2007, 09:16 AM Re: problem with php mail
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
Trades: 1
Quote:
Originally Posted by pagedown View Post
I can't see the script as its name ends in .php I think you'll need to rename it .txt or something first. Or am I missing something here ?
What rename it to txt ... why ?


@Falcone : Talk to you're server guys, they can fix the problem, it can be for these reasons :
- mail function is not properly configured
- mail function is dissabled
- a spam assasin is catching you're e-mails

Also you might want to look into phpmailer ... a php class that send e-mails by SMTP. This has better chances of landing in the receipient inbox than the php mail function. Also it make's you independent of the servers mail settings.
__________________
If you like my posts ... TK is appreciated:)

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 11-28-2007, 09:16 AM Re: problem with php mail
Super Talker

Posts: 134
Trades: 0
PHP Code:
if (mail ("***********","test","testpage",$From)){
    echo 
"mail sent";
} else {
    echo 
"mail not sent";
}
echo 
phpinfo(); 
the first part of mail is masked for obivisous reasons
__________________

Please login or register to view this content. Registration is FREE

Check out the Facebook Clone build with Jcow SNS at
Please login or register to view this content. Registration is FREE
, it is free and it always will be
Falcone is offline
Reply With Quote
View Public Profile
 
Old 11-28-2007, 09:30 AM Re: problem with php mail
Super Talker

Posts: 134
Trades: 0
Quote:
@Falcone : Talk to you're server guys, they can fix the problem, it can be for these reasons :
- mail function is not properly configured
- mail function is dissabled
- a spam assasin is catching you're e-mails

Also you might want to look into phpmailer ... a php class that send e-mails by SMTP. This has better chances of landing in the receipient inbox than the php mail function. Also it make's you independent of the servers mail settings.
they just say that sendmail is enabled
__________________

Please login or register to view this content. Registration is FREE

Check out the Facebook Clone build with Jcow SNS at
Please login or register to view this content. Registration is FREE
, it is free and it always will be
Falcone is offline
Reply With Quote
View Public Profile
 
Old 11-28-2007, 09:33 AM Re: problem with php mail
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
Trades: 1
try to send mails to you're own adress ...
do they have an online help desk ? try and do a live test with them.
__________________
If you like my posts ... TK is appreciated:)

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 11-28-2007, 09:40 AM Re: problem with php mail
Novice Talker

Posts: 5
Trades: 0
Quote:
Originally Posted by solomongaby View Post
What rename it to txt ... why ?
So we could see the code of course.

Like you say, you're best talking to your hosts. I had this once and it was a restriction where only email addresses on a domain hosted with them were acceptable.
pagedown is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to problem with php mail
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.43913 seconds with 12 queries