Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
I think the client's e-mail address is as good as it gets.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
It has no knowlege of the surfer's email account settings, etc unless
they are PASSED to the server by the client.
That's what I said. The server, username and password need to be
provided by the client for this to work.
I'm reading this question like this: "My client wants CF to use the
same e-mail server that my client is using to submit his e-mail." (Why
would he want that ? I don't know.) I'm very well aware of the issues
that you mentioned and I wasn't suggesting simply visiting a page is
enough to automatically send an e-mail using the customer's e-mail
settings.
Mack