|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
hai i am using the mail function to send mail (using private computer)..
<?php mail("gautamsurana@rediffmail.com","this is the subject","body"); ?> but i am getting the following erorr Warning: Failed to Receive in C:\apache\htdocs\trialmail.php on line 3 plz can anybody advise me on it..whats going wrong.. i have got my smtp setting in my computer as localhost. i have also changed to smtp address . but to know avail can anybody help |
|
#2
|
|||
|
|||
|
What OS is this running on?
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#3
|
|||
|
|||
|
hai laidback
hai i am using windows os. (windows xp)..
|
|
#4
|
|||
|
|||
|
Hi,
It is important that you pay close attention to how you setup your php.ini especially while running on a windows based server. This is important not only for funtionality, but security as well. To solve your particular problem, you MOST LIKELY will need to set the following variables in your PHP.INI: SMTP = ; sendmail_from = ; SMTP should contain a value for the smtp server you use to send mail from. If you are using IIS SMTP you can enter 'localhost' as the value here. sendmail_from would be the email address you want messages from PHP to be sent from. |
|
#5
|
|||
|
|||
|
hai thanks a lot. i will try it out..thanks
|
![]() |
| Viewing: Dev Articles Community Forums > Community > Development Tutorials > mail function |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|