smtp + external server IP

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
jemminger
Forum Newbie
Posts: 3
Joined: Fri Apr 18, 2008 9:53 pm

smtp + external server IP

Post by jemminger »

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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: smtp + external server IP

Post by Chris Corbyn »

What code are you using? The SMTP connection class should accept an IP address in its constructor :)
jemminger
Forum Newbie
Posts: 3
Joined: Fri Apr 18, 2008 9:53 pm

Re: smtp + external server IP

Post by jemminger »

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 :oops:

Refactored and fixed my unit tests for that function and all is well now :D
Post Reply