Skip to main content
Participant
June 25, 2009
Question

Emails using clients server?

  • June 25, 2009
  • 2 replies
  • 783 views

Is there anyway to send emails from our website using the clients email server or email client?  There has to be a way....any ideas?  Thanks in advance!

This topic has been closed for replies.

2 replies

Participating Frequently
June 26, 2009

If I understand your question correctly then yes, in some cases it

might be possible to send e-mail through the clients email server (see

server, username and password attributes of the cfmail tag). The

client would need to provide the above information to you in order to

send the e-mail and you will pass that to the cfmail tag.

Mack

tclaremont
Inspiring
June 26, 2009

I think I am interpretting the question differently.

Remember that CF is a server side language. It has no knowlege of the surfer's email account settings, etc unless they are PASSED to the server by the client.

If this was possible, can you imagine the havoc that a rogue CF programmer could impose? By merely visiting your page, the end user could send out a ton of email under his own name and server settings without even knowing it. Not a good thing as I am sure you can imagine.

ilssac
Inspiring
June 26, 2009

Yes that would not a good idea I am sure anybody would agree.

But I interpreted "client" differently then I think you did.  You seem to be using the client in client-server.  And yes it would be very bad for the server to be able to spy on the client in that manner.

I thought of "client" in the client-contractor|programmer|developer relationship.  I.E.  I am writting a program for a client that I will host, is it possible for this client to configure my program to e-mail using his own mail server.

In the latter relationship, it would be fine for a user to do this, and ColdFusion makes it fairly easy to incorperate this type of functionality into a product, if desired.

Hope that clarifies things a little.

Inspiring
June 26, 2009

I think the client's e-mail address is as good as it gets.