PHP INI mail stuff…

Ask about a PHP problem here.
Post Reply
JelvinJS7
Posts: 341
Joined: Thu May 12, 2011 8:40 pm

PHP INI mail stuff…

Post 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.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: PHP INI mail stuff…

Post 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 ?
Image
JelvinJS7
Posts: 341
Joined: Thu May 12, 2011 8:40 pm

Re: PHP INI mail stuff…

Post 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
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: PHP INI mail stuff…

Post 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 ?
Image
JelvinJS7
Posts: 341
Joined: Thu May 12, 2011 8:40 pm

Re: PHP INI mail stuff…

Post 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… :oops: 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…!)
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: PHP INI mail stuff…

Post 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.
Image
JelvinJS7
Posts: 341
Joined: Thu May 12, 2011 8:40 pm

Re: PHP INI mail stuff…

Post 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
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: PHP INI mail stuff…

Post 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.
Image
JelvinJS7
Posts: 341
Joined: Thu May 12, 2011 8:40 pm

Re: PHP INI mail stuff…

Post by JelvinJS7 »

jacek wrote:
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.
that didn't really help. i'm not sure if i have any files or directories in my XAMPP package
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: PHP INI mail stuff…

Post 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.
Image
amer4web
Posts: 4
Joined: Tue Oct 11, 2011 6:02 pm

Re: PHP INI mail stuff…

Post 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.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: PHP INI mail stuff…

Post 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.
Image
amer4web
Posts: 4
Joined: Tue Oct 11, 2011 6:02 pm

Re: PHP INI mail stuff…

Post 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.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: PHP INI mail stuff…

Post 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.
Image
amer4web
Posts: 4
Joined: Tue Oct 11, 2011 6:02 pm

Re: PHP INI mail stuff…

Post 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.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: PHP INI mail stuff…

Post 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.
Image
Post Reply