Posts Tagged ‘SMTP’

What is an SMTP port

November 22nd, 2013, posted in PHP
Share

What port should you chose for your SMTP server when you’re setting it on a mail client?

Simply put, computer ports are the communication endpoints of a computer connected to a network. They are separated to differentiate the several processes and make it easier to handle them: so each one has a particular purpose and is associated to a specific protocol.

Usually an outgoing server employs port 25: it’s the default SMTP port. However, some IPs deny its use because of the massive spam and malware traffic by which is affected. This issue is raised in particular when you need to switch to another ISP – for instance, when you’re travelling and connecting to a new provider. In this case you can try to use port 587 or  port 465 to avoid the block.

SMTP server,SMTP ,server,port ,SMTP port,IP,website,development,turboSMTP

More in detail: port 587 is supported by almost every outgoing SMTP server and it’s useful for unencrypted or TLS connections; while port 465 is the right choice if you need to connect via SSL.

turboSMTP can work both on port 587 and 465, but also on 2525 and 25025. Moreover, it completely avoids the “another ISP” issue: in fact, once you have set our SMTP as default you don’t need to configure it again or switch to other ports.

Share

Send Email Using Gmail as my SMTP from XAMPP (PHP)

July 31st, 2013, posted in PHP
Share

I have been trying to send email using PHP script and XAMPP Lite. The PHP script itself is not a biggies but the default XAMPP configuration doesnt allow me to send out the email.
My objective is to use Gmail as my SMTP (rather than localhost). After some digging and try and error.. Here is my solution :

Edit your php.ini (xamppphpphp.ini). Search for [mail function] and change these parameters accordingly :

SMTP = smtp.gmail.com
smtp_port = 587
sendmail_from = [your_gmail_username]@gmail.com

Note: This gmail account will be used to send the email

sendmail_path = “”D:xamppsendmailsendmail.exe” -t”

Note: I did install my xampp at D:xampp



1. Edit your sendmail.ini (xamppsendmailsendmail.ini)

Comment the “Mercury”and “A free mail service example” contents as shown below:

# Mercury
#account Mercury
#host localhost
#from postmaster@localhost
#auth off

# A freemail service example
#account Hotmail
#tls on
#tls_certcheck off
#host smtp.live.com
#from [exampleuser]@hotmail.com
#auth on
#user [exampleuser]@hotmail.com
#password [examplepassword]



2. Add the account through which you want to send your mails. In my example I have configured the Gmail account as shown below:

account Gmail
tls on
tls_certcheck off
host smtp.gmail.com
from [your_gmail_username]@gmail.com
auth on
user [your_gmail_username]@gmail.com
password [your_gmail_password]port 587



3. Set the default account to Gmail as shown below:

account default : Gmail

Many thanks to this link . His original post point me to the right direction. The only missing piece is port number in sendmail.ini where gmail no longer use port 25 as smtp port but 587. Hope this help.

Share

PHP Mail Fuction

July 2nd, 2013, posted in PHP
Share

php mail fuciton,php mail,mail fuction,php cc and bcc,send mail by php,hotmail,gmail, gmail SMTP, mail configuration, mail issues, mail sending issues, php, php mail sending, Send Email Using Gmail as my SMTP from XAMPP (PHP), SMTP, XAMPP,html,

This is very good link to learn with examples about PHP fuction :

http://php.net/manual/en/function.mail.php

php mail fuciton,php mail,mail fuction,php cc and bcc,send mail by php,hotmail,gmail, gmail SMTP, mail configuration, mail issues, mail sending issues, php, php mail sending, Send Email Using Gmail as my SMTP from XAMPP (PHP), SMTP, XAMPP,html,

Share