I'm making a website and am in need of a function to send mails.
I have find two ways of doing this.
First one is to use PHP's built-in function called "mail()".
Second is the PEAR module "mail.php".
Can someone recommend one thing over the other? Anyone have any previous experience with this sort of thing?
Thanks in advance :)
mail() is simple but it seems like it doesnt always work, my web server sends some messages but not others, same addresses, same subject, different content.
That's weird :S
I know for a fact that PEAR's package is capable of using a SMTP server which (should) always work? But I haven't gotten the Mail.php package to work :S
PHP while using mail() can use a SMTP server. Check out the PHP.ini file settings.
mail() works fine for most everything -- I would recommend it.
mail() has always worked fine for me (on 3 servers), so I recommend that.
Okay thanks guys :)
Is it possible to specify smtp-account password?
Know what would be nice, if someone made an facepunch private smtp server.
That would actually be awesome Oo
[QUOTE=Wipmuck;19400127]Know what would be nice, if someone made an facepunch private smtp server.[/QUOTE]
..but why? lol
[QUOTE=Wipmuck;19400127]Know what would be nice, if someone made an facepunch private smtp server.[/QUOTE]
There's one: facepunchstudios.com
[QUOTE=Eax;19399765]Okay thanks guys :)
Is it possible to specify smtp-account password?[/QUOTE]
[url]http://blog.taragana.com/index.php/archive/how-to-send-mails-using-smtp-server-in-php/[/url]
I feel like a massive nerd for saying this, but learn to read documentation.
[img]http://imgkk.com/i/6HyyX8.png[/img]
[QUOTE=n0t_-vladh;19401506]I feel like a massive nerd for saying this, but learn to read documentation.
[img]http://imgkk.com/i/6HyyX8.png[/img][/QUOTE]
Mail() has worked fine for me when I've used it to send a shitload at once.
[QUOTE=nivek;19408297]Mail() has worked fine for me when I've used it to send a shitload at once.[/QUOTE]
It will work fine, it's just inefficient.
Sorry, you need to Log In to post a reply to this thread.