|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
mail() function doesnt give any error
i have a problem in sending mail
i installed easy SMTP server and i have apache server 1.3.27 from devshed when i run this code no error appears and the mail was not sent it appears a white page when i comment the two ini_set() functions as appeared else it says failt o send the email ,any help??? <?php //ini_set("SMTP","localhost"); //ini_set("sendmail_from","funnygogo@hotmail.com"); $e_mail="funnygogo@hotmail.com"; $bodym="rn From him"; $namem="george"; $from1="From: ".$name."rn"; $gg=@mail("$e_mail","$namem","$bodym","$from1"); if($gg) print"the mail was sent "; else print"fail to send the mail"; ?> |
|
#2
|
|||
|
|||
|
RE: mail() function doesnt give any error
Try removing '@' sign near the mail() function.
|
|
#3
|
|||
|
|||
|
RE: mail() function doesnt give any error
when i remove @ near mail() function i recieved that error Warning: Failed to Receive in d:phpdevwwwsendmail.php on line 10 fail to send the mail and that is the code again <?php ini_set("SMTP","localhost"); //ini_set("sendmail_from","funnygogo@localhost.com"); $e_mail="funnygogo@hotmail.com"; $bodym="rn From him"; $namem="george"; $from1="From: ".$name."rn"; $gg=mail("$e_mail","$namem","$bodym","$from1"); if($gg) print"the mail was sent "; else print"fail to send the mail"; ?> thanks for help |
|
#4
|
|||
|
|||
|
RE: mail() function doesnt give any error
Hey, just a tip. Can you try sending your mail not to a Yahoo or Hotmail... just to another mails address. Because I have seen some guyz here had problems in sending mail from script to Yahoo and Hotmail addresses.
|
|
#5
|
|||
|
|||
|
RE: mail() function doesnt give any error
i changed the email
and it works BUT is there any way that i could send emails@yahoo.com or emails@hotmail.com becuse they are very important and also thanks for giving me hope that it will work |
|
#6
|
|||
|
|||
|
RE: mail() function doesnt give any error
thank you very much ,,,,,,,,,,, it works!!!!!!!!!!!!!!!!!1 |
|
#7
|
|||
|
|||
|
RE: mail() function doesnt give any error
Is it working for yahoo and hotmail now? Resolve the thread.
|
|
#8
|
|||
|
|||
|
RE: mail() function doesnt give any error
Sir it will be very helpful for other people if you post how you solve the problem.
|
|
#9
|
|||
|
|||
|
RE: RE: mail() function doesnt give any error
Hey guyz, I'm still have the problem, I tried the above code and I don't get any error (it say that e-mail was sent) but if I use yahoo.com or hotmail.com I dont get any mail, howerver if I use my company e-mail (company.org) it work's. Something is missing in the solution.
Quote:
|
|
#10
|
|||||
|
|||||
|
RE: mail() function doesnt give any error
Try this code for mailing to hotmail and yahoo. Worked for me!
php Code:
|
|
#11
|
|||
|
|||
|
RE: mail() function doesnt give any error
I tried, but it doesn't work. I don't get any error, then the script it's ok but I don't get the message on hotmail. I think that my problem should be somewhere in the SMTP because if I use myemail.org it works, why not for hotmail.com ?
|
|
#12
|
|||
|
|||
|
RE: mail() function doesnt give any error
Try Yahoo! instead of Hotmail. Strange thing is when I just use mail() function it didn't go to Hotmail/Yahoo. But after adding those headers it goes. Should work for you too!
|
|
#13
|
|||
|
|||
|
RE: mail() function doesnt give any error
I give up, yahoo, hotmail and latinmail, etc, don't work and even another corporate e-mail outside my server doesn't work, now I'm sure that I have a SMTP problem but I don't know what it is. Any idea ?
|
|
#14
|
|||
|
|||
|
RE: mail() function doesnt give any error
this what i did i have a hotmail account
try what i wrote and i wish you good luck PART1 configuring outlookexpress 1-open outlookexpress that is installed with windows 2-chooose tools>Accounts>Add>Mail 3-write your name thgat will be displayed in the message that will be sent 4-click Next and choose i already have an email address 5- write your email address down and click next 6-choose your incoming email service provider hotmail 8-the incoming IMAP or POP3 server is http://services.msn.com/svcs.hotmail/httpmail.asp 9-click next 10-type your account name and the password that you use to enter the hotmail and click next PARTR2 download the "easy SMTP server" to make your Pc SMTP server edit the file php.ini if you are using phpdev (wonderful) go to phpphpsapiinstall and change SMTP=yourname max_execution_time=60 #the defualt is 30 (becuse it sometimes takes much time) ______________________________________ THEN GO TO EASY SMTP SERVER>CONFIGURE>CHECK THE CHECKBOX (this check box results from configuring outlook express also edit the php>ini-dist and make it php.ini and also change SMTP+LOCALHOST MAX_EXECUTION_TIME=60 |
|
#15
|
|||
|
|||
|
RE: mail() function doesnt give any error
All emails sent using this script usually go to the Junk Email folder in hotmail. Look into the junk folder of your hotmail account. it should be there. Now, how to make the script not to send the message to junk folder is still unknown. I hope somebody can come up with a solution.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > mail() function doesnt give any error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|