|
|
|
Rank: Starting Member
Groups: Registered
Joined: 11/5/2002 Posts: 2 Location: ,
|
I am using CFMAIL tag to notify myself of incoming orders. CFMAIL does not work with RECEIVER_EMAIL. So, if I set-up the #FORM.RECEIVER_EMAIL# with sales@mycompany.com. Then, try to send an email using CFMAIL to: sales@mycompany.com. CFMAIL fails. Any other mail works great! Is this a known issue?
TIA,
Terry
|
|
|
|
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 10/13/2003 Posts: 3 Location: ,
|
i'd have to see the code to be able to help you out. sounds kinda strange.
is this on a live server - and you are using CFMAIL elsewhere - and if so, what are you using in the TO field, do you have access to the mail directory on the server where CF is storing the emails to see what is in there - or are you seeing an error right away?
:) Gideon
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 11/5/2002 Posts: 2 Location: ,
|
Still having same problem with cfmail... Everything works besides cfmail. I do not get any error. Anybody having same problem? Is there something I may have overlooked?
<!--- IPN.cfm --->
<!-- read post from PayPal system and add 'cmd' --> <CFSET str="cmd=_notify-validate"> <CFLOOP INDEX="TheField" list="#Form.FieldNames#"> <CFSET str = str & "#LCase(TheField)#=#URLEncodedFormat(Evaluate(TheField))#"> </CFLOOP> <CFIF IsDefined("FORM.payment_date")> <CFSET str = str & "&payment_date=#URLEncodedFormat(Form.payment_date)#"> </CFIF> <CFIF IsDefined("FORM.subscr_date")> <CFSET str = str & "&subscr_date=#URLEncodedFormat(Form.subscr_date)#"> </CFIF> <!-- post back to PayPal system to validate --> <CFHTTP URL="https://www.paypal.com/cgi-bin/webscr?#str#" METHOD="GET" RESOLVEURL="false"> </CFHTTP> <!-- check notification validation --> <CFIF #CFHTTP.FileContent# is "VERIFIED"> <!-- check that payment_status=Completed --> <cfif FORM.payment_status eq "Completed" OR FORM.payment_status eq "Pending"> <!-- check that receiver_email is your email address --> <cfif #FORM.RECEIVER_EMAIL# eq "sales@ckantiques.com"> <cfquery name="checkOrders" datasource="#application.dsn#"> SELECT OrderNo, OrderID FROM Orders WHERE OrderNo = '#FORM.Invoice#' </cfquery>
<cfif checkOrders.recordcount gt 0>
<!--- UPDATE ORDER INFO ---> <cfquery datasource="#application.dsn#"> UPDATE Orders SET PaymentStatus = '#trim(FORM.PAYMENT_STATUS)#', PayerID = '#trim(FORM.payer_id)#', PaymentGross = '#trim(FORM.payment_gross)#', PaymentFee = '#trim(FORM.payment_fee)#', Tax = '#trim(FORM.tax)#', PaymentDate = #now()# WHERE OrderNo = '#FORM.Invoice#' </cfquery>
</cfif> <!--- #FORM.PAYER_EMAIL# ---> <cfmail to="sales@mySite.com" from="orders@mySite.com" subject="Pay Pal Order From Web Site" type="html"> #FORM.first_name# #FORM.last_name#<br> #FORM.address_street#<br> #FORM.address_city#, #FORM.address_state# #FORM.address_zip#<p> <cfloop list="#form.fieldnames#" index="i"> #i#: #evaluate(i)#<br> </cfloop>
</cfmail>
</cfif> </cfif>
<CFELSEIF #CFHTTP.FileContent# is "INVALID"> <!-- log for investigation --> Something that was purchased was invalid, either the order or the information provided. This is usually good to log in case someone is trying to purchase with stolen card numbers, etc. Here simply place a QUERY tag that insert the data above into a database. <CFELSE> <!-- error --> This usually means that something went wrong along the way, you can use this area to log it and keep for your records. </CFIF>
splendorx
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 2/6/2004 Posts: 5 Location: ,
|
Understandable that your e-mail addresses are bogus when written them here but the e-mail you have on your FROM-field MUST be a valid one.
If you are sending e-mail from you to you you probably won't answer it so you might have written just something bogus to the FROM-field.
And also if you are just sending plaintext e-mail to yourself, you might want to get rid of that type="html" from your cfmail. There is absolutely no content in your e-mail that would require the mail being sent as HTML.
Tajutondarra
|
|
|
|
Guest
|
YAFVision Theme by Jaben Cargman (Tiny Gecko)Powered by YAF |
YAF © 2003-2009, Yet Another Forum.NETThis page was generated in 0.273 seconds.