#txtHeader# Hello #rsCreateMailList.firstname# #txtMessage# #txtFooter# Thank you, Your Newsletter has been successfully sent to all in your list. It runs fine as long as I don't add the quiry attribute. I need the tag to loop through all emails in the database so as I understand it the mail attribute would need to be defined prior to the "TO" attribute. Here's the error. Attribute validation error for tag CFMAIL. # The tag has an invalid attribute combination: failto,from,groupcasesensitive,query,replyto,server,subject,timeout,to. Possible combinations are:Required attributes: 'from,subject,to'. Optional attributes: 'bcc,cc,charset,debug,failto,mailerid,mimeattach,password,port,replyto,server,spoolenable,timeout,type,username,wraptext'. # Required attributes: 'from,group,subject,to'. Optional attributes: 'bcc,cc,charset,debug,failto,groupcasesensitive,mailerid,maxrows,mimeattach,password,port,replyto,server,spoolenable,timeout,type,username,wraptext'. # Required attributes: 'from,query,subject,to'. Optional attributes: 'bcc,cc,charset,debug,failto,mailerid,maxrows,mimeattach,password,port,replyto,server,spoolenable,startrow,timeout,type,username,wraptext'. # Required attributes: 'from,group,query,subject,to'. Optional attributes: 'bcc,cc,charset,debug,failto,groupcasesensitive,mailerid,maxrows,mimeattach,password,port,replyto,server,spoolenable,startrow,timeout,type,username,wraptext'. The error occurred in C:\Inetpub\wwwroot\datapacks\wwwroot\Administration\Maillist\CreateMailingList.cfm: line 20 18 : 19 : 20 : 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Bill [ip] => bill.betournay [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) --> CFMail again - Coldfusion - Advanced Techniques

CFMail again - Coldfusion - Advanced Techniques

Man this Mail tag has been giving me big kahoonas lately Can anyone see why this doesn't work?? here's what I have <cfcase value="text"> <cfquery name="rsCreateMailList" datasource="My_DSN"> SELECT * FROM tbl_maillist WHERE active = TRUE </cfquery> <!--- <cfdump var="#rsCreateMailList#"> ---> <cfmail query="rsCreateMailList" to="#email#" replyto="infoMyServer.com" failto="infoMyServer.com" from="infoMyServer.com" subject="#txtSubject#" server="mail.MyServer.com" timeout="10" groupcasesensitive="no"> <cfmailparam name = "Importance" value = "High" > <cfmailpart type="text"> #txtHeader# Hello #rsCreateMailList.firstname# #txtMessage# #txtFooter# </cfmailpart> </cfmail> Thank you, Your Newsletter has been successfully sent to all in your list. </cfcase> It runs fine as long as I don't add the quiry attribute. I need the tag to loop through ...

  1. #1

    Default CFMail again

    Man this Mail tag has been giving me big kahoonas lately

    Can anyone see why this doesn't work??

    here's what I have

    <cfcase value="text">

    <cfquery name="rsCreateMailList" datasource="My_DSN">
    SELECT * FROM tbl_maillist WHERE active = TRUE
    </cfquery>
    <!--- <cfdump var="#rsCreateMailList#"> --->
    <cfmail query="rsCreateMailList"
    to="#email#"
    replyto="infoMyServer.com"
    failto="infoMyServer.com"
    from="infoMyServer.com"
    subject="#txtSubject#"
    server="mail.MyServer.com"
    timeout="10"
    groupcasesensitive="no">
    <cfmailparam name = "Importance" value = "High" >
    <cfmailpart type="text">
    #txtHeader#

    Hello #rsCreateMailList.firstname#

    #txtMessage#

    #txtFooter#

    </cfmailpart>
    </cfmail>
    Thank you, Your Newsletter has been successfully sent to all in your list.
    </cfcase>

    It runs fine as long as I don't add the quiry attribute. I need the tag to
    loop through all emails in the database so as I understand it the mail
    attribute would need to be defined prior to the "TO" attribute.

    Here's the error.

    Attribute validation error for tag CFMAIL.
    # The tag has an invalid attribute combination:
    failto,from,groupcasesensitive,query,replyto,serve r,subject,timeout,to.
    Possible combinations are:Required attributes: 'from,subject,to'. Optional
    attributes:
    'bcc,cc,cht,debug,failto,mailerid,mimeattach,p assword,port,replyto,server,spoolenable,timeout,ty pe,username,wraptext'.
    # Required attributes: 'from,group,subject,to'. Optional attributes:
    'bcc,cc,cht,debug,failto,groupcasesensitive,ma ilerid,maxrows,mimeattach,password,port,replyto,se rver,spoolenable,timeout,type,username,wraptext'.
    # Required attributes: 'from,query,subject,to'. Optional attributes:
    'bcc,cc,cht,debug,failto,mailerid,maxrows,mime attach,password,port,replyto,server,spoolenable,st artrow,timeout,type,username,wraptext'.
    # Required attributes: 'from,group,query,subject,to'. Optional attributes:
    'bcc,cc,cht,debug,failto,groupcasesensitive,ma ilerid,maxrows,mimeattach,password,port,replyto,se rver,spoolenable,startrow,timeout,type,username,wr aptext'.

    The error occurred in
    C:\Inetpub\wwwroot\datapacks\wwwroot\Administratio n\Maillist\CreateMailingList.cfm:
    line 20

    18 : </cfquery>
    19 : <!--- <cfdump var="#rsCreateMailingList#"> --->
    20 : <cfmail query="rsCreateMailList"
    21 : to="#email#"
    22 : replyto="infodatapacks.com"


    Am I missing something here???

    TY

    Bill


    Bill Guest

  2. #2

    Default Re: CFMail again

    To use groupcasesensitive you must have group to use it with a query. Just take it out.
    Stressed_Simon Guest

  3. #3

    Default Re: CFMail again

    :-)

    That kinda ticks me off. I've been frigg'n with this thing for a few hours
    now and the issue was as simple as that.

    Thank you very much

    Bill
    "Stressed_Simon" <webforumsusermacromedia.com> wrote in message
    news:d5nk16$aju$1forums.macromedia.com...
    > To use groupcasesensitive you must have group to use it with a query. Just
    > take it out.

    Bill Guest

  4. #4

    Default Re: CFMail again

    Well, I thought it was solved. Works fine locally but I get that same error
    on the plublic server. It's like I didn't even change anything.

    Bill


    "Stressed_Simon" <webforumsusermacromedia.com> wrote in message
    news:d5nk16$aju$1forums.macromedia.com...
    > To use groupcasesensitive you must have group to use it with a query. Just
    > take it out.

    Bill Guest

  5. #5

    Default Re: CFMail again

    maybe the live server has trusted cache turned on?
    MattRobertson Guest

Similar Threads

  1. CFMAIL in MX7
    By roundtable in forum Coldfusion Server Administration
    Replies: 0
    Last Post: October 17th, 09:08 PM
  2. CFMAIL and SPF
    By redherring in forum Macromedia ColdFusion
    Replies: 4
    Last Post: May 6th, 07:12 PM
  3. cfmail help me plz!!
    By vivaforever in forum Coldfusion - Getting Started
    Replies: 3
    Last Post: April 19th, 02:35 PM
  4. <cfmail></cfmail> in a script
    By Greeniegirl in forum Macromedia ColdFusion
    Replies: 1
    Last Post: March 30th, 06:23 PM
  5. cfmail - Attribute validation error for tag CFMAIL.
    By CF_Hack in forum Coldfusion - Getting Started
    Replies: 1
    Last Post: March 11th, 05:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •