Author Topic: mail() not working?  (Read 7254 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: mail() not working?
« Reply #15 on: November 02, 2012, 03:55:36 pm »
How to execute shell commands/binaries
exec() http://www.php.net/manual/en/function.exec.php
shell_exec() http://php.net/manual/en/function.shell-exec.php
system() http://www.php.net/manual/en/function.system.php
passthru() http://www.php.net/manual/en/function.passthru.php
popen() http://www.php.net/manual/en/function.popen.php
pcntl_exec() http://www.php.net/manual/en/function.pcntl-exec.php
I was not aware there was so many x.x Good thing I googled them lol

That was the reason why I didn't provide any code for running it :P
It's been too long since I used it.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: mail() not working?
« Reply #16 on: November 02, 2012, 03:58:12 pm »
BY the way is juju server in safe mode? I know on United-TI web hosting I had troubles with mail() due to that (I had a forum installed there and people would never get their activation e-mails and there were other broken stuff as well that are not related to e-mailing, such as automated login)

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: mail() not working?
« Reply #17 on: November 02, 2012, 04:19:46 pm »
BY the way is juju server in safe mode? I know on United-TI web hosting I had troubles with mail() due to that (I had a forum installed there and people would never get their activation e-mails and there were other broken stuff as well that are not related to e-mailing, such as automated login)
No. mail() relies on a sendmail binary, which wasn't working.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: mail() not working?
« Reply #18 on: November 02, 2012, 06:54:53 pm »
It is now fixed. I think I messed it up when I tried setting up email accounts...
Yay!

I noticed mail() doesn't work on your server months ago but I guess I never reported the bug.

I ended up implementing SMTP to send emails through my Gmail address, which made it less spam-block-prone anyway.
« Last Edit: November 02, 2012, 06:55:39 pm by Deep Thought »




Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: mail() not working?
« Reply #19 on: November 03, 2012, 02:07:53 am »
It is now fixed. I think I messed it up when I tried setting up email accounts...
Yay!

I noticed mail() doesn't work on your server months ago but I guess I never reported the bug.

I ended up implementing SMTP to send emails through my Gmail address, which made it less spam-block-prone anyway.
so php mail() is being recognized wildley as spam? that's why my emails always end in the spam folders. How can i overgo that easily? Just buy setting up a SMTP or what?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: mail() not working?
« Reply #20 on: November 03, 2012, 10:19:16 am »
It is now fixed. I think I messed it up when I tried setting up email accounts...
Yay!

I noticed mail() doesn't work on your server months ago but I guess I never reported the bug.

I ended up implementing SMTP to send emails through my Gmail address, which made it less spam-block-prone anyway.

Well, I am only sending emails to myself with the script, and none of the stuff gets in my spam box, so i'm happy. :)



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: mail() not working?
« Reply #21 on: November 03, 2012, 01:46:34 pm »
so php mail() is being recognized wildley as spam? that's why my emails always end in the spam folders. How can i overgo that easily? Just buy setting up a SMTP or what?
No, it's just that Gmail (or whatever email service you use) probably doesn't recognize the server you're sending from. You can use any From address in mail(), so Gmail needs a way to verify you're actually responsible for that mail domain.




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: mail() not working?
« Reply #22 on: November 03, 2012, 01:59:37 pm »
Don't Gmail flag stuff as spam only when it contains suspicious content (such as the mispelled words caialias, parno, inlarge) or when multiple identical e-mails are sent from an e-mail address?