I used mailtrap to run email verification locally, and everything seemed working fine. Once I pushed it to heroku, mailtrap stopped working to send the emails. I've tried a bunch of things including the sendgrid addon, but my account was suspended as I logged in to sendgrid.
Someone is supposed to register, and then get an email to verify their email...It is for a voting platform and I need maximum security.
To send emails in production in your Laravel application you need to use one of the supported drivers listed in the documentation:
"smtp", "sendmail", "mailgun", "mandrill", "ses", "sparkpost", "log", "array"
Mailtrap cannot work in a production environment as users won't receive emails to their inbox. If you need to use sendgrid, they have a detailed tutorial on how to do so using the SMTP driver here
I'm not sure why your account was disabled, but just create a new one, don't use the Heroku sendgrid addon.
Mailtrap tag line is Safe Email Testing for Staging and Development so if you are using it in production you may are doing it wrong way.As per your description it is clear why sendgrid has suspended your account but i would recommend you to use postmark or mailgun.
Heroku provide add-ons called "Mailgun Email Validation" try use it.
Related
i get an addon sendgrid for my app of heroku, but when i want go to my account of sendgrid,i need send email for the confirmation and heroku choose automatically an Heroku email example: appXXSADAS0878#heroku.com, i confirm this email, the same way how say the tutorial but i not have access to this, then my sendgrid account never is authenticated and after of 10 minutes waiting the confirmation the account is banned.anyone can help me with this?, i am deploying a rails app.
this tutorial that i follow for the add on sendgrid
https://devcenter.heroku.com/articles/sendgrid
I do not know why would Heroku tell SendGrid to send the confirmation email to a #heroku.com email address.
However, consider using SendGrid without the Heroku add-on (you do not need SendGrid's add-on installed on Heroku, to send emails from your application).
We've been using Mandrill for years to deploy our app's signup confirmation and password reset emails. This has worked perfectly as we've had SPF and DKIM records added to the DNS configuration according to Mandrill's documentation for verifying sending domains.
However, after merging the Mandrill account with a new Mailchimp account--which is mandated by April 27th--it's requiring me to send a verification email to an address at that domain. The problem is that we don't have a mail server set up to receive emails. The domain is only used to send the "noreply#domain.com" emails.
Any ideas on how I might resolve this? Mailchimp is not giving an option to undo the merge, so effectively I have an app that users are not able to sign up for at the moment, which is problematic to say the least.
You'll want to configure at least one mailbox on that domain somehow to receive mail. That's the only way to confirm ownership of the domain.
this is terrible for me now. i used php mail function and also use Contact Form 7 plugins too on my wordpress theme. also smtp plugins too. change many smtp server. but not work. mail function and Contact Form 7 both working fine on other mail account (gmail, yahoo. hotmail or any other pop mail) not just my client pop account. because they use microsoft exchange server.
for test issue i did something like i sent mail to frist to one gmail account and i setup in gmail auto fwd to one them that pop account . it working well but this problem is in mail show where it is from (xxxx#gmail.com) .. i don't want to show that gmail address. or i want direct send to that pop account.
server is godaddy
guys any solution ?
Google doesn't allow you to send from other addresses unless you are hosting your domain with them.
I have made a simple contact form and use swiftmailer(with symfony2) to send and email.
Everything is fine when I'm using gmail account but on production it has to be a noreply address in website domain.
So I changed parameters to correspond this email account.
It looks like it is working a send method return true but no message is received, i checked a spam folder but it didn't get there either. Settings are 100% correct as they work in thunderbird.
Have no idea where to look for a problem. Any suggestions what should I check?
I have tried to send email with PHPMailer using same account and it worked so it seems problem is just with swiftmailer.
I'm sending emails in few more places in my project and would like to avoid changing it now but fix it instead.
After checking logs the problem was found.
Emails were rejected because I was setting From filed to email provided by user. Server was rejecting them because this address don't belong to account I was sending from.
By default the logging for swiftmailer is disabled in production. You can enable logging for swiftmailer in config.yml by adding a "logging: true" to the swiftmailer section as outlined here: http://symfony.com/doc/master/reference/configuration/swiftmailer.html#logging
Hopefully this will give you some more specific error messages to search on.
I have developed a website in joomla, and I have a contact us page, in that the form works fine only when I use to send an email from the same domain
Eg :
From : rimaz#abcd.com
To : john#abcd.com
But when I send to a different domain the form gives an error as "Could not instantiate mail function."
Eg :
From : rimaz#abcd.com
To : john#gmail.com
Can anyone explain me about this problem ??
Instead of debugging your providers SMTP / email setup you can use the new mandrill service from the guys who do mailchimp - Mandrill ( http://blog.mailchimp.com/public-beta-of-mandrill-smtp-email-service/ ) with the plugin :
http://extensions.joomla.org/extensions/content-sharing/mailing-a-distribution-lists/20624
Mandrill is a plugin that allows your Joomla installation to send transactional emails. The only thing you need to do is to provide your Mandrill API key and enable the plugin. After that all emails (new user registration, password reset etc) will be send through the Mandrill service.
Mandrill Features:
Uses MailChimp's awesome email delivery engine instead of your server
Tracks opens and clicks so you know how effective these emails are to your users . Now you can > see what you need to change to make them
more effective.
Has pretty, visual reports of the email results
Allows you to tag the emails and see your stats filtered by tag
Why would understanding transactional emails be important for you. An example is when a user signs > up on your site an email is sent via Joomla. But, you get no reports to understand how effective that email did. These emails are sent as instructions to your users telling them a message you want them to understand. Where they designed good? Was the content well written? Was it structured properly? This is hard to say when it goes thru Joomla but now you will understand all this when the emails goes thru Mandrill.
This is a setting from your host. YOu can ask them for help in figuring out how to make it work, but they are trying to prevent you from using their hosting to spam people.
Sometimes it is possible to work around it but not always.
This usually happens due to restrictive mail server settings, which you most likely don't have influence on with shared hosting.
If you have more control over the server, you should fix the mail server settings.
If not, the easiest way is to use Joomla's ability to send mails using any SMTP mail account. Create a mail account for Joomla, and enter the credentials in Joomla's configuration. Joomla will then use that account to send mails. So will extensions, if they are properly written.