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
Related
Ok I am using Yii2 mailer, but I need to test access to sparkpost smtp on regular bases. So I made an action that sends a email to Sparkpost when I call it.
Now Is there a way to tell Sparkpost that this email is just a test so it will not send the email? I need this so I would not send hundreds of mails a day to sparkpost just for testing purposes.
NOTE: I am using simple SMTP Relay.
The best way to not have an email actually get delivered from SparkPost is to append ".sink.sparkpostmail.com" to the end of the email address. For instance, if your email address is "alice#example.com" then use "alice#example.com.sink.sparkpostmail.com"
You can find more details about that here:
https://www.sparkpost.com/docs/faq/using-sink-server/
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.
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
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.
I have used php mail function for sending mail to local mail id's and external mail id's.
using this mail function I am able to send mail to my local mail id's but the mail function is not sending mail to external mail id's. like ss#gmail.com
I have used the following methods to set the SMTP server address.
ini_set("SMTP","net4india.com");
ini_set("sendmail_from","sugumar#csoft.co.in");
and I added with header also
$headers .= "SMTP-Hott:
net4india.com";
but the mail is not going to gmail.
where I need to configure the SMTP server name in my program to send the mail to gmail,yahoo ,hotmail,etc.,?
I have found that using the Pear libraries: Net_SMTP, Mail that you can get better error messages and offers a wider range of options:
http://pear.php.net/package/Net_SMTP
http://pear.php.net/package/Mail
You may want to try using those libraries rather than the built in mail function for php: Demo on how to use Pear Mailer Class
My first recommendation is to use PHPMailer to send email in PHP: http://phpmailer.worxware.com/
Aside from that, I know that google will check SPF DNS records to validate your from address. Here is a wizard that'll help you create an SPF record for your domain: http://old.openspf.org/wizard.html?mydomain=example.com
The MX record for csoft.co.in (64.187.109.136) is gw-mail7.myhsphere.biz (204.10.107.116). So net4india.com (202.71.130.4) would probably reject your e-mail since it doesn't know who you are. In these days of spam you cannot connect to a random mail server and have your e-mail delivered to someone else.
Whatever, net4india.com doesn't even seem to host a SMTP server at all.
To sum up: learn from whoever provides you with mail service for your "#csoft.co.in" account what the SMTP settings are. If you have to provide a password, you cannot use the built-in mail() function at all.