Reputation: 151
I don't really hope anybody understand what i'm talking about. But i really want to connect to smtp.gmail.com to send email from http connection (port 80 or 8080), not ssl connection. Is it can be done? Or is it really something stupid?
Upvotes: 0
Views: 2780
Reputation: 851
Based on this Google page, there is a gmail server that does not use SSL, but
The page gives you the SMTP settings. If those two restrictions are ok with you, then you can look at all of the answers to "Send email using the GMail SMTP server from a PHP page" see different ways you can send using PHP.
Upvotes: 0
Reputation: 4788
SMTP and HTTP(S) are two different protocols, so the simple answer is "no".
However, you may be aware that Microsoft Exchange allows you to log into your inbox via a browser-based webmail interface - a HTTP(S) front-end that interacts with the email server. In other words: Yes, it is possible to interact with an email server using methods other than SMTP, but you'd need to build a HTTP interface for it yourself:
[Browser] <--HTTP--> [Web Server] <--SMTP--> [Email Server]
For example, Ruby on Rails has ActionMailer, which allows you to send emails in response to a user visiting a certain page in their browser. You simply need to provide details about the GMail SMTP settings so that Rails can communicate with it.
Upvotes: 1