How to remove 'via' in email sent by PHPMailer - php

I am using PHPMailer for email sending, I am wondering how could I remove 'via page domain' in received email?
Example:
Thank you.

Remove "via" information from emails not sent through Gmail
Gmail checks whether the messages you send are authenticated.
If you send messages with a bulk mailing vendor or third party affiliates, prevent your emails from being blocked by Gmail.
Publish an SPF record that includes the IPs of the vendor or affiliates which send your messages.
Sign your messages with a DKIM signature that is associated with your domain.
Make sure the domain in the "From:" address matches the domain you're using to authenticate your emails.
More about it here:
https://support.google.com/mail/answer/1311182?hl=en#zippy=%2Ci-see-via-and-a-website-name-next-to-the-senders-name

Related

Emails with specific links in its body won't delivered

I have a wordpress website, I sent a newsletters email to 88 subscriber one time, all the 88 emails delivered well. After that immediately I was unable to send any email contains cgees.com link in the email body.
If I send any email with any links inside without mentioning cgees.com/...., all emails reach their destination, but when including cgees.com/... they just don't reach although it say " sent ".
I checked the spam folders and no emails there, tried to send to lot of domains ( yahoo, hotmail, gmail, and other domains ) and no email delivered at all, I also tried to send email directly from website, outlook and webmail and all of them say " sent " but no emails delivered.
I tried to send an email contains cgees.com from my personal hotmail email and the email delivered normally. its only happening when I try to send from my domain email addresses.
Can any body give me a hope solving this issue?
You can use a tool like MXTool.com to check about your domain to see if it has any issues. As for emails not reaching there is a paid service like ReturnPath that can let you know what went wrong where.
Hope that the help you needed.
Cheers

PHP mail() - Different domain emails for From and reply-to

I want users on my website to use php mail() to send emails from my website domain. I would like users to get replies on their personal email address which will not be my domain email it might be gmail, hotmail or any other. When I do so, the email recipients get a phishing warning in gmail.
How can I set headers in php mail() so different sender and reply-to emails do not make gmail and other services tag the email as spam or phishing.
Your recipients are getting a pishing warning because your emails are not passing SPF checks. That simply means that the from domain you are using is not authorizing your server to send mail on its behalf.
Try using PHPmailer https://github.com/PHPMailer/PHPMailer
You can use it to set a separate from address as well as a specific reply to address
$mail->AddReplyTo('replyto#email.com', 'Reply to name');
$mail->SetFrom('mailbox#email.com', 'Mailbox name');
That being said. The SetFrom address is an address that must pass SPF and preferably DKIM checks to be NOT marked as SPAM or PISHED. This address is recognized as the BOUNCE address where all the bounced emails will be returned to. Not having a valid address may possibly disrupt future deliveries.
The AddReplyTo address will be loaded when the reply button is clicked by the recipient. Keep in mind that even though the message may pass SPF there are many SPAM filters that will potentially mark the message as spam.
The easiest way to get this working is to create an email address on your website (me#mysite.com) then get the website to automatically forward all mail to your gmail account. Then, use the website email address in the 'From' and 'Reply-To' address of your mail() routine.

Can Mandrill send bounced mail information to sender email

I'm building a service for a company. The users of the service will send survey links to a list of email addresses. I'm going to use Mandrill as an email engine for this. The service is built using Laravel.
The users will feed a list of email addresses to the service that will generate emails (unique for every email address) and send them through the Mandrill API.
BUT, of course there will be errors made by the users. They will feed some bad email addresses in and emails will bounce. I need to find of way of notifying the users of the service that some emails have bounced.
Is there a way to get Mandrill to send a list of bounced emails to the sender or reply address?
Me as a developer has the Mandrill account of course, but I'm not interested in the bounce information - that has to go to the users of the system. So they can take action and correct the errors.
Thank you.
I see from Mandrill API that it is possible to get the status of sent e-mails with call /exports/activity.json as described in https://mandrillapp.com/api/docs/exports.JSON.html#method-activity
If you get any bounced e-mails from there then you can manually send the corresponding messages to the users who you want to.

Php mail function send mail to spam on gmail and aol

I have used default mail() function to send email it sends emails to yahoo successfully but on gmail my emails are going to spam folder due a verification link, if I remove that link then goes to inbox
like is like this
domain.com/abnd.html?code=asdjkahsjkdhkasjghdksghdkjgsakjdg
if remove code then works, with code it goes to spam on gmail.
please help
Could be a number of factors:
Maybe the actual domain name or part of the URL is affecting the overall spam score
Is your email valid HTML and/or and have proper headers
Does the IP address sending mail have a valid PTR record
Are there additional headers being included in the email by the server that you may not want
There are a lot of good resources and helpful things you can use from the AOL Postmaster site including Technical Policy Requirements for Sending Mail to AOL.com, and the feedback loop.
Also see Google Bulk Sender Guidelines for more.

php - email from hotmail accounts not received by easyspace mail account

I use the mail() function to email customer completed forms to my easyspace account. However any forms that have a hotmail from email address specified are unreceived. They are not in my spam folder either. If i send an email direct from a hotmail account this doesn't happen. Any ideas why this would be happening?
Never ever use a from address that differs from the domain your site is running on. You can put into reply-to anything you want (including hotmail addresses) but from must contain a legit mail address.

Categories