smtp + external server IP
Moderators: Chris Corbyn, General Moderators
smtp + external server IP
I'm trying to use swift mailer smtp using an external IP rather than a domain name, but it seems to be connecting to localhost no matter what. How do I get it to connect to an external mail server by IP?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: smtp + external server IP
What code are you using? The SMTP connection class should accept an IP address in its constructor 
Re: smtp + external server IP
Yeah, I did some more investigation and found that the function I was using to pass the IP to the constructor didn't actually contain what I thought it did
Refactored and fixed my unit tests for that function and all is well now
Refactored and fixed my unit tests for that function and all is well now