PHPMailer hosting site using 123-reg - email

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.

Related

Postfix for BCC send emails?

I was wondering if its possible to forward all the sent emails using Postfix Forwarder package or is there another package that can do that?
I would like to use postfix forwarder on pfSense which already has the package version 2.4.6
Currently the company uses godaddy domain with the workspace emails and they use pop because it saves the pst files while IMAP saves the sent on the server, but there is limited space. And on the godaddy workspace email I can forward all the inbox emails to another email no issue just the sent part cannot. I also called godaddy to see if they could guide me though they did tell me i would need to add the mx records with the email and password of the account i would want to BCC the send emails on the configuration of postfix forwarder. While someone else on another forum did mention that i would need to change my mx records to point to my WAN ip (pfsense) but not sure why or am i understanding incorrectly?
See picture for example
Thank you
enter image description here
This isn't the place to post this kind of question, but look into the always_bcc option in Postfix.
http://www.postfix.org/ADDRESS_REWRITING_README.html#auto_bcc

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?

Can't receive emails send from php

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.

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).

Sending locally sent email (with sendmail) to Google Apps Mail Server

I have a domain, call it mydom.com.
A while ago I started using Google App's email server. I set up MX and the rest of the stuff records as Google wanted, and all is working well since.
On www.mydom.com I have a website, DNS and still running mail server (which basically doesn't do much).
Among other things, on www.mydom.com, I have some contact form - basic php page that takes user's input and sends it to predefined email address at mydom.com. It sends it with php's sendmail function.
My issue is - all those email that get sent from localhost to *#mydom.com (by php's function, or possible by some cron jobs reporting some issues) DO NOT go to Google's email servers but instead get picked up by localhost and it's mail server.
So far, I was resolving this issue by setting up a new mail account at Google account, which was basically calling my local mail server by it's IP address, logging into old, abandoned email account and pulling those misplaced emails to the new, #mydom.com account at Google App.
Obviously I'm missing some entry either in local DNS, host file or something..
Does anyone know how do I fix it?
Hey, the same question was asked here: https://serverfault.com/questions/102647/sendmail-to-local-domain-ignoring-mx-records-part-2
and the answer to it works for me, don't forget to include the dot after the domain!
If it doesn't work to the test call and see how the mail traces.
best of luck, svullo