943,948 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 608
  • PHP RSS
Nov 9th, 2008
0

Sending encrypted emails

Expand Post »
How do you send emails encrypted with SSL from php?

Thanks
Similar Threads
Reputation Points: 50
Solved Threads: 0
Junior Poster in Training
Diode is offline Offline
70 posts
since Jan 2005
Nov 9th, 2008
0

Re: Sending encrypted emails

Click to Expand / Collapse  Quote originally posted by Diode ...
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.
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Shopping basket contents to paypal
Next Thread in PHP Forum Timeline: sorting the fields in data grid and give check box





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC