Page 1 of 1
PHP INI mail stuff…
Posted: Tue Jun 21, 2011 7:46 pm
by JelvinJS7
i finally figured out how to edit the php.ini file!
what does ini stand for?…
anyways, i think this may hold the solution to my mail-not-working problem, as posted on phpacademy.
it still doesn't work
. so does anyone know what edits i need to make on the ini file? like, should smtp be set as localhost, or should it be some gmail thing, or WHAT?!?!
basically, any information you can possibly give me to make this finally work would be greatly appreciated.
Re: PHP INI mail stuff…
Posted: Tue Jun 21, 2011 9:07 pm
by jacek
JelvinJS7 wrote:what does ini stand for?…
wikipedia wrote:The name "INI file" comes from the filename extension usually used, ".INI", that stands for "initialization".
JelvinJS7 wrote:should smtp be set as localhost
It should if you have a SMTP server running locally ?
But more information is needed, what OS are you running for one ?
Re: PHP INI mail stuff…
Posted: Tue Jun 21, 2011 9:18 pm
by JelvinJS7
jacek wrote:JelvinJS7 wrote:
what does ini stand for?…
wikipedia wrote:The name "INI file" comes from the filename extension usually used, ".INI", that stands for "initialization".
That was actually just meant to be asked and left unanswered… but thanks anyways!
jacek wrote:It should if you have a SMTP server running locally ?
But more information is needed, what OS are you running for one ?
(dang I meant to include that…)
It's XAMPP (most recent version, re-downloaded [about the 3rd tine I've gotten it] it today) on Mac OS X 10.5.8
Re: PHP INI mail stuff…
Posted: Wed Jun 22, 2011 11:31 am
by jacek
JelvinJS7 wrote:on Mac OS X 10.5.8
I believe OS X uses the sendmail bin system that Linux uses, you can check this by typing "sendmail" into to a terminal and seeing what type of error you get. If that is the case the SMTP line will have no effect at all, if not then does XAMPP not come with a SMTP server ?
Re: PHP INI mail stuff…
Posted: Thu Jun 23, 2011 3:01 am
by JelvinJS7
jacek wrote:you can check this by typing "sendmail" into to a terminal
I forgot to do this when I was in the computer today…
lol whoops fail!
But anyways, do you literally mean go to terminal, and on my keyboard type "S+E+N+D+M+A+I+L+ENTER"?
jacek wrote:then does XAMPP not come with a SMTP server ?
I have no clue. Honestly, I'm REALKY stupid with server stuff, and in fact a lot of stuff outside the basics of programming (and some stuff IN the basics…!)
Re: PHP INI mail stuff…
Posted: Thu Jun 23, 2011 7:52 am
by jacek
JelvinJS7 wrote:and on my keyboard type "S+E+N+D+M+A+I+L+ENTER"?
Yup
not in caps though.
JelvinJS7 wrote:I have no clue
Okay, well it does. Mercury or something I think it's called, you have to start it from the control panel.
Re: PHP INI mail stuff…
Posted: Thu Jun 23, 2011 10:35 am
by JelvinJS7
jacek wrote:JelvinJS7 wrote:
I have no clue
Okay, well it does. Mercury or something I think it's called, you have to start it from the control panel.
mac XAMPP only comes with Apache, MySQL, and ProFTP
Re: PHP INI mail stuff…
Posted: Thu Jun 23, 2011 10:57 am
by jacek
JelvinJS7 wrote:mac XAMPP only comes with Apache, MySQL, and ProFTP
By the looks of this
http://theandystratton.com/2009/fix-php ... ard-update you have one, but it is turned off.
Re: PHP INI mail stuff…
Posted: Thu Jun 23, 2011 6:12 pm
by JelvinJS7
that didn't really help. i'm not sure if i have any files or directories in my XAMPP package
Re: PHP INI mail stuff…
Posted: Thu Jun 23, 2011 8:31 pm
by jacek
JelvinJS7 wrote:that didn't really help
Based on that link, what did you try to d, in what way did it not work ?
JelvinJS7 wrote:i'm not sure if i have any files or directories in my XAMPP package
you should have.
Re: PHP INI mail stuff…
Posted: Tue Oct 11, 2011 6:29 pm
by amer4web
I have this problem too. I am pretty sure that I wrote all the code correctly. Still, the email is not sent. I do not why. What do I have to try. I tried to change the smpt server to address that I am using in my pop3 account. My OS Platform is Windows.
Re: PHP INI mail stuff…
Posted: Tue Oct 11, 2011 7:14 pm
by jacek
If you don't get any error and the email just does not arrive it may be that your ISP is blocking it, they do that sometimes to prevent their network being used by spammers.
To be honest the best thing to do would be to just assume that the email will be sent once you upload your files.
Re: PHP INI mail stuff…
Posted: Wed Oct 12, 2011 7:25 am
by amer4web
Thanks Jacek,
I have 2 email address one is pop3 email for my company and one gmail. What should I do? Do I need to modify php.ini mail part or what should I do.
I also have used your Email-File-Attachment Tutorial as you wrote it to the letter. Unfortunately, it did not work.
Can you help me on that issue.
Re: PHP INI mail stuff…
Posted: Wed Oct 12, 2011 12:33 pm
by jacek
You may be hitting the gmail spam filter, like I said it might just be best to upload the files and test them on your webhosts server.
Re: PHP INI mail stuff…
Posted: Thu Oct 20, 2011 9:11 pm
by amer4web
Well, I uploaded e-mail PHP scrip files into web host server and it works. I am finally able to send e-mail using PHP mail function. I tried Gmail e-mail and other POP3 paid email. Can I use this way of sending e-mails in case my e-mail is not working or something.
Re: PHP INI mail stuff…
Posted: Fri Oct 21, 2011 2:08 pm
by jacek
amer4web wrote:Can I use this way of sending e-mails in case my e-mail is not working or something.
I guess you could.