Can't receive emails send from php - email

I have set up several email accounts on my vps hosting but I can't receive any emails that are send via php from another hosting. Everything works fine when I send emails from gmail for example, I receive them without a trouble. Does anyone know any reason why emails sent from php can't be received?

Try using phpmailer, it's a good mailing class which automatically sets well defined headers so that the mail is more likely to not land in the spam folder.

Sounds like a spam filter issue. Have you set up a proper Sender ID/SPF framework in your domain name service so that the host appears to be a valid MTA for this domain? Look here for a detailed explanation of Sender ID/SPF/DKIM, etc.

Check your spam folder.
GMail is able to differenciate if a mail has been sent from outlook for example or an automated application. (I dont know how, but they can). If i send an email from my work account to GMAil works, if its a web app or executable with the same email adress, it ends up on the spam folder.

Related

Plesk - Forward mails to gmail or fetch directly with POP3 in gmail?

Apart from creating a few websites and using it for my own domain to receive my mails, I haven't done much with plesk. When setting up the server, a friend helped me and suggested to me back then (3 or 4 years ago) to use the forward functionality provided by plesk to forward all mail to my gmail address. In gmail i just added my mail-address in the "send mail as" list so I can also send my mails from there.
I'm just wondering now if there is any reason why I shouldn't just let gmail directly check my mail-inbox via POP3.
Sorry, I'm really new to all this mail-server stuff, but I would like to get some input from some more experienced users if there are any security concerns with any of those methods or if it doesn't matter at all.
The problem with pop3 is that you download all mails from your mail-server itself. So the mails were retrieve and were downloaded from the server at the time. This can be a problem if you use a mail-client and store all mails there. In this case you're not able to retrieve your mails at the webmail for example, because the mails are stored in the client.
I would recommend to use IMAP so you can check your mails from the plesk-server at your mobile-phone, mail-client or webmail.

Why e-mails sent from Roundcube don't appear like sent in another mail clients?

I'm a bit confused as I'm sending e-mails within CPanel's Roundcube, and then I want to check or answer from that mails in another mail client (in this case were Thunderbird and LG Android mail client) but they don't appear there!!
Why could happen that if desktop mail client had the account configured with IMAP protocol??
Thanks in advance.
There apparently was an issue in the past, but this should be fixed if you're running the latest version.There may be different folders for sent messages. Maybe not al of them are shown in Thunderbird, so you can try right-clicking on your account's e-mail adress in TB's folder list and check everything in "Subscribe…". This could help in some cases.

PHPMailer hosting site using 123-reg

basically I'm hosting my site on 123-reg and have a contact form on my site which i want people to send me emails to my live.co.uk email address, i was using the basic php mail() but found all emails are constantly going into junk folder which i rather it go into inbox so was told to use phpmailer
looking into phpmailer i get to the code which asks for smtp but I'm lost with this as I'm not sure what i should be putting for the host username and password as i want the website to send emails to a given email address , any advice on what i should be putting this and why would be great
Thank You
You don't need to use SMTP - you can use a local mail server and call isMail() instead of isSMTP() - though you don't even need to do that since it's the default. In the examples folder provided with PHPMailer, look at the one called mail.phps.

Mail sent from my website going to gmail spam folder when including a link

Whenever i try to send a mail from my website for email verification, the same is being received in a spam folder. I noticed that plain messages are being received in inbox, but whenever i try to include an ordinary http link[http://abcd.in/abcd/verify.php?key=2f27feb552c83c6c65b9bfc4d799e775], the mail goes to the spam folder. Cant point out the reason why this is happening. Please help me to resolve this issue.
Thanks All
From experience, I know that the spam score can be affected when hyperlinks have an alphanumeric argument tagged onto the end. I suggest trying to reformat the URL into something like;
http://abcd.in/abcd/f27feb552c83c6c65b9bfc4d799e775/verify.php
and extracting the reference using a Regex or Split()
Is your outgoing mail server configured to receive mail?
Are you using a proper mail server with proper setup at all or some bulk-mail-sending dud?
Are your mails sent with a real from address? And I don't mean the header-from that you can add in your software, but the protocol-from that is being used by sendmail
Do you have domain keys/dkim set up for your mail server?
Is the header OR the protocol from address from a different domain? Do they have set up domain keys allowing your mailserver?
Does your mail server feature the same domain name on the reverse lookup?
Does your mail server offer to receive mail for the user they are sending for?
Is your webhost using a smart relay? Do they rewrite the from: address?
Or do you send mails with internal mail address from?

cakephp email component emails go to hotmail junk folder

I am using the built-in email component of CakePHP 1.3, and it seems that all my emails go to the hotmail junk folder.
Does any of you know what to change to make Hotmail thinking this is NOT a spam? If some of you experienced the same issue, some feedback on what they've done or tried to fix it would be much appreciated.
Cheers,
Nicolas.
Cake simply uses the PHP built-in mail() facility. Without any further setup your mail is not going to be delivered by a proper MX server but rather the sendmail binary connects directly to the SMTP port on the remote host and attempts to deliver.
You see how easy it is to set up a spam sending facility like this. Mails delivered by a random machine instead of a proper mail server are very likely to be classified as spam.
Ask the web server admin to set up mail sending from the server. Alternatively you could use any trusted SMTP server to send mail (e.g. google).