Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help witjh Email For Newbie

Status
Not open for further replies.

AidenMc

Programmer
Sep 19, 2002
58
GB
Hi all,
I was hoping someone might be able to help me as I'm new to coldfusion and programming in it.
Our user requires us to display their email address on a web page and once the user clicks on this to produce an email and send it. I was hoping someone could tell me where I can find information on how to do this,

thanks,

Aiden
 
This is standard HTML. It doesn't require ColdFusion.

Here ya go:
Code:
<a href="mailto:name@domian.com">name@domain.com</a>


Hope This Helps!

Ecobb
Beer Consumption Analyst

"My work is a game, a very serious game." - M.C. Escher
 
that will open the default email client on the users computer, such as outlook. Then they compose the email and send it manualy. is that what you're looking for?


when i read
once the user clicks on this to produce an email and send it.

it kind of sounds like you are looking for a way to send a predefined email to a user with the click of a link. Is that the case?

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
-Douglas Adams (1952-2001)
 
Thanks for the tip,
But bombboy you are right I am looking to send a predefined email also ie
the email would look like
TO - Default email address

then in the body of the email I need headings like

Company Name
Company Address

To be predefined so that the user can type in the details

I hope this make sense

Aiden
 
You're looking for a web form.
Code:
<form>
To: predefined user<br>
from: <input type = "text" name = "email_from"><br>
subject: <input type = "text" name = "email_subject"><br>
Message:<br>
<textarea name = "email_body"></textArea>
<br>
<input type = "submit" value = "Send Mail" name = "submit">
</form>

in the email page you'll have something like this.

Code:
<cfmail to = "predefinedEmail" from = "#form.email_from#" subject = "#form.email_subject#">
#form.email_body#
</cfmail>
</cfmail>

A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
-Douglas Adams (1952-2001)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top