sendgrid

Dealing with MySQL NativeError Code 1366 and SQLState HY000 in coldfusion

喜你入骨 提交于 2019-12-02 11:50:00
Please find the initial few lines of stack trace of the error below: (The column sl is what I have used in the stored procedure code) Incorrect string value: '\xC2\x80\xC2\x99t ...' for column 'sl' at row 1 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946):946 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985):2985 at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631):1631 at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723):1723 at com.mysql.jdbc.Connection.execSQL(Connection.java:3283):3283 at and so on.. The stored procedure code, CODE II which is getting

SendGrid Attachments Are Empty or Corrupt Using API (VBA)

一曲冷凌霜 提交于 2019-12-02 11:04:47
问题 This seems to be a constant issue with the SendGrid Web API and emailing attachments. I've found many, many posts across the web all of whom are having this same issue... but none of them seem to be answered with a solution. SendGrid's own canned response is use one of their libraries... but the question remains how do you attach files when you are using a language that does not have a library. I've tried contacting SendGrid support myself on this issue... even offered to pay for support to

how to write a Cloud Function for send email using SendGrid

二次信任 提交于 2019-12-02 09:42:22
I am trying to send email using sendGrid (In my mobile application). So i wrote a cloud function and deployed it into firebase.(using this,Visit https://angularfirebase.com/lessons/angular4-transactional-email-with-cloud-functions-and-sendgrid/ ). it was uploaded to firebase. But, when i try to send post request(Using postman {"to":"user1@gmail.com","from":"duser253@gmail.com","subject":"test-email","content":"content"} ), in firebase log shows some errors SendGridError: Response error at /user_code/node_modules/sendgrid/lib/sendgrid.js:104:23 at ClientRequest.<anonymous> (/user_code/node

Rails - How to add contacts to SendGrid marketing campaigns via API

回眸只為那壹抹淺笑 提交于 2019-12-02 06:29:23
I need to make HTTP get and post requests with SendGrid to add contacts to our account, however there doesn't seem to be a gem for their email marketing functionality. It boils down to making a few requests however I can't get past their authentication step. They say to do this curl -X "GET" "https://api.sendgrid.com/v3/templates" -H "Authorization: Bearer Your.API.Key-HERE" -H "Content-Type: application/json" And using the Rest-Client gem I'm trying to make the authentication request like so... username = 'username' api_key = 'SG.MY_API_KEY' key = Base64.encode64(username + ":" + api_key)

WebJob Not Loading SendGridMail Assembly

感情迁移 提交于 2019-12-02 05:19:57
I'm trying to use the SendGrid extensions for Azure WebJobs. I've tried to follow the example, but, unfortunately, the WebJob app crashes with the following error: Could not load file or assembly 'SendGridMail, Version=6.1.0.0, Culture=neutral, PublicKeyToken=2ae73662c35d80e4' or one of its dependencies. The system cannot find the file specified. Having run into something similar once before involving NewtonSoft's Json, I tried to fix the problem by adding the following to app.config: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name=

How to add a reply-to and a from-name header with SendGrid php library

ε祈祈猫儿з 提交于 2019-12-02 01:27:52
This might be a silly question, but I've looked here , here and here , and there is no mentioning whatsoever about those simple functionality. Can I user the addHeader method for this cause?. Thanks in advance for any help!. Without more info about how you're actually sending the email (web?, smtp?, libraries?, etc), it's hard to give you a concise answer. That said, one of these three options should work: 1) If you're sending over HTTP with the web API You can actually just add two extra parameters to your POST body, fromname and replyto , and send them along with the normal to , from ,

How to send embedded images with sendgrid emails?

不问归期 提交于 2019-12-01 18:39:16
I'm starting with SendGrid to send my e-mails, but I coudn't find how to embed images. Without using SendGrid I was using the following code to send e-mails with embedded images: var mail = new System.Net.Mail.MailMessage(); mail.Subject = "Warning"; mail.From = "from_user@test.com"; mail.To.Add("to_user@test.com"); mail.IsBodyHtml = true; mail.Body = "<html><body><a href='http://www.mywebsite.com' title='My Website'><img src='cid:my_image' alt='My Image' border='0' /></a><br /><h1>My E-mail Title</h1>E-mail content.</body></html>"; var av = AlternateView.CreateAlternateViewFromString(mail

SendGrid unique arguments with individual emails

耗尽温柔 提交于 2019-12-01 18:11:52
I trying to set up a list of unique arguments per each email, the official reference of the SMTP api describes this feature quite briefly, here . And the API docs of the SendGrid PHP library the I am using, also didn't help much: /** * setUniqueArguments * Set a list of unique arguments, to be used for tracking purposes * @param array $key_value_pairs - list of unique arguments */ public function setUniqueArguments(array $key_value_pairs) { $this->header_list['unique_args'] = $key_value_pairs; return $this; } /** * addUniqueArgument * Set a key/value pair of unique arguments, to be used for

Coldfusion CFMAIL and sendgrid

寵の児 提交于 2019-12-01 17:55:11
I have 2 clients on the same server that I host, that both send email through sendgrid.com (both have their own accounts). I was looking at reports on sendgrid and noticed that categories from "client 1" were showing up in a report for "client 2". I spent extensive time on the phone with sendgrid and they are telling me that a handful of emails 65 from a batch of 3000 for "client 1" show as being sent through "client 2"'s authenticated user. In my scripting, I use coldfusion cfmail and I specify the SMTP address, username and password for that client into the tag. A possible theory takes into

Add a newsletter subscription checkbox form on WooCommrece Register Page

左心房为你撑大大i 提交于 2019-12-01 12:57:47
I'm using SendGrid plugin which allows to create a Newsletter Subscription Form that will send email notification to subscribe to newsletter ( https://sendgrid.com/docs/for-developers/sending-email/wordpress-subscription-widget/ ). I want that when a new user sign-up they will have an option to subscribe on newsletter through checkbox on Register Page ( http://prntscr.com/nmq8h2 ). The SendGrid plugin is not anymore maintained since a while (so it seems really outdated). Updated: Now to add a checkbox for a news letter subscription in Woocommerce registration form (and on My account > Account