Server sends email to selective domains only - php

I am using Joomla Mailer to send email notifications to users and admin. The issue is the server can only send emails to gmail, outlook and yahoo(those are the only ones i tested). But it cant send to other domains like xxxx#mysite.com.
All the mails are sent to multiple recipients, some recipients have the gmail,hotmail or yahoo mail, others have custom mail eg xxxx#mysite.com or yyy#myothersite.com.
The ones using gmail,yahoo or hotmail can receive the mails, but the ones using custom mails cannot. What might be the issue.
I am sending emails using a genuine email for my site.
I have checked the server PTR records using http://www.intodns.com and everything seems ok.
Any Help?

Are you using a SMTP server to send out the mail? Other hosts might think your headers look spammy. This article goes over setting up email to use SMTP instead of the mail() function.
http://www.inmotionhosting.com/support/edu/joomla-25/how-to/configure-email-over-smtp

Related

phpmailer with SMTP server on WordPress: mails with spamscore 8.5/10 don't reach Gmail or Hotmail

I'm using phpmailer with an smtp mail server to send mails on a Wordpress site (a basic contact form). When I send the mail to mail-tester.com, it receives a spamscore of 8.5/10, which is good. However, when i send it to a Gmail address or a Hotmail address, both will not be delivered, not even in spam. I've checked the SMTP server, it says the mails have been sent without problems. I've setup SPF records, which seem to be fine according to mxtoolbox. How do I fix this? What steps can I take to find out why Hotmail and Gmail are not receiving my mails?
Thanks!

Send mail to a mailing list in php

My friend has got a e-commerce website where users can choose to receive mail with the new offers. So he asked to me to create a system to send them an email.
How can I with php send an email to all the people in the mailing list?
I know that editing the php.ini I can send mail from my personal email, like GMAIL, but it has a maximum number of mails for day.
So what is the right way?
The right way to do this is with SMTP.
http://www.jvfconsulting.com/blog/php-mail-function-vs-smtp-guaranteed-delivery/ explains that the standard php mail function sends mail, but your mails can be heavily blocked by anti-spam mechanisms of ISPs.
There are many prebuilt solutions, PHPMailer being one of them. Please see this link as well: send email using Gmail SMTP server through PHP Mailer

php sendmail() from same domain - is it considered SPAM now?

I want to know if using PHPmailer functions to send HTML or plain emails
would be not considered as SPAM by mail servers if it would originate
from the domain with the same name.
For example :
sending email with PHPmailer as "info#mydomain.com"
originating from "mydomain.com" domain (as opposed to say GMail server or other mail servers).
I have a "password lost" system that sends emails to people using my website/portal
and so far i tested the function with my GMail account. I wonder that when I will move
to new hosting, linux box, and configure the domain on that box, and add a mail account and use PHPMailer locally, with that mail account, maybe it would be totally cleaner and will not go in SPAM folders when I sent mails.
Let me know your thoughts about it,
and if this really works
thanks,
Your mails originating from yourdomain.com sent as info#yourdomain.com will not be marked with "using domain yoursharedhostingdomain.com" in gmail, so mails shouldn`t drop in the spam folder for that reason.
With Gmail here i mean e-mail client, not using gmail account as a sender.

handling bounce email w/phpmailer

I have a webpage that sends out emails using phpmailer. I set the host to 'relay-hosting.secureserver.net' the mail->sender, mail->from and mail->addReplyTo all to the same address, which is the address that I want the bounced email notifications sent to. This email address in also with the same host and the smtp host. When I put in a bad email address I don't get a notification that is was not delivered. What am I doing wrong? Thanks
PHPmailer does not handle receiving emails. It's purely a library for allowing PHP to talk to an SMTP server for sending emails. It has absolutely no support whatsoever to act as a mail client (e.g. receiving).
PHPmailer has no way of knowing the email bounced, as the bounce occurs LONG after PHPmailer's handed the email off to the outgoing SMTP server. IN real world terms, PHPmailer takes your letter and walks down the block to drop it into a mailbox. The bounce occurs later, when the letter carrier brings the letter back with 'return to sender' stamped on it - PHPmailer is not involved in this at all.
Your options are:
1) Use PHP's imap functions to connect to an existing pop/imap server and retrieve emails that way
2) Use a .forward or similar redirect on the SMTP side to "send" incoming email to a PHP script.
I know this is an old and answered question, but for those who may find this post later with a similar problem you might be able to solve this by going to your smtp mail relay service. If for example you use jangosmtp there is an option in your jangosmtp control panel to either hard code the address to which bounce reports should be sent or to always send bounce reports to the From address.

PHP Mailer Class

I use the PHP Mailer Class along with the SMTP extension to send e-mail.
The problem is that the php script sends emails only to YAHOO or GMAIL addresses but when I try to send to blabla#neobee.net, I never receive the email.
There are no error messaged when I send to blabla#neobee.net.
There are a lot of things to be checked before you can send mail from a server.
Many recipient mail servers need something called as spf record to be set at the sender's domain:
www.openspf.org/Introduction
I think , if you are not sending more than 100 mails a day , a better approach would be to use smtp mailer along with google mail
Send email using the GMail SMTP server from a PHP page
So in that way you need not mess or worry about spf or DKIM ..
Its a simple solution but your email would have something#gmail.com that wouldn't be so professional , so if you are looking for professional solution then you need to look for setting up spf records and DKIM for your domain

Categories