How to send emails with PHP from a heavily firewalled network? -


I want to send an email from my local host machine (using the PHPs mail function), but I can not do this Because I do not have a mail server in addition, I should be able to send an email through a network that is a heavy firewall (to what extent I do not know so far).

My idea is to use "QK SMTP Server 3" and get me to use an external server as "relay server" will it work? Is there any easy choice?

If I'm okay with my view, I would like to know how to open port 25 on my server, so that we can get this request. By executing this command, I get:

  [root @ balder296 ~] # service iptables status firewall is off [root @ balder 296 ~] #  

Thanks for any help and advice.

Resolve

Hotmail (surprisingly) provides a free relay service. I hope this works for me when I do this test! But there is a way to go to an external mail server.

Idea if you can connect to the internet port 25 (SMTP)

  • Telnet Gmail - smtp-in.l.google.com 25 (this is one of the Gmail servers)

If you are able to open a connection , You can simply set up mail-server and use the mail () function to send the message.

  • yum install

    If you are unable to connect to the Internet mail server on port 25, then postfix (for example For your 'service' comment, I think you are running redhats or Santos)

, you can try to find an internal mail relay (this is your network for you Depends on, you have to meet this).

At that time, you have two options if you define the 'relay' parameter in your mail-server (/ etc / postfix if you are using Postfix) then you have your local mail server You can use the internal mail () function.

Follow the second option and get a PHP to send messages in an internal relay.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -