Page 1 of 1

Mail features

PostPosted: 05. July 2010 12:45
by psyyy
Hey there,

I'm a php coder and I hate that it's very uncomfortable to debug mail-programs: Did the mail arrive? Did everything work (plaintext/htmltext) etc... Currently, I'm always var_dump($phpmailer) (I'm using the phpmailer class) and look, if everything's alright.

But it would be nice, if it would be able to have a local mail-listening service on localhost (I did not configure localhost to be able to send mails, so currently, the mails just aren't sent) which displays all sent mails with subject, receiver-mail, receiver-name, and contents.

Is there anything like that?

Re: Mail features

PostPosted: 09. July 2010 13:34
by psyyy
Anybody? :(

Re: Mail features

PostPosted: 09. July 2010 14:12
by JonB
apparently not. (other than maybe me :mrgreen: )

I'm not sure on this (although I know a pretty fair amount about e-mail services) but you might be able to loopback an SMTP server and client (like Mercury Mail). You might have to use hosts file entries as you will need 'servernames' such as mail.blahblahblah.local to pick up the mail from. You would use the XAMMP sendmail.exe in mail_function in php.ini (search for help on that in this forum or check my post viewtopic.php?f=16&t=41163 ) and you would need to configure Mercury as an SMTP and POP server -- then use a standard e-mail client like Thunderbird or Zimbra to pickup the mail.

see this video, it seems to be what you are after =

I don't use Mercury, so I am unfamiliar with its configuration, I use hMail (another free -- and very powerful -- Windows Mailserver. Its an excellent scalable solution that has great support in their forums (thanks Doom)

You could Google loopback mail, too --- :idea:

Good Luck with your project.

Re: Mail features

PostPosted: 09. July 2010 15:53
by psyyy
Ah I see, thanks! Probably it's not so easy to solve since I would have to direct every mail-addy




and I would have to have an account for each mail addy... :( So it's probably really only a very very light test case

Re: Mail features

PostPosted: 09. July 2010 18:35
by JonB
Prolly not

just make a Hosts entry that redirects to

it gets tricky though, so prolly 'not easy' as you say.

Good Luck

Re: Mail features

PostPosted: 09. July 2010 18:38
by psyyy
Yeah sure but instead of, there can be anything ... Perhaps better I'm directly replacing all mail addys in the DB with


^^ Easier, even if not the real setup...