Hi All. We'd like to be able to send email into a...
# cfml-general
n
Hi All. We'd like to be able to send email into a CF-based CRM system. Has anyone here done that before and if so, is there a best practice? We were thinking about sending the email to a dedicated mail account and then using <cfpop> to retrieve the email and insert it into the DB? Does that sounds like the modern coding way to handle a task like this?
r
We do exactly this
We did run into issue with authenticating to gmail as simple username/password are no longer supported but I think adobe fixed this
n
@Ryan Albrecht So you are saying that you would have CF use cfpop to connect to a gmail email folder / inbox? In our case we would use something else but I assume it would have a un/pw as with any email.
When you select from the email pop account, do you have a code in the subject line (as with a support ticket) that you use to determine how to flag it in the db? Or do you link it to email addresses?
r
I think I remember now. We used a gmail account and there is a setting you have turn on to authenticate using a uname/pword
I am just making you aware of the issue that some email providers will require OAuth
n
@Ryan Albrecht ok, thank you
m
Maybe also take a look at services like SendGrid and Mailgun that have an inbound email feature. Here, they handle the picking up of the email and the parsing of it which they then send to you via a webhook that you define. This was worked very well for me.👍