Forum     

Go Back   Digit Technology Discussion Forum > Internet and Networking > Internet & WWW
Register FAQ Calendar Mark Forums Read

Internet & WWW Web browsers, online services which you like, tutorials or questions about any online service on the web, this is the place


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 28-10-2004, 12:46 AM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Oct 2004
Posts: 13
Default PHP mail function


somebody please tell me how to use the php mail function. i think its sytax is
mail(Senerder's address, subject , body)
but the above one is not sending the mail so should i have to configure myoutgoing mail server before using this function or the above sytanx has to be change
anilsmart is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 28-10-2004, 10:57 AM   #2 (permalink)
Alpha Geek
 
Join Date: Feb 2004
Location: New Delhi
Posts: 890
Default

i dont know anything about php coding....but i do know that many sites dont support the mail function of php unless u pay them....if ur on a free site that may be so
ishaan is offline  
Old 28-10-2004, 11:17 AM   #3 (permalink)
Bewitched!
 
xenkatesh's Avatar
 
Join Date: Feb 2004
Location: chennai
Posts: 468
Default

Why dont u Google and search????
__________________
Keep your friends close and enemy CLOSER!!!
Ragnarok Online: One World, One Million Possibilities.. :)
xenkatesh is offline  
Old 28-10-2004, 06:15 PM   #4 (permalink)
In The Zone
 
firewall's Avatar
 
Join Date: Mar 2004
Location: Kolkata - INDIA
Posts: 301
Default

check this out

http://www.phpfreaks.com/phpmanual/p...tion.mail.html

__________________
www.aloke.info
firewall is offline  
Old 28-10-2004, 10:50 PM   #5 (permalink)
Apprentice
 
Join Date: Sep 2004
Location: Thimphu
Posts: 87
Default Well try , why not try PM experts

Ok best way to pin point ur bug is PM experts in this foroum , say like Yahoo mSg or MSN msg...u hit the jack pot duide
__________________
Flip like a butterfly, sting like a bee
Butterfly is offline  
Old 28-10-2004, 11:40 PM   #6 (permalink)
Version 2.0
 
Deep's Avatar
 
Join Date: Jan 2004
Location: Mumbai
Posts: 977
Default

mail ($mail_to,$mail_subject,$mail_message,$mail_from);

or if you want to write direct address then

mail ("deep@deep.com","Hi this is subject","this is body","deep@from.com");

you can also pass headers through mail function i.e. to send html mails or attach stuff into mail..

tell me the exact requirements so that i can help you out..

Deep
__________________
- Deep Ganatra -
www.whoisdeep.com
www.twitter.com/DeepXP/
Deep is offline  
Old 29-10-2004, 12:05 AM   #7 (permalink)
Right Off the Assembly Line
 
Join Date: Oct 2004
Posts: 13
Default

WELL DEEP THANX FOR YOUR GREAT HELP BUT I M STILL UNABLE TO SEND MAILS USING PHP MAIL(). HERE THE TEST CODE I USE TO SEND MAIL CHECK THIS AND TELL ME WHERE IS THE FAULT:
<?php
if(mail("anilmail17@yahoo.co.in","hiiiii","check this"))
echo "mail sended";
else
echo "mail delivery failure";
?>

I HAD VISITED YOUR SITE WWW.WHOISDEEP.COM AND LIKE IT VERY MUCH.
anilsmart is offline  
Old 29-10-2004, 12:11 AM   #8 (permalink)
Version 2.0
 
Deep's Avatar
 
Join Date: Jan 2004
Location: Mumbai
Posts: 977
Default

Quote:
Originally Posted by anilsmart
WELL DEEP THANX FOR YOUR GREAT HELP BUT I M STILL UNABLE TO SEND MAILS USING PHP MAIL(). HERE THE TEST CODE I USE TO SEND MAIL CHECK THIS AND TELL ME WHERE IS THE FAULT:
<?php
if(mail("anilmail17@yahoo.co.in","hiiiii","check this"))
echo "mail sended";
else
echo "mail delivery failure";
?>

I HAD VISITED YOUR SITE WWW.WHOISDEEP.COM AND LIKE IT VERY MUCH.
thanks anil for the compliment

code seems to be working fine but something wrong with the condition..

what exactly u wanna do ?

coz your if condition seems to be incorrect... (code is proper but logic doesnt seem to be right)

Deep
__________________
- Deep Ganatra -
www.whoisdeep.com
www.twitter.com/DeepXP/
Deep is offline  
Old 29-10-2004, 12:20 AM   #9 (permalink)
Right Off the Assembly Line
 
Join Date: Oct 2004
Posts: 13
Default

THIS IS TEST CODE I M USING TO CHECK HOW TO USE THE MAIL FUNTCION MY SERVER IS FREELINUX.COM AND HERE ARE IT DETAILS

SMTP (outgoing mail server) : mail.freelinuxhost.com
SMTP port : 25
Operating system : Debian GNU/Linux
anilsmart is offline  
Old 29-10-2004, 12:24 AM   #10 (permalink)
Version 2.0
 
Deep's Avatar
 
Join Date: Jan 2004
Location: Mumbai
Posts: 977
Default

hmm i think it shall work without giving codition also

if mail isnot been sent due to code error then it shall throw the error on the page..

what error is it showing u ?

Deep
__________________
- Deep Ganatra -
www.whoisdeep.com
www.twitter.com/DeepXP/
Deep is offline  
Old 29-10-2004, 12:40 AM   #11 (permalink)
Right Off the Assembly Line
 
Join Date: Oct 2004
Posts: 13
Default

NO I M NOT GETTING ANY TYPE OF ERROR CODE THE CODE WORKS FINE I GET THE OUTPUT 'MAIL SENDED' BUT NO NEW MAIL IS RECIVED TO ME
YOU CAN CHECK THIS http://efriend.freelinuxhost.com/mail.php
anilsmart is offline  
Old 29-10-2004, 07:12 AM   #12 (permalink)
Version 2.0
 
Deep's Avatar
 
Join Date: Jan 2004
Location: Mumbai
Posts: 977
Default

then it should go logically...

try adding from address in the end coz sometimes web host can disable from "nobody" by default...

add from address in the end and see..

Deep
__________________
- Deep Ganatra -
www.whoisdeep.com
www.twitter.com/DeepXP/
Deep is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Tenida
- by trublu
- by Sujeet
- by kool
- by ico

Advertisement




All times are GMT +5.5. The time now is 12:16 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2