Hi everybody,
I have been trying to write a simple mail script using PHP and apache
on Windows XP. Eventhough the script is saying that the mail is
successfully sent, I am unable get it in my mailbox(I have given my
mail address in $to). I am using the mail() function and I have made
the following changes in php.ini
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = aa*@Comcast.net
CAn anybody help me with this? 3 2251
Karuna wrote: Hi everybody, I have been trying to write a simple mail script using PHP and apache on Windows XP. Eventhough the script is saying that the mail is successfully sent, I am unable get it in my mailbox(I have given my mail address in $to). I am using the mail() function and I have made the following changes in php.ini
[mail function] ; For Win32 only. SMTP = localhost
smtp_port = 25
Do you have a mail server running on your local machine that is
listening on port 25? If you don't this isn't going to work. You
probably want to put the address of your ISP's mail server there, not
localhost.
Ken
Karuna wrote: I have been trying to write a simple mail script using PHP and apache on Windows XP. Eventhough the script is saying that the mail is successfully sent, I am unable get it in my mailbox(I have given my mail address in $to). I am using the mail() function and I have made the following changes in php.ini
[mail function] ; For Win32 only. SMTP = localhost
smtp_port = 25
; For Win32 only. sendmail_from = aa*@Comcast.net
CAn anybody help me with this?
If you have a SMTP server installed (and correctly configured) on your
machine, you should have no problem with that php.ini.
But ...
I doubt you have a mail server installed on your machine.
You have to specify an /existing/ mail server for the SMTP entry in
php.ini.
Try putting in SMTP the same server you have for your mail client
(Outlook Express????) and in sendmail_from an address for that server,
eg:
SMTP = example.com
sendmail_from = us**@example.co m
--
Mail to my "From:" address is readable by all at http://www.dodgeit.com/
== ** ## !! ------------------------------------------------ !! ## ** ==
TEXT-ONLY mail to the whole "Reply-To:" address ("My Name" <my@address>)
may bypass my spam filter. If it does, I may reply from another address!
Pedro Graca wrote: Karuna wrote: I have been trying to write a simple mail script using PHP and
apache on Windows XP. Eventhough the script is saying that the mail is successfully sent, I am unable get it in my mailbox(I have given my mail address in $to). I am using the mail() function and I have
made the following changes in php.ini
[mail function] ; For Win32 only. SMTP = localhost
smtp_port = 25
; For Win32 only. sendmail_from = aa*@Comcast.net
CAn anybody help me with this? If you have a SMTP server installed (and correctly configured) on
your machine, you should have no problem with that php.ini.
But ...
I doubt you have a mail server installed on your machine. You have to specify an /existing/ mail server for the SMTP entry in php.ini.
Try putting in SMTP the same server you have for your mail client (Outlook Express????) and in sendmail_from an address for that
server, eg:
SMTP = example.com sendmail_from = us**@example.co m
-- Mail to my "From:" address is readable by all at
http://www.dodgeit.com/ == ** ## !! ------------------------------------------------ !! ## **
== TEXT-ONLY mail to the whole "Reply-To:" address ("My Name"
<my@address>) may bypass my spam filter. If it does, I may reply from another
address!
Are you sure that the mail function return TRUE?
If it is, I found this note on the PHP.net website that said the
following. I hope this helps:
-------------------------------------------
Quote from PHP.net
-------------------------------------------
thomas at nimstad dot com
01-Oct-2004 01:40
Under win32 you must! set sendmail_from in php.ini to solve the
error: "sendmail_f rom" not set in php.ini or custom "From:" header
missing. Only setting the headers correctly won't do. When set, the
"From:" header will be used :-)
------------------------------------------- http://us2.php.net/manual/en/function.mail.php
-------------------------------------------
Hope this helps, good luck. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bruce W...1 |
last post by:
In my effort to learn PHP I'm playing with some simple email scripts. They
worked a few days ago but they stopped working. The only thing I've done to
this Windows 2000 PC in this time was a Windows Update which I do regularly.
The only part of this update that might be related was an IE 6 update.
So I uninstalled and reinstaled PHP 4.3.3. The mail server setting is correct
in the php.ini file. But email is still not being sent.
...
|
by: Tim J. |
last post by:
When I send a message using the mail command in PHP some e-mail
addresses somehow put two returns in place of one return, so this:
$message = "Test
Test2"
becomes
Test
|
by: Jagdeesh |
last post by:
Hai Colleagues,
I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've
transferred a set of folders(containing jsp files) into tomcat's
webapps directory(to /webapps/bob , /webapps/sue) and i have added the
folders bob, sue in my server.xml(in the context path).
When i am trying to run jsp files from my browser, it works fine. But,
the following jsp files reports some exceptions which is quite hard to
understand. Here is...
|
by: gregsands |
last post by:
Hi Im trying to install PHP 5.05 on Windows XP running Apache 2.0.54
Apache is running fine and ive made all the changes to the pnp.ini file
and Apache config file, restarted Apache but all I get when trying to
call my test.php file is a 404 error?
http.config file:
LoadModule php5_module "C:/php/php5apache2.dll"
PHPIniDir "C:/php"
AddType application/x-httpd-php .php
|
by: baustin75 |
last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie
only when debugging in php designer 2005
--------------------------------------------------------------------------------
Hello,
I have a very simple problem but cannot seem to figure it out. I have a
very simple php script that sends a test email to myself. When I debug
it in PHP designer, it works with no problems, I get the test email. If
| |
by: wb5plj |
last post by:
Hi I am having a problem passing some sql to the db2cmd via ant. This
is very confusing as I am doing this exact thing elseware with no
problem (just differant sql, and I have verified the sql is valid) but
in this one I am having problems. Any time I run this I get the
folowing message from the db2 clp window that opens up.
SQL0104N An unexpected token "SET" was found following
"<identifier>".
Expected tokens may include: "NEW". ...
|
by: cybervigilante |
last post by:
I can't seem to change the include path on my local winmachine no
matter what I do. It comes up as
includ_path .;C:\php5\pear in phpinfo() but there is no such file. I
installed the WAMP package and PEAR is in c:\wamp\php\pear
I modified php.ini in the c:\wamp\php directory to reflect the actual
path, but even stopping and restarting my server shows the c:
\php5\pear path. I can't change it no matter what I do I also tried
the...
|
by: btcoder |
last post by:
Hi, my jsp page uses sun.net.smtp.SmtpClient to send email. It worked fine until the hosted location was moved to another server. Now it generates the sun.net.smtp.SmtpProtocolException and the hosting company can't find what's wrong with it so I'm here hoping somebody can help.
The hosting company tried sending email from the server and it was okay and found no restrictions that prevents my page to access the smtp server.
What could cause...
|
by: phpmagesh |
last post by:
Hi,
I am using mail function in my php page, As soon i update the details, i have to send mail to the customer with the updated details,
problem is when i send mail it simple through waring msg as:
can anyone help me why such problem occurs, how to over come this problem.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |