Hi John, Glad you got it working.
Port 25 is the standard port for mail but for example gmail uses 587 and TLS encryption so there may be a requirement for you to use al alternate port at some stage. Regards, Paul -----Original Message----- From: John Barrett [mailto:[email protected]] Sent: Tuesday, 20 January 2009 2:58 AM To: cf-newbie Subject: Re: cfmail questions Hi Paul, Yep one of the issues was the password being wrong, a case sensitive issue. a simple fix of a letter being "x" which needed to be "X" I am not sure about the port 25, is that the standard port for mail servers? Sort of like port 80 for the webserver, like the localhost? It is on a shared hosting account, so I don't think that the mail is set up in the CF admin;however, I do not need to include the server information in general using cfmail. I added this, because the cfschedule that I set up was not running on time, it was lagged sometimes about 6 hours later. They told me to use the server information to ensure that the mail would be send out on time. This was my first experience with cfschedule, which is great, and this issue is pretty minor, especially when knowing that you can schedule events to occur with CF, which I would have to say is the greatest server solution:) Thanks so much for your help, John On Jan 19, 2009, at 4:55 AM, Paul Kukiel wrote: > Triple check user/pass/mailserver ip > > Also does your mail server run on port 25 or a different port? > > Is it using TLS or SSL? > > Do you not have a mail server set up in cfadmin so u done need the > user/pass/mail server attributes in the <cfmail /> tag?. > > Paul > > -----Original Message----- > From: John Barrett [mailto:[email protected]] > Sent: Sunday, 18 January 2009 11:37 PM > To: cf-newbie > Subject: cfmail questions > > Hi, I have a page that uses cfmail, but it is not being delivered. > I check the mail logs on my localhost,and I get: > "Error","scheduler-2","01/18/09","17:20:46",,"Authentication Failed" > > However, I have no files in the Applications/ColdFusion8/Mail/ > as I checked the Spool folder and the Undelivr and nothing is in > there. > > This running on a remote host, as I was just checking on my > localhost to see > the logs. > > Is there anything that anybody knows the mail might not be going > out? I did > have a cfschedule to run this page, but I don't think the two have > anything > to do with if the mail will be delivered? I mean the cfschedule > just runs > this page,... > > I added the server information(it is blocked here, but is correct > on the > server), but the "from" is using another mail server. I am not sure > if this > matters. > > Thanks so much for any help that you can provide to me:) > John > > <!--- send_tips.cfm---> > <cfset tipdate = #CreateODBCDate(now())#> > <cfset time = Now()> > <cfset time = dateadd("h",-6,time) /> > > <!--- Get tips from the tips table---> > <cfquery name="rs_dailytip" datasource="#REQUEST.dataSource#"> > SELECT record_id, tipdate, dailytip, consumer_link, research_link > FROM dailytips > WHERE tipdate = #tipdate# > </cfquery> > > <!--- Get users & their email from the users table---> > <cfquery name="GetMembers" datasource="#REQUEST.dataSource#"> > SELECT * > FROM email_alerts > </cfquery> > > > <cfloop query="GetMembers"> > <cfmail To="#GetMembers.email_address#" > From="[email protected]" > Subject="Got Nutrients? Daily Tip" > type="HTML" > server="mail.my server" > username="myuser name" > password="my password"> > > <!--- <cfoutput>---> > <html> > <head> > <link rel="stylesheet" type="text/css" href="email.css" /> > > <style type"text/css"> > body { > background: ##fff; > color: ##333; > font-family: "Lucida Grande", "Lucida Sans Unicode", Arial, > sans-serif; > min-width: 960px; > } > > a:link { > border-bottom: 1px solid ##696; > color: ##06c; > text-decoration: none; > } > > a:visited { > border-bottom: 1px solid ##900; > color: ##888; > text-decoration: none; > } > > a:hover { > border-bottom: 1px solid ##06c; > color: ##696; > text-decoration: none; > } > </style> > </head> > <body> > > <p><a href="http://www.gotnutrients.net/"><img > src="http://www.gotnutrients.net/assets/images/web_logo.jpg" > border="0"></a></p> > <em>#DateFormat(tipdate, "mmmm d, yyyy")#</em><br /> > #rs_dailytip.dailytip#<br /> > </span> > <p class="email"> > TO LEARN MORE ON THIS TOPIC<br> > <a href="http://www.manoa.hawaii.edu/gotnutrients"> > www.manoa.hawaii.edu/gotnutrients</a> > > <p class="style1"> > Honolulu Subarea Health Planning Council<br> > Human Nutrition, Food & Animal Sciences<br> > C / T / A / H / R · University of Hawai`i at M&##257;noa > <p><a href="http://www.manoa.hawaii.edu/gotnutrients/">Visit Got > Nutrients?</ > a> &n > bsp; > > <a > href="http://www.gotnutrients.net/email_alerts/unsubscribe.cfm">To > unsubscribe click here</a></p> > <a href= > "http://www.gotnutrients.net/email_alerts/unsubscribe.cfm"></a> > </body> > > > </html> > </cfmail> > </cfloop> > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4299 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
