Cfmail problem
I have a fomr with a query populated select box. When a user
selects their name from the box I am passing their email address
along with ohter contact info to the action page like so:
<select name="AgentName" size="1">
<option>-- Select Name --</option>
<cfoutput query="Agent">
<option
value="#AgentName#,#email#,#VoiceMail#,#CellPhone#">#AgentName#</option>
</cfoutput>
</select>
This works like a charm BUT on the action page I have a
slight problem.
<cfmail
to="[email protected]"
from= "form.AgentName"
bcc="[email protected]"
subject="New Work Order Request for Marketing Dept."
server="mail.360buyers.com"
username="[email protected]"
password="PW">
Requestor's Information:
#form.AgentName#
#form.balanceofoutput# , etc.
The problem is the output in the from field is a comma
separated set of values: agent name, email address, voice mail,
cell phone. When the recipient hits the reply button the "To" field
in the response message contains all the data including agent name,
email address, voice mail, cell and of course this fails.
How can I separate or identify the from email address so the
recipient can just reply to the message when the get it::;
I have tried <cfset form.email = reply> without
success. Nothing happens.
Can someone please point me in the right direction? Thank you
in advance.
Thanks for the response, Dempster. I have tried doing what
you suggested and think you have a good point regarding the comma
in a name. I actually have that situation and never thought about
it before.
Anyway, I am throwing errors (Id not defined in form) when I
write the query on the cfmail page; the query reads:
<cfquery name="AgentData" datasource="TripStats"
username="un" password="pw">
Select ID,AgentName,VoiceMail,CellPhone,eMail
From Agent
Where ID = 'Form.ID'
</cfquery>
The the select list again is:
<td colspan="3"><select name="AgentName"
size="1">
<option>-- Select Name --</option>
<cfoutput query="Agent">
<option
value="#ID#,#AgentName#,#email#,#VoiceMail#,#CellPhone#">#AgentName#</option>
</cfoutput>
</select>
Does that make sense?
Similar Messages
-
Sorry for starting a new post with this but wasnt getting any
replies so thought it might have been getting lost.
I had my cf mail workng fine then i did something (not sure
what) and have been trying to get it working again for a week.
problem --> everything seems to function alright but the
mails dont end up in my inbox
thanks for any help
helplessly hopeless
link -
http://www.healthhokkaido.com/files/contact_us.cfm
using this code
<cfif isDefined("form.foil") and Trim(form.foil) IS NOT
"orange">
<!--- bad submission. do nothing. --->
<cfelseif isDefined("form.process")>
<!--- Send the message to yourself, when the user posts it
on your site. --->
<CFMAIL to="[email protected]" from="#ContactEmail#"
Subject="Contact From YourSite.Com">
#ContactMessage#
Message By: #ContactName# - #ContactEmail#
========================================
</CFMAIL>
<!--- Send one to the person writing, thanking them and
reminding them what they wrote. --->
<CFMAIL to="#ContactEmail#" from="From Email" Subject="The
Subject!">
Thank you for your message,
healthhokkaido will be in touch as soon as possible!
You wrote:
#ContactMessage#
Message By: #ContactName# - #ContactEmail#
========================================
</CFMAIL>
Thank you for contacting us. We will be in touch as soon as
possible.
<!--- If "Process" is not defined, let's show the form:
--->
<CFELSE>
<cfoutput><form action="#cgi.script_name#"
method="post"></cfoutput>
<input type="hidden" name="Process" Value="1">
Name: <br><input type="text" class="txtBoxes"
name="ContactName"><br>
<input type="hidden" name="ContactName_required"
value="Please Enter Your Name!">
E-mail: <br><input type="text" class="txtBoxes"
name="ContactEmail"><br>
<input type="hidden" name="ContactEmail_required"
value="Please Enter Your Email Address!">
Message: <br> <textarea name="ContactMessage"
class="txtBoxes" rows="10" cols="20"></textarea>
<input type="hidden" name="ContactMessage_required"
value="Please Enter A Message.">
<script src="foil.js"
type="text/JavaScript"></script>
<noscript><br>
<td>Enter 'orange' here:</td><br>
<td><input name='foil'/></td>
</noscript>
<br><br>
<input type="submit" id="butComment" value="Send">
</form></cfif>
any ideas
regards
MarkTry this on a page:
<cfmail
from = "[email protected]"
to = "[email protected]"
subject = "CF Email Test"
server="mail.yoursite.com"
username="[email protected]"
password="somepassword">
This is a test
</cfmail>
Change the server, username and password to your server and a
valid email user on that server.
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com
"quiero mas" <[email protected]> wrote in message
news:f2gtpu$1ik$[email protected]..
> Hi thanks for the advice - how do i make a simple mail
test script?
>
> btw i am a begineer
>
> Many thanks -
Server side validation for file type with cffil sent via cfmail problem
Hello;
I have a small app that I need to allow users to be able to use a form, and send me and email with a file attachment. I have it working nicely, I included file manipulation into the validation process of the form and required form fields. The problem I'm having, is this. I'm trying to create and instance where if they try and upload lets say a pdf, it throws and error: "You are trying to upload the wrong file, please try again we only accept bla bla bla" Problem is, even if I'm uploading the proper file, it's rejecting it and deleting it. Can someone help me fix this? I've tried a number of different ways and can't seem to get this to go off properly. I am posting some of the code. There is a ton, so I'm posting the main parts so you get the idea and see my variables.
<!--- Declairing my variables and setting up form validation--->
<cfparam name="FORM.descript" type="string" default=""/>
<cfparam name="FORM.attachment_1" type="string" default=""/>
<cfset arrErrors = ArrayNew( 1 ) />
<cfset showForm = true>
<cfif structKeyExists(form, "sendcomments")>
<cfif NOT len(trim(FORM.name))>
<cfset ArrayAppend(arrErrors,"Your Full Name!<br>") />
</cfif>
<!--- This is where the file error control is as you can see how the name is validated, the file will be dealt with in a similar maner--->
<cfif NOT Len(Trim(FORM.attachment_1))>
<cfset ArrayAppend(arrErrors,"You didn't attach a file!<br>") />
<cfelseif ArrayLen( arrErrors )>
<cftry>
<cffile action="DELETE" file="#FORM.resume#"/>
<cfcatch>
<!--- File delete error. --->
</cfcatch>
</cftry>
<cfelse>
<!--- no errors with the file upload so lets upload it--->
<cftry>
<cfset request.AcceptImage="image/gif,image/jpg,image/jpeg,image/pjpeg,image/x-png">
<cffile action="upload"
filefield="attachment_1"
accept="#request.AcceptImage#"
destination="c:\websites\187914Kg3\uploads\"
nameconflict="Makeunique">
<!---
Now that we have the file uploaded, let's
check the file extension. I find this to be
better than checking the MIME type as that
can be inaccurate (so can this, but at least
it doesn't throw a ColdFusion error).
--->
<cfif NOT ListFindNoCase("request.AcceptImage",CFFILE.ServerFileExt)>
<cfset ArrayAppend(arrErrors,"Only JPEG, GIF, and PNG file formats are accepted!<br>") />
<!---
Since this was not an acceptable file,
let's delete the one that was uploaded.
--->
<cftry>
<cffile action="DELETE" file="#CFFILE.ServerDirectory#\#CFFILE.ServerFile#"/>
<cfcatch>
<!--- File Delete Error. --->
</cfcatch>
</cftry>
</cfif>
<!--- This is the code that is causing my problem. The above code is saying everything is not the proper file and rejecting it all--->
Can anyone help me out. I can make more of this code available if needed. Like i said, there's a lot and I didn't want to dump it all out, this is the section creating the problem. There are no errors at this time, just rejecting all file types.
thank you.It appears you are comparing your content_length with 1MB.
1KB: 1024 bytes
1MB: 1024*1024 bytes
Let us use max allowable size of 25KB here and amend the second half of our code.
<!--- Set max allowable file size in KB at the top --->
<cfset maxFileSize = 25>
<!--- Check if file is an image file of acceptable size --->
<cfif (#reFindNoCase("gif|jpg|jpeg|pjpeg|png",myResult.clientFileExt, 1)# EQ 1) AND (#myResult.FileSize# LTE (#maxFileSize#*1024))>
<!--- Retain if right file type and size --->
<p>
Your file <strong>#myResult.clientFile#</strong> has been uploaded successfully!<br />
<a href="yourTemplate.cfm">Back</a></p>
<!--- Otherwise if wrong type --->
<cfelseif #reFindNoCase("gif|jpg|jpeg|pjpeg|png",myResult.clientFileExt, 1)# NEQ 1>
<p>
You are trying to upload a <strong>#myResult.clientFileExt#</strong> file, please try again. We only accept <strong>gif, jpg, jpeg, and png</strong>.
</p>
<!--- Delete unacceptable file and show form to user to try again--->
<cffile action="delete" file="#svrFile#" />
<form method="post" action=#cgi.script_name#
name="uploadForm" enctype="multipart/form-data">
<input name="attachment_1" type="file">
<br>
<input name="submit" type="submit" value="Try again!">
</form>
<!--- Or size too large --->
<cfelseif #myResult.FileSize# GT (#maxFileSize#*1024)>
<p>
Your file was too large (<strong>#numberFormat(myResult.fileSize/1024, "____.__")# KB</strong>). Please try a smaller file!
</p>
<!--- Delete file and show form--->
<cffile action="delete" file="#svrFile#" />
<form method="post" action=#cgi.script_name#
name="uploadForm" enctype="multipart/form-data">
<input name="attachment_1" type="file">
<br>
<input name="submit" type="submit" value="Try again!">
</form>
</cfif>
</cfif> <!--- Closes the cfif tag which started from the first half --->
</cfoutput><!--- ditto ---> -
CFMAIL - Background Image contained in TD Not Displaying in Outlook
A backgorund image contained in a <TD width="400" background="http://www.abcdef.com/img/background_B.jpg"> does not appear when the html email message is opened in Outlook. However, if you click the having trouble viewing this email prompt the image does display on the web view. Is this a CFMAIL problem? If so does anyone have a work around for or other ideas where to look for a solution?
As we don't know your code, your imaging library or anything else that you are doing - and my crystal ball is on the fritz - we can't really help :(.
However, given that you are talking about CMYK the first question is about whether you a re working on a CMYK surface or converting to RGB? If converting, how?
Second, what filter is applied to the image? DCT? Flate? Other?
Third, are you considering any DecodeParms on the image?
Fourth, is the image indexed or not?
And the list goes on.. -
Cfmail not working properly, Log files not updating
I'm still trying to get this CFmail problem corrected. The problem is CFmail is only send the mail out sporadically. In many cases it will send out the mail and still put the message in the undeliverable folder. My smtp server shows that the connection was opened and closed.
I'm pretty sure that I'm dealing with a CF problem since the mail logs are screwing up as well. In the past when I'd have a problem with CFmail I could go to my mail.log and see what was happening.
Those logs looked like this:
"Error","scheduler-2","05/28/09","11:00:43",,"Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 No such user (website_notification) Cached lookup "
"Error","scheduler-2","05/28/09","11:00:43",,"Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 No such user (wayneseattle) -ERR [email protected] not found "
"Error","scheduler-2","05/28/09","11:00:43",,"Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 No such user (ca-sl-broardmoor) Cached lookup "
Now my logs look like this:
"Error","scheduler-2","12/07/09","10:05:36",,""
"Error","scheduler-4","12/07/09","10:17:22",,""
"Error","scheduler-0","12/07/09","10:33:37",,""
"Error","scheduler-0","12/07/09","10:53:53",,""
Where did the error messages go?
Could this be a SMTP response message formating issue? Any ideas in how to figure this one out would be very much appreciated.Which version of CF are you using? You may have already checked this but under "Server Settings -> Mail -> Mail Logging Settings" there's an option box for "Log all mail messages sent by ColdFusion". If you have it unchecked you may not see all of that data.
-
Does coldfusion 7 support having an email address with a dash
in it. ie
[email protected]
I am getting this error in the log.
Invalid Addresses; nested exception is: class
javax.mail.SendFailedException: 501 5.5.4 Invalid Address
This is proving to be a big problem as dealing with many
users who have email addresses in this format.
Is there any workaround - ie converting email address to
ascii ??
Any help would be much appreciated.
CheersFYI...our organization has a dash (-) in the domain name and
have no problems sending email via cfmail.
We're running CFMX7.0.2
Good luck -
Dash (-) problems in to param of cfmail tag
Does coldfusion 7 support having an email address with a dash
in it. ie
[email protected]
I am getting this error in the log.
Invalid Addresses; nested exception is: class
javax.mail.SendFailedException: 501 5.5.4 Invalid Address
This is proving to be a big problem as dealing with many
users who have email addresses in this format.
Is there any workaround - ie converting email address to
ascii ??
Any help would be much appreciated.
Cheersjust put actual string
http://mysite/usermailregistrationpage?code=ADGBDGDFGAXAFADFDA
in the mail body, without surrounding it with <a> or
anything.
if your cfmail type is plain (default) it will be shown as
text, while
more recent email application may automatically show it as
link
(Thunderbird does).
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/ -
Problem with vCalendar in CFMail tag
I've created an Outlook meeting invitation using cfmail and vCalendar and it works under normal conditions. But I have an event that is a three-day class. I attempt to create three invitations within the same cfm file, using three diffeent cfmail tags and using different times, subjects, descriptions, and summaries in the vCalendar. But when the three invitations arrive in my Outlook mailbox, Outlook thinks they are all the same event and posts tentative appointment to the last of the three days, but not to day 1 or day 2. Anyone have any clues as to what I'm doing wrong?
<cfmail to="#form.email#" from="#fromemail#" subject="Event to be named" type="multipart">
<cfmailparam name="content-class" value="urn:content-classes:calendarmessage">
<cfmailparam name="Content-Type" value="text">
<cfmailparam name="method" value="REQUEST">
<cfmailparam name="charset" value="utf-8">
<cfmailparam name="Content-Transfer-Encoding" value="7bit">
<cfmailpart type="text">
This is your meeting invitation for the following Insurance Administration Training and Development Class:
August Annuity University Day 3
</cfmailpart>
<cfmailpart type="text/calendar">
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:20090820T140000Z
DTEND:20090820T170000Z
LOCATION:C5 Main
TRANSP:OPAQUE
SEQUENCE:0
UID:0
DTSTAMP:#tmstmp#
DESCRIPTION;ENCODING=QUOTED-PRINTABLE:Insurance Administration Annuity University-- August Day 3\n
SUMMARY:Class
PRIORITY:5
X-MICROSOFT-CDO-IMPORTANCE:1
CLASS:PUBLIC
END:VEVENT
END:VCALENDAR
</cfmailpart>
</cfmail>
</cfif>
<cfif form.session eq "AnnU-2">
<cfmail to="#form.email#" from="#fromemail#" subject="November Day 2 Annuity University Insurance Administration Training and Development Class" type="multipart">
<cfmailparam name="content-class" value="urn:content-classes:calendarmessage">
<cfmailparam name="Content-Type" value="text">
<cfmailparam name="method" value="REQUEST">
<cfmailparam name="charset" value="utf-8">
<cfmailparam name="Content-Transfer-Encoding" value="7bit">
<cfmailpart type="text">
This is your meeting invitation for the following Insurance Administration Training and Development Class:
August Annuity University Day 2
</cfmailpart>
<cfmailpart type="text/calendar">
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:20091118T150000Z
DTEND:20091118T180000Z
LOCATION:C5 Main
TRANSP:OPAQUE
SEQUENCE:0
UID:0
DTSTAMP:#tmstmp#
DESCRIPTION:Insurance Administration Annuity University--August Day 2\n
SUMMARY:summary
PRIORITY:5
X-MICROSOFT-CDO-IMPORTANCE:1
CLASS:PUBLIC
END:VEVENT
END:VCALENDAR
</cfmailpart>
</cfmail>
<cfmail to="#form.email#" from="#fromemail#" subject="November Day 3 University Insurance Administration Training and Development Class" type="multipart">
<cfmailparam name="content-class" value="urn:content-classes:calendarmessage">
<cfmailparam name="Content-Type" value="text">
<cfmailparam name="method" value="REQUEST">
<cfmailparam name="charset" value="utf-8">
<cfmailparam name="Content-Transfer-Encoding" value="7bit">
<cfmailpart type="text">
This is your meeting invitation for the following Insurance Administration Training and Development Class:
August Annuity University Day 3
</cfmailpart>
<cfmailpart type="text/calendar">
BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
DTSTART:20091119T150000Z
DTEND:20091119T180000Z
LOCATION:C5 Main
TRANSP:OPAQUE
SEQUENCE:0
UID:0
DTSTAMP:#tmstmp#
DESCRIPTION:Insurance Administration Annuity University--August Day 3\n
SUMMARY:summary
PRIORITY:5
X-MICROSOFT-CDO-IMPORTANCE:1
CLASS:PUBLIC
END:VEVENT
END:VCALENDAR
</cfmailpart>
</cfmail>
</cfif>Hi there,
I think its because youre using the same UID for all your events. From what I understand, every event needs its own unique reference,
hope that helps. -
I usually only do a wraptext in the cfmailpart for the text
version of my emails, but recently put it in my cmail call because
I had complaints that lines were too long for people who received
it on a blackberry (which was set to take HTML). Now it's inserting
a %0A in random places (like between a two letters in an image
call, i.e. e%0Amail_logo2.jpg and basically messing up the HTML
versions. Is there a way around this? Thanks in advance! Using CFMX
6.1 on WindowsThis is normal.
CfLib.org has smarter wrap functions. -
Using a radio button in cfmail / form.
Hello;
This is a silly question, but I can't remember how to program in radio buttons for a cfmailer. I have 3 radio buttons, basically, I just need to know what the users choice was when they checked it off. The following is my radio buttons and what I have for code right now. But I'm not grabbing the proper variable, I also tried dumping a few diffrerent variables to see if I could get it.
<input name="type" type="radio" onClick="setVisibility('sub3', 'inline');setVisibility('sub4','none');setVisibility('sub5','none');" value='male' checked="checked"/>Magnets
<input type="radio" name="type" value='female' onClick="setVisibility('sub3', 'none');setVisibility('sub4','inline');setVisibility('sub5', 'none');"/>Paper Steel
<input type="radio" name="type" value='child' onClick="setVisibility('sub3', 'none');setVisibility('sub4','none');setVisibility('sub5', 'inline');"/> both
on my response page, I tried this:
<cfif form.type EQ "male">
if this was their choice, then this set of rules would apply
</cfif>
and so on for the other two choices. This isn't catching my buttons, what am I doing wrong? do I need to make a paramiter for the radio buttons before I can allow it to function? like this?
<cfparam name="FORM.type" default="">
then I can use my if statement? (that isn't working right now either)
here is what I'm trying to dump:
<cfdump var="#form.type#">
<cfabort>
</cfdump>
How do I do this? Can anyone help me?I suspect that you have a problem in some portion of your code that you have not posted. To help debugging I suggest you create a simple test using two pages: input.cfm and action.cfm. Get the most simple case working then add the javascript, css, and CF code to make your application work.
<!--- contents of input.cfm --->
<html>
<head>
<title>Input</title>
</head>
<body>
<form action="action.cfm" method="POST">
Choose type: <br />
<input name="type" type="radio" value="male" /> Male<br />
<input name="type" type="radio" value="female" /> Female<br />
<input type="submit" />
</form>
</body>
</html>
<!--- content of action.cfm --->
<html>
<head>
<title>Action</title>
</head>
<body>
<cfif form.type eq "male">
Type is male.
<cfelseif form.type eq "female">
Type is female.
</cfif>
Here is a cfdump of the form variables:<br />
<cfdump var="#form#" />
</body>
</html>
Message was edited by: JR "Bob" Dobbs
Added sample for action.cfm -
Cfmail spool sending one message at a time
I have mx7 standard installed on win 2003 server
a cfmail page sends files to the spool corectly.
The spool is only sending out one message every 60 seconds or
so. Changing the spool interval has no effect.
these need to go out a lot faster than this.
the mail.log is showing this but i'm not sure it's the
problem.
Aug 4, 2006 11:19 AM Error 0
Exception reading response; nested exception is:
java.net.SocketTimeoutException: Read timed out
Aug 4, 2006 11:18 AM Error 0
Exception reading response; nested exception is:
java.net.SocketTimeoutException: Read timed out
Aug 4, 2006 11:17 AM Error 0
Exception reading response; nested exception is:
java.net.SocketTimeoutException: Read timed out
Aug 4, 2006 11:16 AM Error 0
Exception reading response; nested exception is:
java.net.SocketTimeoutException: Read timed out
Aug 4, 2006 11:15 AM Error 0
Exception reading response; nested exception is:
java.net.SocketTimeoutException: Read timed out
thanks for any help in advance.I would suggest playing with the other mail specific
settings, such as #of mail delivery threads, but my guess is you've
already messed with these.
Perhaps it has nothing to do with CF, but rather a bottleneck
with the process that is creating the emails. How many emails are
you trying to send?
Is it a query driven mail tag?
Another aspect to check would be the version of JRUN being
used by CF. You might find an update to a newer version of JRUN
would solve the problem.
Given the errors you've listed (SocketTimeout), they seem to
be JAVA specific.
In any case, good luck!
bh -
I am trying to insert or embed and image into cfmail from a database-stored path to an actual image. The actual JPEG image is stored in a folder called "images_personnel". The path to the image under the column titled photopath is stored in my database table as "/file/images_personnel/28.jpg". Displaying the image on the screen renders without a problem, embedding the same image as part of a cfloop query does not insert/embed the image into an email. All of the other output of the same cfloop displays and emails just fine. However none of the photos of each personelle show up. What an I doing wrong?
My code is below:
<cfquery name="Staffreport" datasource="master">
Select staffreport.*, name.personnelid, name.email, name.last, name.noiid, stafflt, CONCAT(name.fname,' ',name.middle,' (',name.last,')') AS teammember, CONCAT(name.fname,' ',name.middle) AS teammember2, concat(name.photopath,'',name.photo)as hisphoto, stafflt.*, trim(concat(ltfname,' ',ltmiddle)) as LT from Staffreport, name, stafflt
where 0=0
and stalt = '#Session.user_id#'
and ltid = '#session.user_id#'
and staweekbegin = <cfqueryparam value="#form.staweekbegin#" cfsqltype="cf_sql_date" />
AND staweekend = <cfqueryparam value="#form.staweekend#" cfsqltype="cf_sql_date" />
AND stapersonnelid = personnelID
<!---AND ltid = stalt--->
AND CITY = 'richmond'
AND STATUS <> 'd'
AND STATUS <> 'T'
AND type = 'personnel'
Group by personnelid
Order by teammember
</cfquery>
<cfmail>...
<cfloop query="staffreport"><br />
<table width="90%" border="0" cellspacing="2" cellpadding="4" align="left">
<tr>
<td colspan="2" align="center" valign="top" nowrap="nowrap" bgcolor="cccccc"><strong><font color="black"><cfif #staffreport.last# eq ".">#Ucase(Staffreport.teammember2)# <cfelse>#Ucase(Staffreport.teammember)#</cfif> - ID: <cfoutput>#Staffreport.noiid#</cfoutput></font></strong></td>
</tr>
<tr>
<td align="left" valign="top" nowrap="nowrap" bgcolor="#000000">Name:</td>
<td>#Staffreport.teammember#</td>
</tr>
<tr>
<td bgcolor="E6E1FD">Photo:</td>
<td bgcolor="EBEBEB">
<img src="#staffreport.hisphoto#" alt="Photo" width="98" height="98">
</td>
</tr>
<tr>
<td bgcolor="E6E1FD">Email:</td>
<td bgcolor="EBEBEB">#staffreport.email#</td>
</tr>
</table>
</cfloop>
</cfmail>You'll need to provide a full URL link to the image ("http://mywebserver/file/images_personnel/28.jpg"), not just a relative path. Remember, the email client that is used to view the email content knows nothing of the internals of your web server - it can only follow a complete URL to get images and other resources.
-Carl V. -
I want to dynamically attach a document and send via cfmail.I
use various queries to get the recipent names, and unique id info,
then retrieve the document that corresponds.
One cfmail documentation says to use cfparam inside cfmail
and specifiy the full path. Another says to use the mimeattach
attribute with the full path.
This is where I am having the problem. My document
name/variable from my query is #qryName.document#.
How do I set this up with the path, in either cfparam or
mimeattach ?I understand your code, but I still cannot seem to get the
correct path.
I use this query to find th file that I want as an
attachement to the cfmail :
<cfquery name="qryName" datasource="dbname">
select
uploadFileName
from tableName
where docNo = '#form.DocNo#'
</cfquery>
So the file that was uploaded with this docNo is stored in a
variable named uploadFileName in the specifield table.
What is the full path that I would setup in cfmailparam so
that this documant is an attachemetn in cfmail ? -
Problem with 3Forms to one Mail
Hi there,
My problem:
I have three forms in the first file (index.cfm). The first
2forms have checkboxes and the last form input fields.
With a java script, I'm submitting all three forms. In the
second file I have a <cfset MailFile = " ----function.
How can I adress the thrid file in this function?
index.cfm
<form name="form3" method="post"
action="quick_vote.cfm">
<table border="0" cellspacing="0" cellpadding="0" >
<td width="1" valign="top"
class="content"> </td>
<td valign="top" class="content"
width="129">Name*</td>
<td valign="top" class="content" width="141">
<input class="formfeld" name="Name_" size="20" >
</td>
</tr>
quick_vote.cfm:
<cfset MailFile = "
This message was sent by an automatic mailer built with
CFMAIL:
================================================================
Name: #Form3.Name_#
Vorname: #Form3.Vorname#
Straße: #Form3.Strasse#
Ort: #Form3.Ort#
">
Following error message:
Error Diagnostic Information
An error occurred while evaluating the expression:
MailFile = "
This message was sent by an automatic mailer built with
CFMAIL:
================================================================
Name: #Form3.Name_#
Vorname: #Form3.Vorname#
Straße: #Form3.Strasse#
Ort: #Form3.Ort#
Error resolving parameter FORM3.NAME_
ColdFusion was unable to determine the value of the
parameter.
Has anyone an idea?
ThanksHi Dawidsk99,
According to your description, you can connect to cube success, the issue is that nothing happens when clicking OK to import data to pivot table, right?
I have tested it on my local environment, we cannot reproduce this issue. So in you scenario, please ensure that not select "Only Create Connection" option In the Import Data dialog box, under Select how you want to view this data in your workbook.
Besides, you can analyze SSAS using Excel directly from SSMS. In SSMS, browse the cube, and click on the Excel button as shown below.
References
http://www.mssqltips.com/sqlservertip/2828/using-excel-to-interact-with-a-ssas-cube/
http://office.microsoft.com/en-in/excel-help/connect-to-or-import-data-from-sql-server-analysis-services-HP010342296.aspx
Regards,
Charlie Liao
TechNet Community Support -
I'm using CFMail on a Win2k server running IIS and having a
wierd mail problem.
I can send mail to certain email addresses, but not others.
The ones that don't get mail
are *definitely* valid emails, at places like gmail with no
problems in the account.
There's no clear logic to which emails do work and which
don't, but the log shows this for
the ones that don't send out
"Error","scheduler-5","12/04/06","06:41:47",,"Invalid
Addresses; nested exception is: class
javax.mail.SendFailedException: 452 4.2.2 Mailbox full "
"Error","scheduler-5","12/04/06","06:44:04",,"Invalid
Addresses; nested exception is: class
javax.mail.SendFailedException: 452 4.2.2 Mailbox full "
What can I do to find more information out, are there are any
articles/resources or anyone with war-scars that can help explain
this one?
Thanks much
Paul Berry> Hi!
>
> I'm having trouble sending e-mail with cfmail to domains
containing characters
> like å ä ö. In mail.log I get the
following message: "508 5.5.2 Illegal
> character in address".
>
> Is this a bug or a setting somewhere in the
Administrator?
According to this:
http://en.wikipedia.org/wiki/Domain_name_system#Internationalised_domain_names,
it's legal to have those sort of characters in a domain name,
but not a
host name.
But according to this:
http://java.sun.com/products/javamail/javadocs/javax/mail/Address.html,
it
sticks to RFC 822 (
http://www.ietf.org/rfc/rfc822.txt),
which doesn't seem
to differentiate between the host part and the domain part of
an address,
and only allows for ASCII 0-127 in the domain name.
So the bottom line is those domain names - for the purposes
of internet
email addressing - aren't actually legal. So - strictly
speaking - it's
correct for CF to reject them.
I would say you're screwed, unless you can find some
alterative emailing
system (not <cfmail>), and use that. But then again,
the alternatives
could quite possibly disallow those addresses too.
Adam
Maybe you are looking for
-
after vpn setup what app do i need to find our server and or map the drive that i need Thanks
-
Final Cut Express - Aspect Ratio
Where do I set the aspect ratio in Final Cut Express? I find that often I import 4:3 clips, and FCE wants me to work with them in a 16:9 Sequence, so I get letter boxing. Sometimes, FCE seems smart enough and says "hey should I fix this", but sometim
-
Export to AVI file too large! The secret setting to smaller AVI files is?
The recent death of a internationally respect friend has put me in a position of creating a memorial video for an upcoming event-and it should have been finished 2 days ago! So I'm pressed for time. The problem is the display format: a large digital
-
Need to uninstall Adobe captivate 7
Background:I had originally downloaded the trial version, then downloaded the full. During the download, I managed to dowload the file twice, so I deleted the duplicate files and also copied the files to out IT folder for backup. I think during this
-
HTTPS under SM59 - Verification of one certificate of path failed because t
I'm trying to test a SSL connection in SM59 and I keep getting the same error. [Thr 140434420815632] Wed Jan 5 05:06:36 2011 [Thr 140434420815632] *** ERROR during SecudeSSL_SessionStart() from SSL_connect()==SSL_ERROR_SSL [Thr 140434420815632] s