sendgrid

Sendgrid / email sending issues in Ruby on Rails (hosted on Heroku)

独自空忆成欢 提交于 2019-11-28 05:04:24
im having a problem getting sendgrid to send emails successfully on a rails 3.1 app that's using authlogic for authentication and is being deployed on heroku. i have the following action mailer configuration on config/environments/[development.rb and production.rb]: config.action_mailer.delivery_method = :smtp config.action_mailer.default_url_options = { :host => 'localhost:3000' } config.action_mailer.default_charset = "utf-8" config.action_mailer.raise_delivery_errors = true config.action_mailer.perform_deliveries = true config.action_mailer.smtp_settings = { :address => 'smtp.sendgrid.net',

How can I parse a JSON string using ASP.NET?

大城市里の小女人 提交于 2019-11-28 02:03:02
问题 I am using Sendgrid API to send and retrieve statistics of mail sent. I want to store the response of API in database. protected void btnBounces_Click(object sender, EventArgs e) { try { string url = "https://api.sendgrid.com/api/bounces.get.json"; GetResult(url); } catch (Exception ex) { lblError.Text = ex.Message.ToString(); } } public void GetResult(string url) { string parameters = "api_user=xxxx&api_key=xxxx&date=1&start_date="+txtStartDate.Text+"&end_date="+txtEndDate.Text; // Start the

SendGrid API Key not working. “The provided authorization grant is invalid, expired or revoked”

佐手、 提交于 2019-11-28 00:38:39
SendGrid seems to be preventing my node js server sending emails. I get this error message in the response on sending of an email: "The provided authorization grant is invalid, expired or revoked" I have an API key setup as well and have followed the documentation. You need to use the API KEY GENERATED DO NOT USE the API KEY ID Sendgrid only displays the generated key once when you create it. If you didn't record it somewhere when you created the key you'll need to create a new key and then you'll probably want to delete the old key since it would be useless if you don't know what it is. FYI:

MailConnectException: Couldn't connect to host, port: smtp.sendgrid.net

时光毁灭记忆、已成空白 提交于 2019-11-27 19:37:59
问题 I have created API key for sendGrid: I have following spring mail configuration: spring.mail.default-encoding=UTF-8 spring.mail.host=smtp.sendgrid.net spring.mail.username=apikey spring.mail.password=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 spring.mail.port=25 spring.mail.protocol=smtp spring.mail.test-connection=true And I have following code: MimeMessage message = sender.createMimeMessage(); MimeMessageHelper helper = new MimeMessageHelper(message,

Adding a name to the “from” field in SendGrid in Node.js

◇◆丶佛笑我妖孽 提交于 2019-11-27 17:56:10
问题 I want to add a name to my "from" field using the SendGrid API, but I do not know how to do this. I tried setting the "from" parameter in sendgrid.send to Name <example@example.com> but that didn't work. Thanks. 回答1: You can set the from parameter in a couple of ways: var SendGrid = require('sendgrid').SendGrid; var sendgrid = new SendGrid(user, key); sendgrid.send({ to: 'you@yourdomain.com', from: 'example@example.com', // Note that we set the `from` parameter here fromname: 'Name', // We

Sendgrid returns 202 but doesn't send email

独自空忆成欢 提交于 2019-11-27 17:50:31
问题 I'm trying to get the basic "hello world" of sendgrid working, but have so far been unsuccessful. The response returns code 202, suggesting that it will send the email, but the email never sends out. Does anyone know what's going on? import sendgrid sg = sendgrid.SendGridAPIClient(apikey='**my-api-key**') data = { "personalizations": [ { "to": [ { "email": "me@gmail.com" } ], "subject": "Hello World from the SendGrid Python Library!" } ], "from": { "email": "me@gmail.com" }, "content": [ {

Too many DNS lookups in an SPF record

二次信任 提交于 2019-11-27 09:36:56
问题 My website needs to send out emails with Google Apps, SendGrid and MailChimp services. Google Apps is used to receive and read incoming email to my domain. I need to set the SPF record for my domain. The following is syntactically correct (not sure about A and MX tokens): "v=spf1 a mx include: _spf.google.com include: servers.mcsv.net include: sendgrid.net ~all" But if I test it with http://www.kitterman.com/getspf2.py I get PermError SPF Permanent Error: Too many DNS lookups Similar problem

Sendgrid / email sending issues in Ruby on Rails (hosted on Heroku)

落花浮王杯 提交于 2019-11-27 05:29:42
问题 im having a problem getting sendgrid to send emails successfully on a rails 3.1 app that's using authlogic for authentication and is being deployed on heroku. i have the following action mailer configuration on config/environments/[development.rb and production.rb]: config.action_mailer.delivery_method = :smtp config.action_mailer.default_url_options = { :host => 'localhost:3000' } config.action_mailer.default_charset = "utf-8" config.action_mailer.raise_delivery_errors = true config.action

How do I write a media query for Gmail?

故事扮演 提交于 2019-11-26 22:07:21
问题 I am trying to write some HTML/CSS for an email but can't get things to show and hide responsively. I have one big table, with two nested tables. Each of the nested tables is a footer that is hidden or shown based on the screen size. Here's the code <style> @media all and (max-width: 768px) { table[table-view=desktop] { display: none !important; } table[table-view=mobile] { display: block; } } @media all and (min-width: 769px) { table[table-view=mobile] { display: none !important; } table

Avoid being blocked by web mail companies for mass/bulk emailing? [closed]

雨燕双飞 提交于 2019-11-26 09:25:09
问题 Our company is sending out a lot of emails per day and planning to send even more in future. (thousands) Also there are mass mailouts as well in the ten thousands every now and then. Anybody has experience with hotmail, yahoo (web.de, gmx.net) and similar webmail companies blocking your emails because \"too many from the same source in a period of time\" have been sent to them? What can be done about it? Spreading email mailouts over a whole day/night? At what rate? (we are talking about