asamuel
asked on
Sending email with cold fusion
I have cold fusion install on web server, and i setted up the mail information,I don't know how
can i send email with attachment, or how can i create link in the email for information submitted to database
Thanks,
Ashraf
can i send email with attachment, or how can i create link in the email for information submitted to database
Thanks,
Ashraf
ASKER
Hi Anand,
Thank you for the information,
I already i know most of these info, my problem is , I have form it has input fields, and when user submit this form it should insert these data into a database, and i want to send email out to group of users, I already created this to inform them about these data, so i want to have something like expert_exchange, when i get email i click on the link it show me my answer or area, so how can i do this.
Thanks,
Thank you for the information,
I already i know most of these info, my problem is , I have form it has input fields, and when user submit this form it should insert these data into a database, and i want to send email out to group of users, I already created this to inform them about these data, so i want to have something like expert_exchange, when i get email i click on the link it show me my answer or area, so how can i do this.
Thanks,
ok ...
once the user has submitted the data
1. insert the data in the DB
2. get the list of people need to be informed
<cfquery name="users">
</cfquery>
3. <cfmail query="users" ...>
html data here to inform all users in the list above ...
add a link here if required
</cfmail>
this way u notify them abt the changes done ...
u can also inlcude a link there ... so they can clikc on it & come over to the relavent page !
once the user has submitted the data
1. insert the data in the DB
2. get the list of people need to be informed
<cfquery name="users">
</cfquery>
3. <cfmail query="users" ...>
html data here to inform all users in the list above ...
add a link here if required
</cfmail>
this way u notify them abt the changes done ...
u can also inlcude a link there ... so they can clikc on it & come over to the relavent page !
ASKER
O.K. I am almost there,
So How do I create the link belong to these information.
So How do I create the link belong to these information.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
hello ?
This is an old post but I need some help.
CF version 7 -- does anyone know how to attach docs in emails?
We are getting ColdFusion Event Gateway errors.
CF version 7 -- does anyone know how to attach docs in emails?
We are getting ColdFusion Event Gateway errors.
set up the mail server IP in ur CFADMIN - if u cant access CFADMIN - ask ur sysadmin to fo it for u OR set it up in
<CFMAIL .. MAILSERVER="100.9.89.45">
<P>
This example uses cfmailparam to attach two files and add a
header to a message.
</P>
<cfmail from = "peter@domain.com" To = "paul@domain.com"
Subject = "See Important Attachments and Reply">
<cfmailparam name = "Reply-To" value = "mary@domain.com">
Please read the text file and view the new logo, and let us know what
you think.
<cfmailparam file = "c:\work\readme.txt">
<cfmailparam file = "c:\work\logo.gif">
u can have a link in ur email as :
<a href="www.mysite.com">click here</a> to chk my site
</cfmail>
</body>
</html>
to send HTML & Text copy of emails - use ...
<CFMAIL ....>
<CFMAIL PARAM ...>
<CFMAILPART type="text">
Text version goes here
</CFMAILPART>
<CFMAILPART type="html">
<B>HTML version goes here</B>
</CFMAILPART>
</CFMAIL>
K'Rgds
Anand