By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,357 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

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

100+
P: 254
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
Share this Question
Share on Google+
7 Replies


ak1dnar
Expert 100+
P: 1,584
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

zabsmarty
P: 25
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

100+
P: 254
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

100+
P: 190
Hi there is no need to upload ur php.ini file.but check once again y did correct one
Oct 16 '08 #5

ak1dnar
Expert 100+
P: 1,584
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

100+
P: 254
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
Expert 100+
P: 1,584
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

Post your reply

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