Sending encrypted emails

Reply

Join Date: Jan 2005
Posts: 70
Reputation: Diode is on a distinguished road 
Solved Threads: 0
Diode's Avatar
Diode Diode is offline Offline
Junior Poster in Training

Sending encrypted emails

 
0
  #1
Nov 9th, 2008
How do you send emails encrypted with SSL from php?

Thanks
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,081
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is offline Offline
Veteran Poster

Re: Sending encrypted emails

 
0
  #2
Nov 9th, 2008
Originally Posted by Diode View Post
How do you send emails encrypted with SSL from php?

Thanks
You could probably get the native PHP mail() function to send via TLS. On windows mail() will send through SMTP based on the PHP.ini config. You could probably get this configuration to use TLS. On Linux mail() sends to the sendmail binary. So you'd need to configure sendmail to use TLS.

But is it probably easier off to just talk to either IMAP or SMTP directly. There are many SMTP mailers available in PHP:

http://pear.php.net/package/Mail
http://www.swiftmailer.org/

These should support TLS. I believe you'd need OpenSSL compiled into your PHP executable, or loaded as an extension.

You could also use IMAP over TLS if the IMAP server supports TLS.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC