Page 1 of 1
Sending mail with Swift from local machine
Posted: Sat Jan 19, 2008 1:26 pm
by Oren
Hey guys,
My situation is simple: I installed WAMP on my PC at work (at home I install everything manually). If that makes any difference, the OS is Vista. Now I want to be able to send mail from this PC using PHP and Swift, but I guess I need to install some sort of SMTP server to be able to do that, but I'm not sure what is involved exactly. So... what exactly I need to do to be able to use Swift from this PC? Plus, what do I pass to Swift_Connection_SMTP()? 'localhost'?
Re: Sending mail with Swift from local machine
Posted: Sat Jan 19, 2008 5:21 pm
by Chris Corbyn
I'd strongly discourage this based on the assumption that your machine has a dynamic IP address. If it as a static IP then yes, you'll need to install a SMTP server. I don't know much about things like this on windows but I understand it has SMTP built in as an optional service.
If your IP is dynamic you'll fail to send email to the majority of hosts since it almost always means your automatically blacklisted. Connect to your company's SMTP server instead

Re: Sending mail with Swift from local machine
Posted: Sun Jan 20, 2008 10:15 am
by Oren
This specific problem at work is now solved, but I'm still looking for an answer. Assuming I have a normal home connection with dynamic IP and a Windows machine, what are my options?
Re: Sending mail with Swift from local machine
Posted: Sun Jan 20, 2008 4:40 pm
by Chris Corbyn
Your only real option is to pass the mail to a real mail server. The dynamic IP is a big sticking point, even with reverse DNS entries and/or a domain name from something like dyndns.
Sure, you can install a SMTP server in the machine (or use the windows one), but I wouldn't do that if you need to send email to customers or anything

Re: Sending mail with Swift from local machine
Posted: Mon Jan 21, 2008 2:45 pm
by Oren
No, I just want to use it while building my projects locally. Once the project is done, it will run on a real server.
Re: Sending mail with Swift from local machine
Posted: Mon Jan 21, 2008 3:23 pm
by John Cartwright
Oren wrote:No, I just want to use it while building my projects locally. Once the project is done, it will run on a real server.
If you have a gmail account you can connect to the gmail SMTP server
Re: Sending mail with Swift from local machine
Posted: Mon Jan 21, 2008 5:32 pm
by Chris Corbyn
Ah, in that case just use windows SMTP which is built in. There's an SMTP server written by Marcus Baker (author of SimpleTest) called FakeMail. It's on SourceForge. Basically FakeMail just writes the email to a file on disk instead of actually sending it.
Re: Sending mail with Swift from local machine
Posted: Mon Jan 21, 2008 5:51 pm
by Oren
I'll check it out whenever I'll need it... thanks guys
