FAQ Database Discussion Community


How to Send an Email in Development with Actionmailer Sendgrid?

ruby-on-rails,actionmailer,development-environment,sendgrid
I'm having an impossible time trying to figure out how to setup email in development with sendgrid, and Actionmailer. I've read a bunch of varying things and I keep getting different errors. Right now I get this one: Net::SMTPFatalError in UsersController#create 550 Cannot receive from specified address <[email protected]>: Unauthenticated senders...

Devise emails are not being sent using sendgrid while other emails are being sent well

ruby-on-rails-4,heroku,devise,sendgrid
I am using sendgrid to send emails in production my all other emails are being sent as expected but all the devise emails are not being sent neither a crash occur my in my production.rb I have config.action_mailer.raise_delivery_errors = false config.action_mailer.default_url_options = { :host => 'myapp.herokuapp.com' } config.action_mailer.delivery_method = :smtp...

NoClassDefFoundError in Sendgrid

java,sendgrid
I am using https://github.com/sendgrid/sendgrid-java in my app. This is my code SendGrid sendgrid = new SendGrid("username", "password"); SendGrid.Email email = new SendGrid.Email(); email.addTo("[email protected]"); email.setFrom("[email protected]"); email.setSubject("Hello World"); email.setText("My first email with SendGrid Java!"); try { SendGrid.Response response = sendgrid.send(email); System.out.println(response.getMessage()); } catch (SendGridException e) { System.err.println(e); } This is my maven...

how to use designed template in django using sendgrid API?

python,django,sendmail,sendgrid
I have integrate the send-grid with my Django application and mails also sent successfully. But now I want to send email with designed template from my django application. I have read the docs also, but not get any idea how to use it programatically. This is my first time to...

Is message queueing mandatory for Azure web app when sending emails through SendGrid

asp.net,azure,message-queue,sendgrid
I have an Azure web application (Asp.net MVC & WebAPI) that sends emails through SendGrid service. I'm not using SendGrid's API but rather use .net built-in SMTP that I configured in web.config and directed to SendGrid. I'm now wondering whether I also need message queueing application in my solution that...

Can we use smtp with heroku without the SendGrid add-on?

ruby-on-rails,ruby,heroku,sendgrid,add-on
I am deploying an ruby-on-rails app in Heroku.I cannot add the SendGrid add-on to the heroku account.Is there any other ways to use the email services?

How to add headers in sendgrid?

php,outlook,icalendar,sendgrid
I'm trying to send a calendar invitation on outlook using php and sendgrid. So I need to create an ics file which is not the issue. The issue is that I need to set headers. Gmail recognizes the ics file as a calendar invitation but outlook does not. This is...

Can i use SendGrid to receive email from different addresses with my own domain/subdomain

email,sendgrid
I have no experience using SendGrid and I want to know if it is possible to do what I want to do, before purchasing a plan. Let's say I have configured a hostname called www.factureria.com. It is possible that i can receive email from [email protected], [email protected] etc. using SendGrid's Inbound...

Why can't I unbind this service?

cloudfoundry,sendgrid,bluemix
When I try to unbind a specific SendGrid service from my Java Liberty application running on Bluemix, I get the following error message: Service broker error: {"description"=>"Received exception with class 'javax.ws.rs.client.ResponseProcessingException' and message 'Problem with reading the data, class com.appdirect.backend.integration.custom.sendgrid.output.SendGridResult, ContentType: application/xml;charset=utf-8.' while calling integration endpoint 'null'."} I get the...

Using the sendgrid node-module, how do I send a SendGrid Template Engine email?

node.js,sendgrid
I have created a "Thanks for subscribing" email template via SendGrid's Template Engine. Now, when someone subscribes to my site, I want to send that person that template. Can I do this using the sendgrid-nodejs package? I don't see anything regarding this in the docs....

Is it possible to exclude links from tracking

tracking,sendgrid
I am building an app which is utilizing Sendgrid Marketing Email API, with the purpose of sending newsletters. It has a number of links to articles, but also banner ads and other service links. We would obviously like to keep tracking of article links, but exclude other links from affecting...

Ruby on Rails: bad username / password? (535 Auth failed)

ruby-on-rails,ruby,devise,sendgrid
I just finished my ruby foundations coursework at Bloc and I'm starting to bury my head into rails development. Things were going smooth until I hit this snag with devise and confirmation emails. I tried googling and looking around at some other questions but couldn't really find any that gave...

How to integrate sendgrid templates with python app?`

python,sendgrid
I want to integrate the template which I made on the Sendgrid Template Engine with my python application. I read the documentation and the source code on GitHub, but It give me error like this: HTTP 400; JSON in headers is valid but incompatible My source code is: import sendgrid...

Mail not recived from rails sendgrid gem

ruby-on-rails,heroku,sendgrid
I have setup sendgrid addon on heroku in my rails app, every thing is okay I have checked heroku log as well event "https://sendgrid.com/logs/index" , it shows mail is Delivered but I am not getting email Thanks!...

Bad Request Check `Errors` for a list of errors returned by the API. at SendGrid

c#,asp.net,sendgrid
I'm using send grid to send an email after a user is created and I'm following This tutorial Here http://www.asp.net/identity/overview/features-api/account-confirmation-and-password-recovery-with-aspnet-identity I even downloaded This tutorial and wrote code as it is but it code breaks at this string code = manager.GenerateEmailConfirmationToken(uApp.Id); string callbackUrl = IdentityHelper.GetUserConfirmationRedirectUrl(code, uApp.Id, Request); manager.SendEmail(uApp.Id, "Confirm your...

Send ics calendar invite using Swift Mailer and Send Grid

php,icalendar,swiftmailer,sendgrid
I'm trying to send a calendar invite to Gmail using sendgrid and swiftmailer. This is my entire code: <html> <head> <title>PHP Test</title> </head> <body> <?php require_once('path/to/lib/swift_required.php'); require('path/to/smtpapi-php.php'); $transport = \Swift_SmtpTransport::newInstance('smtp.sendgrid.net', 587); $transport->setUsername('uname'); $transport->setPassword('pass'); $mailer = \Swift_Mailer::newInstance($transport); $ical="BEGIN:VCALENDAR\r\n PRODID:-//Microsoft...

How to send email using sendgrid in google cloud endpoints?

google-app-engine,google-cloud-endpoints,sendgrid
I'm trying to send email using Sendgrid with Google Cloud Endpoints. Here is the reference: https://cloud.google.com/appengine/docs/java/mail/sendgrid However, after copy Sendgrid.java to the src directory of the app, when I try to build the project, the error message says: package com.google.appengine.labs.repackaged.org.json does not exist It seems this package is not available...

Create attachment from the stream of the data

c#,sendgrid
I am trying to create SendGrid email attachment on-the-fly in C# on Azure. How can I correct the following code where someString is a variable holding the attachment xml content as directly retrieved from the DB? using (var attachmentFileStream = new FileStream(@someString, FileMode.Open)) { message.AddAttachment(attachmentFileStream, "someattachmentname.xml"); } It does not...

SendGrid-nodejs or Nodemailer?

node.js,sendgrid,nodemailer
There are at least two ways to send email from Nodejs using SendGrid: Sendgrid provides a Nodejs library called "SendGrid-nodejs." They're actively supporting Sendgrid-Nodejs (last update 29 days ago). Nodemailer supports sendgrid and seems to be extremely popular. SendGrid posted an article about using this combination: Sending email with Nodemailer...

sendgrid port 2525 not working in Rails app

ruby-on-rails,google-app-engine,sendgrid
I am trying to use the Google Cloud offer for SendGrid in a Rails app. In my config/environment/production.rb, I have: config.action_mailer.delivery_method = :smtp # SMTP Settings for use with SendGrid ActionMailer::Base.smtp_settings = { :user_name => "myusername", :password => "mypassword", :domain => "mydomain", :address => "smtp.sendgrid.net", :port => 2525, :authentication =>...

Azure SendGrid DeliverAsync works but not Deliver

azure,sendgrid
I wired up SendGrid using their documentation as a guide. Nothing fancy here, just want to fire off an email for certain events. Looking at the code below, the SendGrid documentation directs me to use transportWeb.Deliver(message) but this results in "cannot resolve symbol Deliver" However if I use DeliverAsync everything...

How to Add Return-Path Mail Header using SendGrid

sendgrid,return-path
I am sending emails from Azure Webjob (C#) via SendGrid. I don't see any option to add Return-Path in the mail header. Is it possible?

Windows Azure worker role and SendGrid “Bad Key Path!” Error

azure,azure-worker-roles,sendgrid
I'm trying to use SendGrid to send an email from an Azure worker role every time there are certain exceptions, but I can't get the email to send. I am using SendGridMail version 6.1.0.0 and SendGrid.SmtpApi version 1.3.1.0 which I installed via nuget and .Net 4.5. I am currently debugging...

Maven dependency can't find zip file for sendgrid-java

java,maven,grails,gradle,sendgrid
I am getting an error while trying to include sendgrid-java during the build of a grails project. I've added a compile time dependency as described in the documentation: compile 'com.sendgrid:sendgrid-java:2.1.0' But when I try to build it, it fails to resolve the dependency. I can see it is trying to...

php array to json array (using sendgird)

php,arrays,json,sendgrid
I would like to use a php array in this example rather than have to hard code the array. How would I use a php to replace this json example? Here the working code with the json array: $json_string = array( 'to' => array( '[email protected]', '[email protected]' ), 'category' => 'test_category'...

Sendgrid for an email feature within Ruby on Rails app

ruby-on-rails,email,sendgrid
I would like to use Sendgrid to manage outgoing emails from a 3.2.2 version rails app I am developing with the help of a friend. She has email working from within the app using gmail, on her local/dev build. I need sendgrid up and running. I cannot even get it...

Gem like sendgrid-ruby for Ruby 1.8.7

ruby-on-rails,ruby,sendgrid
Is there any gems like sendgrid-ruby which can be used with Ruby 1.8.7 ? I need to schedule emails like newsletters from my application. APIs are not working for me. Please help. Thanks....

Use email template for contact form using Express/Sendgrid

javascript,node.js,express,jade,sendgrid
I have a simple contact form using the Node Sendgrid helper library. I would like to use a template email/contact.jade that compiles to HTML and adds the right context. I know it needs to go in the payload.html value, however I'm stuck on how to send the email with the...

Flask - Wtforms file upload with sendgrid API

python,flask,sendgrid
I'm making a relatively simple form which has a file input field. I would obviously like to have the uploaded file attached to the e-mail which is being sent via the Sendgrid python api. The form successfully sends at this point but I get no file upload, this is what...

Sendgrid use attachment on body with sendgrid-php

php,sendgrid
I am using the sendgrid-php lib to send e-mails trough Sendgrid, now I want to use some images, but GMail refuses to open them, as they are on server side. To overcome this behavior I want to attach the images to the e-mail, and display them on the e-mail's body....

SendGrid Delivery Metrics

sendgrid
I've been scouring the SendGrid API documentation, and I'm somewhat floored that there isn't an endpoint I can call, with a single user email address, that would return the same stats payload that the Email Activity web form does when searching for a single user. I understand that Email Activity...

Sendgrid System.ArgumentException: Unknown element: html

c#,asp.net-mvc,sendgrid
I've just update the following packages to their latest version: a) SendGrid.SmtpApi updated to 1.3.1 b) SendGrid update to 6.0 and suddenly the WebTransport.Deliver method is not there anymore - no problem, I've switched to DeliverAsync method but now I get a very strange error, that it's supposed to be...

Rails4 - How to add from name to emails sent from my rails app?

ruby-on-rails,email,ruby-on-rails-4,heroku,sendgrid
I have a rails app on heroku and I use sendgrid addon to send emails. When I receive emails from Stack Exchange in my gmail, I receive it as follows. Stack Exchange <[email protected]> But when I receive email from my website, it's like the following [email protected] via sendgrid.info How can...