In fact, the end result of ColdFusion processing a CFM page is Java byte code that does all of the processing for your ColdFusion pages. ColdFusion is, essentially a Java pre-parser. SNS will do much, much, MUCH more than send simple SMS text messages, but the task in my hands is to send an SMS… so I’m going to limit the scope of its use to doing just that.ĬoldFusion runs on top of Java. They wanted to add a text messaging feature that sends an SMS text message to their mobile device.Īmazon Web Services includes a service called Simple Notification Service, or SNS. Once an agent builds a package for a customer, they email them a link where the customer can complete their purchase. I’m working with a client who sells travel packages to customers. Think of my coding style like a drunken baby and accept that this may or may not be the “right way” to accomplish this task… but it’s the way I stumbled upon. Most of what I’ve learned has been through brute force, hack and slash, trial and error development. It's also important to keep in mind all points outlined in Google's Bulk Senders Guidelines.This can certainly be chalked up to be a “this is why I love ColdFusion” posts.įirst my obligatory disclaimer I’m not an AWS guru. UPDATE (): It's important to note that there are daily sending limits when using Gmail SMTP, as noted in this Gmail Help page and in this Google Apps forum answer. When configuring the mail server settings in the Railo Server/Web Admin, I was only able to get a successful verification when using TLS and port 587 - when I tried SSL and port 465, it just hung (probably would have timed out trying to verify, but I waited a good minute before giving up). UPDATE (): I have also tested this with the Railo 3.1.0.012 CFML engine, and all three examples above work well with Railo. I don't believe it's possible to use Gmail SMTP for cfmail in ColdFusion MX7 or earlier. I'm not sure exactly what happens when both useSSL and useTLS are true, but I'm guessing that one of them is being ignored? Is it possible to implement both in one request? I'd love to hear feedback if anyone has more knowledge/experience or a reason for a strong preference here.įor what it's worth, I also confirmed that you can leave off in the username attribute, but you must include the domain name for custom domains (Apps for Your Domain accounts).įinally, I should also note that the useSSL and useTLS attributes were introduced to cfmail in ColdFusion 8. Since TLS appears to be the successor to SSL, I guess I'll go with that for now. So, which one should I use? I can only claim to know as much about SSL vs. Here are examples of all three variations that worked in my testing: In any case, I've performed some thorough testing and learned that port 465 will work with SSL only enabled or with both SSL and TLS enabled port 587 will work with TLS only enabled. By the way, I did notice the mention of "requires TLS" in the Gmail help doc, but the "some clients call this SSL" confuses the issue a bit. "Use Authentication: Yes" suggests we need to set either useSSL or useTLS to true, right? It also looks like we can set the port attribute to either 465 or 587, right? Well, these inferences are both half correct, but there is a dependency between the three attributes. Well, the server attribute is easy, that should be: So, how does the above information translate to relevant cfmail tag attributes (server, port, username, password, useSSL, useTLS)? It's a bit more specific than the Gmail help doc suggests. Use STARTTLS: Yes (some clients call this SSL) The help doc provides the following information for the outgoing/SMTP server configuration: We can quickly deduce that the username attribute should be your full e-mail address (including or and the password is of course your Gmail password. So I've taken a little time to experiment and thought I'd share the results.įrom both my account and my Google Apps for Your Domain mail (gmail for custom domain name) accounts I was able to find the same help doc for standard POP/SMTP configuration. I did find plenty of search results on the topic, but most threads were a little confusing and noted differing experiences between developers. I wanted to have a cfmail tag use my Gmail SMTP to send mail, which was relatively straightforward, but there is some vague language in the Google help doc that didn't immediately translate to cfmail attribute settings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |