CFMAIL : Emails not working for some emails - email

I am using cfmail tag. I am able to send emails however its not totally working. One problem is that for some it go to the junk folder. And secondly, for some emails it doesn't even reach the destination.
I am working for a university and they have their gmail portal with their own email extension. for example #universityname.ca but its actually a gmail account. I am trying to send email to this and it doesn't even reach the destination.
I assume these emails are being filtered out as spams and blocked before reaching, what settings do I need so they don't go to junk and they are not filtered out as spam.
snippet:
<cfmail to="my.email#universityname.ca" from="sender#gmail.com" subject="Example email">
Your Email Message!!
</cfmail>
Also I am not admin, thus I don't have access to mail settings.

Some email providers have very strict settings that make it nearly impossible to spoof a 'FROM' address with cfmail.
On top of that, sometimes you have to allow "less secure" apps to access your gmail account if you want ColdFusion to be able to send automated messages. That may be stopping you before you even get started.
Here is an example of what I do on my server. By specifying a port, server, username, and password of the true 'FROM' address, I never run into problems, and instead of spoofing an email address outright, I just mask it like so, then change the replyto attribute to something appropriate.
<cfmail
to="me#me.com"
from="Custom Name Here <XXX#x.com>"
subject="Website Contact"
type="html"
server="smtp.gmail.com"
port="587"
username="XXX#x.com"
password="ZZZ"
usetls="true">
Content
</cfmail>

Related

(Google Workspace) Email not being received from one sender only

I have a Google Workspace (I think that is what it is called) that I use to manage a private email address for a small business.
Everything has been working fine, and I can see the user (richard) in the admin area with associated email set up. I have sent test emails to and from their email account to make sure it is working okay and everything seems to be working fine.
I have two email addresses associated with the domain, for example:
emma#domain.co.uk (me) and
richard#domain.co.uk (richard)
I use the first email address as an admin account, and they use the second one.
They've had this email account for a long time, and have had no problems, however recently they have stopped receiving emails from one sender (their accountant).
I can still send emails to the account from my own personal email address to them, and they are receiving emails from other businesses, but just this one person is sending emails to them and they aren't being received.
Things I've tried:
Checked the spam/junk folders and no emails are there
Checked to make sure the sender isn't on the blocked list
Looked at the email logs as per this suggested article and don't see any record of the incoming email that has been sent
Sent a test email to account#accountant.co.uk and richard#domain.co.uk from emma#domain.co.uk and they both receive my email. When the accountant presses "reply all" the email only gets received by emma#domain.co.uk and never arrives at richard#domain.co.uk
Sent a test email from richard#domain.co.uk to account#accountant.co.uk and she receives the email. When she replies, he doesn't get the reply.
All I can think of is she has somehow blocked him via her email client, but I need to check out all the possibilities of it being a problem at our end as she's not great with email and not sure how I'm going to navigate that one :)
Any suggestions welcome!

hide the fact that an email is sent from gmail's web interface

Does anyone know if you can hide or modify some of the header fields from the sent email via the Gmail web interface?
such as:
X-Gmail-Original-Message-ID: xxxxxxxxxxxx#mail.gmail.com
Message-ID: xxxxxxxxxxxxx#mail.gmail.com
My idea would be to completely fake (hide the fact) that the said email was sent from the Gmail web interface. The goal of that would be simple - use Gmail even if the company you work for, does not allow it.
Perhaps there is a Gmail extension for that?
AFAIK, you can only change the from email when sending email from Gmail. Take a look at Send emails from a different address or alias.
Also, there are techniques to really find out where an email came from; forging email headers and/or spoofing emails is something that spammers do and will get your IP address blacklisted by your ISP.
You can also check How can I find out where an email really came from?. The headers can also be put in SpamCop and let them do the trace work with an option of sending a SPAM notice to the responsible sysadmin.

Coldfusion cfmail tag not sending emails that are using the same domain

so I used the cfmail tag to send the information from a form to specific emails, and the tag works perfectly for my personal email at outlook.com and etc. But when I have it set to the email that I use for that domain and that site. It doesn't ever get sent, and there's no issues that I see, and I'm not necessarily sure if that's a hosing issue, or how to even take care of that.
Any suggestions?

Not getting Order emails copies with personal to my Gmail custom email Magento

I have a custom gmail domain (myself#customdom.com) and I have set on backend to receive order copies in that email but I am not receiving them. Now, If I add a normal gmail account (myself#gmail.com) it works.
myself#customdom.com --> FAILS
myyself#gmail.com --> WORKS
I have tried some solutions but they don't seem to work. What is blocking the emails to get to my custom emails? Any help?
Thanks.
Are you using customdom.com as the domain name your Magento store is sitting on?
i.e sales#customdom.com is the "FROM" email address for orders and myself#customdom.com is "TO" address
If so I would ensure you have a SPF record set on your domain name as this email is mostly likely being added as spam.
This is a common issue where the web server is trying to "spoof" your email address as a sender and when you try to email yourself, its marked as spam.

How to set from mail address other than smtp authentication mail in java mail

I am specifying "FROM" address usinf setFrom() method, But i still receive mails having "FROM" address of SMTP authentication mail id. and want to set the "FROM" address dynamically. which keeps changing. What is the RFC282 standard to achieve this.
The solution from google is this
Gmail lets you send messages with another of your email addresses listed as the sender instead of your Gmail address. This feature helps you manage multiple accounts from the Gmail interface; it works only if you already own the email account linked to the alternate address
Select the Accounts and Import tab (or Accounts tab, if you're using Google Apps).
Under Send mail as, click Add another email address.
In the 'Email address' field, enter your name and alternate email address.
Choose one of two options:
Use Gmail's servers to send your mail (this is easier to set up)
Use your other email provider's SMTP servers (we recommend this option for professional mail accounts or domains). Note for Google Apps users: Depending on your domain2 type, this feature may be disabled by default. Talk to your administrator if you have any questions.
If you choose to use Gmail's servers:
Click Next Step >> and then click Send Verification. Gmail will send a verification message to your other email address to confirm that you own it.
Open your other account and either click the link in the message Gmail sent or enter the confirmation code in the Accounts section of your Gmail settings.
For more info, follow the below link
https://support.google.com/mail/bin/answer.py?hl=en&answer=22370.
The overhead involved is that any new from address needs a alias to be set in Gamil authentication mail account. Its not suits for enterprise salable app.
Other solution is You can install a mail server (hmailServer). This server allows you to set the custom from address
If any body knows other solutions, please suggest me.
It's up to your mail server. Often mail servers will prevent you from using any From address other than your actual login name. This helps prevent spam. Depending on your mail server, there may be ways to convince it that you should be allowed to use other From addresses.
These are two different things that you are talking about:
The id that you are mentioning is part of smtp handshaking protocol which usually is mapped to "Return-path" field in mime-header.
Whereas the id that comes in "FROM" field which actually is displayed in mail-list is been appended by the mail server when u compose the mail.
So if you can modify the mime header then make sure that "FROM:" field contains the id that yuou want to set not the smtp authentication id.
btw its rfc822
Have worked for rediffmail technical team in order to develop and enhance smtp, pop and imap protocols
Its depends on your mail server and configuration setting