Jump to content

PHP Mail() Help


James_Thomas

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.