James_Thomas Posted July 29, 2009 Share Posted July 29, 2009 Hey guys, I'm planning on launching a Social Networking Website in January 2010 and with my dedicated server, will receive 10+ IP addresses. In order for my IP addresses not to be blacklisted, I want to be able to send mail through the PHP mail() function from the different IP addresses. Can you please post here if you know how to send from a specific IP address? Can you please include script that will select the IP address from a column in a database and then use this IP to send mail from. The emails are in relation to:- friend invites and notifications. Thank you in advance! ~James. Link to comment https://forums.phpfreaks.com/topic/168032-php-mail-help/ Share on other sites More sharing options...
gevans Posted July 29, 2009 Share Posted July 29, 2009 I think you need to take a look at the pear mail package; http://pear.php.net/package/Mail This will allow you to send mail in mass via smtp via different hosts. Link to comment https://forums.phpfreaks.com/topic/168032-php-mail-help/#findComment-886277 Share on other sites More sharing options...
patrickmvi Posted July 30, 2009 Share Posted July 30, 2009 The mail function simply invokes the sendmail command built in to to most *nix installs. Using an SMTP server like Postfix allows you to set which IP address it uses to send out. What you could do is set up a server like that and then write a script that would go in a cron and change out the outgoing IP every so often. Link to comment https://forums.phpfreaks.com/topic/168032-php-mail-help/#findComment-886443 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.