• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[PHP]Mail(); SMTP.

Joined
Jul 26, 2006
Messages
3,634
Reaction score
1,007
I'm currently messin' around with the PHP 'mail();' function, and recently found out I need a 'SMTP Mailserver' for it.
My xampp has MercuryMail included, but when I use mail();, it doesnt send/receive (the mail is sent to my Gmail) it.

I really wanna get this workin' =x
Can anyone sortta teach me how to work with it/advice me a good SMTP MailServer?
 
Custom Title Activated
Loyal Member
Joined
Jun 28, 2007
Messages
2,986
Reaction score
3
Do not use mail(), instead use PHPMailer or SwiftMailer (didn't I advice it to you earlier?).

Mail() does not send headers correctly and is considered being slow.
 
Master Summoner
Joined
Nov 14, 2004
Messages
533
Reaction score
1
What Daevius said.
mail() sucks at the headers part, and god forbid you send something properly.
Also, don't use XAMPP.


[Fd]
 
Ex-Mod
Loyal Member
Joined
Nov 20, 2004
Messages
1,414
Reaction score
27
I'm using something different on my site, I'm redesigning. I have a PHP script that mails through a SMTP server. I have mine mail through Comcast.



Thats the one I use.
 
Joined
Jul 26, 2006
Messages
3,634
Reaction score
1,007
I'm not very familiar with classes/etc.. I get this error with the script bitblaster posted:
Code:
Fatal error: Using $this when not in object context in C:\Program Files\xampp\htdocs\runescape\class.smtp.inc on line 82

Ln. 81: if(!isset($this->status)){

EDIT:
Seen to fix that with some googling, but now it'll just load until max. execution time is over..
 
Back
Top