473,387 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

do I need to configure php.ini file to send mail

254 100+
hi
i want to send mail using php. i am using wamp server for windows. do i need to configure php.ini file to send mail.

please !
Oct 16 '08 #1
7 3223
ak1dnar
1,584 Expert 1GB
Yes you should configure your SMTP settings on the php.ini file. Please do a search in this forum with "php.ini smtp" or google for it. If failed to find out any answer, we are here to help.

Thanks
Oct 16 '08 #2
first of all on local host on windows system the mail function is'nt be run or execute. You will be make configuration for SMPT mail from php.ini file.
Oct 16 '08 #3
mukeshrasm
254 100+
Yes you should configure your SMTP settings on the php.ini file. Please do a search in this forum with "php.ini smtp" or google for it. If failed to find out any answer, we are here to help.

Thanks
Thanks
I changed my settings in php.ini, but when I am sending mail from local machine to my yahoomail. though system is connected with internet. so do i need to upload this page.
Oct 16 '08 #4
maheswaran
190 100+
Hi there is no need to upload ur php.ini file.but check once again y did correct one
Oct 16 '08 #5
ak1dnar
1,584 Expert 1GB
Thanks
I changed my settings in php.ini, but when I am sending mail from local machine to my yahoomail. though system is connected with internet. so do i need to upload this page.
You can send emails from your localhost. if you know exactly about the mail settings, check the spam inbox of your mail application. may be your email has marked as spam.

Expand|Select|Wrap|Line Numbers
  1. SMTP = yoursmtpserver.com
  2. smtp_port = 25
Oct 16 '08 #6
mukeshrasm
254 100+
You can send emails from your localhost. if you know exactly about the mail settings, check the spam inbox of your mail application. may be your email has marked as spam.

Expand|Select|Wrap|Line Numbers
  1. SMTP = yoursmtpserver.com
  2. smtp_port = 25
Hi
Actually I am not receiving the mail either in inbox or in spam so do i need to upload my webpage i have checked all the settings as well. it is allright.

thanks!
Oct 17 '08 #7
ak1dnar
1,584 Expert 1GB
Hi
Actually I am not receiving the mail either in inbox or in spam so do i need to upload my webpage i have checked all the settings as well. it is allright.

thanks!
In a production server environment php mail function will work for sure. so you can go ahead and check your script on hosting server.


and in your local machine, you have to use a real SMTP server, a better way of finding this is, if you have any mail client (outlook, thunderbird) installed in your local pc, make sure to use the same smtp server in your php.ini too.

Can we have a look on your settings. ?
Oct 17 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Jofio | last post by:
I am just learning PHP. I just tried coding a php script which I saved as mail.php ---------------------------- <? $name=$_POST; $email=$_POST; $comments=$_POST;
2
by: dmiller23462 | last post by:
I would like to append to a file, AS WELL AS, send an email via ASP....I have some sample code from ASP101.com and am planning on modifying it to my uses but I don't know where exactly I should...
1
by: StevenBarnes | last post by:
I need to have some .Net code be able to send Email using my ISP's SMTP server. I found some articles on how to use the MAIL FROM: and RCPT TO: commands that you can stream to a tcp connection on...
7
by: news | last post by:
Recently our mail from our e-commerce site has been rejected by AOL due to an IP block because someone was using our PHP scripts to send spam. Well, I got that fixed. But our legitimate...
14
by: david | last post by:
I have developed web forms including login by using ASP.NET via HTTP. Now I want to secure the connection from client to the server via HTTPS. How can I configure the server or something else to...
1
by: apasj06 | last post by:
hello everyone: I am trying to send email via php. I using window XP home edition. My mail client is outlook express. I configured mail client to send email via my aol email account. mail...
3
by: =?Utf-8?B?SGFtZWRfMTk4Mw==?= | last post by:
hi i have a asp.net website and i want to send mail from my site (in iis from my computer) to my mail(for example outlook),but how to configure my email seeting in my iis on my computer ? if...
2
by: =?Utf-8?B?SHVzYW0=?= | last post by:
Hi EveryBody: How can I configure the smtp mail server in the passwordrecovery calss to make it send an e-mail to the user that contain the user password ? Any help will be appreciated ...
1
by: deepaks85 | last post by:
Dear All, I want to send some data through a form with Multiple attachment in an HTML Format. I have tried it but it is not working for me. I am able to send data without attachment but with the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.