Php mailer doesn't mail to google apps - php

I recently migrated my email accounts from a host to google apps. But since then my php mailer form on the website doesn't working anymore. It seems to keep delivering the email to the old mailbox and does not seem to look up the DNS globally, so it doesn't deliver the email to google apps.
Is there any way to fix this without configuring the smtp online?
EDIt
Let me explain it this way: I am able to read my mails from www.domain.com in my gmail account via google apps. So if i send to jack#domain.com I see it in my gmail overview. But! Mails with my phpmailerform to jack#domain.com are not visible in my gmail, altough I still can see them on my webmail. It somehow recognizes it is the same domain and sends it locally I suppose... That is the thing I want to avoid. Hope it is clear now? :)

You should change the MX records on your server for that domain so that it knows to deliver the email to google and not to localhost.

Related

Using PHPMailer and gmail to send emails on Heroku

I want to log in to my gmail account from an Heroku app using PHPMailer but gmail restricts access since the remote server is an unknown device. Is there a workaround to this? I have tried using the captcha but its not helping.
Please note that i have no issue connecting to gmail on localhost. Problem comes when i deploy and my guess is that it is because gmail restricts it.
I actually stumbled across an answer. The solution is to actually follow this link and follow the instructions. First you have to allow less secure apps setting in your gmail account. Before following the link you have to sign out from all logged in accounts so that you do not allow for the wrong email. My mistake was that i followed the link before logging out thus allowed for a different email.

What is the proper setup/architecture of postfix, phpmail, and and open mail relay service?

Setup:
Ubuntu 16.x, Postfix, PHPMailer
SocketLabs (mail relay service) - to send out server emails
Union Solution Exchange Server - to send and receive formal email from outlook
Im trying to send out emails from my ubuntu linux server that contain simple form data (name, message, phone etc).
I have been trying in vain to send emails from my PHP to emails, they send, but they get blocked as spam/junk.
I've recently switched mail services (from zoho to a solution union exchange server) and I cannot get past barracuda (even modifying whitelists / spam settings etc) with my own mail, but I can see them as junk in my hotmail. (cannot not send from mailserver#potlickers.com to support#potlickers.com). They get immediately canned and not delivered.
Solutions Union said I was spoofing the emails and I cannot whitelist my own domain I'm using and sending from? Ok. They suggested buying another domain. I now own potlickers.net.
They also mentioned I should take that domain and use it to send my emails via open relay (again socketlabs).
So, if my webserver is setup on a fqdm such as potlickers.com, and i send the mail from that server, how do i setup the correct architecture to send mails from potlickers.net to the open relayserver so my emails are free and clear and not spoofed?
Can i configure postfix to send mail from potlickers.net even though its hosting on blah.potlickers.com?
I understand to also add dkim and PTR.
Help stackoverflow1 - your my only hope. TIA much much mucho thanks.
So I think I got it.
Reconfigured postfix as a satellite. Pointed to smtp of relay mail server. Removed all SMTP settings in PHPmailer that point to server, and credentials.
Fire away - works like a charm.
Satellite server has the new domain potlickers.net versus the webserver domain potlickers.com
Seems to work ok for now. Will update moving forward.

WordPress is not sending emails from Gmail or Yahoo accounts

I'm using WordPress 4.7.2 and the contact form doesn't send the email if the account of the person is from a Gmail or a Yahoo service.
I'm using WPForms and a default WordPress installation but when I send a message in a simple contact form: Name - Last Name - Email - Message, if I use the contact form as a user with a gmail account or a yahoo account the email is never send, for instance If I use joe#gmail.com the email is not send, but joe#gmai.com works or joe#whateveremailworks.com
Where to begin to look or what could it be the problem?
Greetings.
Dreamhost - Sharehost - WP 4.7.2
You might find useful to look for services that allow you to send transactional e-mails. Some offer a free plan.
Examples of these are Amazon SES and sparkpost, but there are a lot more. Both have free Wordpress plugins available to make the integration easy for you.
This is just to mention two. I'm not affiliated with them and there are a couple of alternatives.
Alternatively, you can configure sendmail in your server. Relaying in an external SMTP server not intended to send transactional e-mails can drive you to troubles like the ones you are having now.
Well, It looks like the problem is with the anti-spam politics of my hosting provider. Gmail and Yahoo present these spam-problems but you can't let those potential clients to go away, and using and external STMP service to send emails is not a way to go for my client. So after testing I found a workaround in WPForms.
The problem is the sender email? Well let's change that.
Go to the settings of the Form, then go to the Notifications settings and just change the FROM to and email of your host service and that will do the trick. The only down here is that you are not going to receive the email from your potential client so you can't reply directly, you need to start an email and then send it to the user, but over that all the emails and notifications work great without a third party paid service.
Hope this help to anybody. Greetings.
For me google stopped receiving e-mails from my own e-mail server (postfix, dovecot, mysql, postfixadmin) to force me to use tls
once i did that i also decreased my spam ability by adding spf, dkim and dmarc to my dns plus signing the e-mails by dkim.

using third party smtp

I run a website that allows users to send email newsletters using their SMTP, not the host's SMTP. In that case the user can connect directly with his/smtp to send email. I am aware that some hosting companies do not allow this. Does anyone know the way around this? I need to move my website from the present host.
You can use SwiftMailer (http://swiftmailer.org/). The user would need to give you there login information, but then you can login to their email account and send the emails from their account. This will work all the time since the host can't tell if it's a standard mail client trying to send email. You can even send through a gmail account.
If that's not what you want, then you are probably referring to relaying, which you can just give up on. Open relay has been one of the biggest security holes on mail servers for over a decade. Nobody should have that issue anymore.

Mail not delivered to custom email addresses (e.g. me#mycompanyname.com) with Joomla

I am running Joomla 1.5.15. After working on my site, I decided to test it with different email addresses to make sure that everyone would be able to register. There was no problem with hotmail, yahoo, gmail, etc but I noticed that when I registered with my company email address, I did not receive any mail asking me to activate my account. The message on Joomla said that my account has been created and the activation has been sent but when I check my mail, I don’t see anything. I then decided to test with some other customized emails and I noticed that Joomla could not send mails to most of them.
I was just wondering whether it is a problem of Joomla’s mailing system or whether it is the server settings on the place where the email addresses are that is causing the problem. I spoke with the live support of my company’s website host and they told me I have to change certain things on my server before the mails could be delivered. I then went ahead and made those changes and the mails were delivered.
My problem was solved but then what of the other people (with customized emails) that would want to register on the site and do not know all these, does it mean that Joomla is not a good option for them or is there anything I could do to make Joomla send mails to everybody just like any of these mailing systems would.
If some people are receiving them and other's not, then I would suggest that it's a server issue. If you're sending out
name#domain.com
but the website is on
notdomain.com
then many servers will flag it as spam as the domain and the sender don't match, unless you use SMTP
Who is your email hosted with? If it's hosted on the server where you host the website then you should have a control panel to log into (e.g. cPanel, Plesk). You can add new email addresses under the options in there.
If you don't have email set up then I reccommend using Google Apps for your domain. You can have gMail, Google Docs, Google Calendar and all of the Google applications on your domain. For email you can have hello#mydomain.com.
I use Google Apps on all of my domains. It is easy to use and also if you have to move hosts, there is not need to change your email settings as they stay the same.
Heres the link for the Standard (free) edition of Google Apps
http://www.google.com/apps/intl/en/group/index.html

Categories