Only have to modify 2 ini files: php.ini and sendmail.ini
1)look for mail function in php.ini(c:/xampp/php/php.ini)>>[mail function]
change the following::
SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = [your_gmail_username]@gmail.com
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
NOTE: remove ; if it present before above lines.
2) next modify sendmail.ini(c:/xampp/sendmail/sendmail.ini)
comment the mercury as shown below
# Mercury
#account Mercury
#host localhost
#from postmaster@localhost
#auth off
# A freemail service example
#account Hotmail
#tls on
#tls_certcheck off
#host smtp.live.com
#from [exampleuser]@hotmail.com
#auth on
#user [exampleuser]@hotmail.com
#password [examplepassword]
then paste the following lines:
account Gmail
tls on
tls_certcheck off
host smtp.gmail.com
from [your_gmail_username]@gmail.com
auth on
user[your_gmail_username]@gmail.com
password x
port 587
# Set a default account
account default : Gmail
Again SAVE your changes.
Use the code below to test if it's working!
<?php
$subject="Test mail";
$to="someone@whatever.com";
$body="This is a test mail";
if (mail($to,$subject,$body))
echo "Mail sent successfully!";
else
echo"Mail not sent!";
?>
Refer:
http://www.daniweb.com/web-development/php/threads/347696/sending-email-from-localhost-in-xampp-windows
http://expertester.wordpress.com/2010/07/07/how-to-send-email-from-xampp-php/
I have a personal website please tell me how to test it for email from xampp
Samsung Mobile 24×7 Customer Care Number, Toll Free Helpline
BHIM App Customer Care Helpline Number, Complaint Email Id & Office Address
Amazon 24×7 Customer Care Number, Toll Free Support Helpline, Email Address
KSRTC Customer Care 24×7 Helpline Enquiry Number & Complaint Email Id
Google Tez 24×7 Customer Care Helpline Number, Support & Contact Details
Motorola Mobiles Customer Care Toll Free Helpline Number, Service Center & Email Id
Samsung Mobiles 24×7 Customer Care Helpline & Toll Free Support
Aveeno Customer Care Service Number, Toll Free Support
Talentedge Customer Care Support Number, Email Id, Office Address
Magicbricks.com Customer Care Helpline Number, Support Office Address
Google Tez 24×7 Customer Care Helpline Number, Support & Contact Details
Myntra 24×7 Toll Free Number & Customer Care Helpline, Email Id
Hello Prathap,
A spot on observation on what probably is “the” underlying details of SMTP configuration in Xampp server to send email in php. Too many people don’t even think about wherever there will be actual demand and more importantly what happens if this demand comes later (or maybe a lot later) than they expect
I know this question has been answered numerous time, but I can't seem to find a right Linux OS for it. Zombie is a process state when the child dies before the parent process. In this case the structural information of the process is still in the process table.
Just wondering if there are any other browsers available for MintPPC/Linux Mint, besides Ice weasel and Midori. Preferably one that has been altivec or vector accelerated.
By the way do you have any YouTube videos, would love to watch it. I would like to connect you on LinkedIn, great to have experts like you in my connection (In case, if you don’t have any issues).
Gracias,
Kevin