how could I recognize an email as auto-forward email? - email

I have a task which needs me to find out the auto-forward email from an email set.
Originally I recoginize an email whose sender contains "caf_|auto_" and "+" and "_" as auto-forward email,for example "test3128+caf_=test3128=yahoo.com#gmail.com".
But finallly I find that the above-mentioned feature is not always right.Because the email may be an auto-forward or an auto-reply email.
Could anyone give me any help?You have my thanks.

Related

Force Outlook to display from display name in header

I'm sending an email with .net SmtpClient and MailMessage. I set the from to be From: Something Else <mysmtprelay#example.com>. Note that mysmtprelay#example.com is a valid user on the domain and its display name is "My SMTP Relay".
When I get the email in Outlook 2013, the email from name is "My SMTP Relay" even if in the email header I see this From: Something Else <mysmtprelay#example.com>. Outlook ignore the Something Else display name and replace it with the domain name.
Is there a way to force Outlook to use the display name I provided in the From clause? If I send this email to gmail for example, the display name from the header is used, as expected.
Can someone help?
This is just how Exchange works: all incoming sender and recipient names are resolved against GAL. Exchange uses the default display name and SMTP address.

Display recipients name instead of mail address in MFMailComposer

Is it possible to display or show the recipient name in Recipient field instead of the email address. I found this reference but doesn't understand what is done.
Can anyone guide for above. Is there any way to display name instead of email address.
Got the solution from the question itself.
#"My Name <myname#example.com>"

HTML form - check if email entered correctly?

I creating Contact us form and i want in email section that if email entered wrong way (not name#example.com), user wouldn't be able to submit form.
input:
<input name="email" type="text" value="" size="30"/>
With regexp using javascript/php (or whatever) you would be able to validate an email format : presence of "#", presence of ".dom", but you will have to hard code to avoid something like "example.com".
I would suggest to use a validation/activation mechanism : send an email with a link, when user click the link you receive a notification, that means that email is valid so you can take care of it !
You can check this topic : Validate email address in JavaScript?
But it does not take care about something like "name#example.com".
As Mike W said in comments, the only way to validate a valid email is to send an email.
Also, you could have fun trying to trap auto-response for invalid email by checking the sender mailbox ;)

Emails sent through joomla go to SPAM folder

I am using the latest Joomla build for my website.
Allso we use a DNS record for having the mail delivered to our own server instead of the server on which the website is hosted.
I have used several contact form components, but every sent mail goes to my SPAM folder.
After searching hours on the web (and getting linked to this site frequently) i decided to make a new post.
It does not matter if i use the standard joomla forms, or any component.
Whenever a user fills in a form on my website, the email gets sent. The user receives a copy of its message, and i receive the message of the user. However, this message gets thrown in the spam folder, as phishing.
The sender of the mail always is: username#nameserver.i3d.net; namens; websitename
What do i have to change/enable/disable for this to work?
Thanks in advance.
Patrick.
(Sorry, I'm new to Joomla, but it uses PHP, so this may apply. Also this answer got a little long...)
It might be an issue with the email headers. A lot of email clients will automatically spam-box all mail where the address in the From: header doesn't match the envelope sender. As an analogy, you might not trust a snail-mail letter signed "Your Rich Uncle", mailed in an envelope with a Nigerian return address. Also if your envelope sender has a different domain than the one the email is actually sent from, that's another quick ticket to the junk bin. For more info about Gmail's message blocking policies (and general good practices), you can try this help page.
Here's some basic PHP email-sending code:
$to = $userEmailAddress;
$subj = $emailSubject;
$mesg = $emailMessage;
$headers = implode("\r\n",array(
"MIME-Version: 1.0"
,"Content-type: text/html;charset=iso-8859-1"
,"From: WEB_ADMIN_NICE_NAME <WEB_ADMIN#YOURSERVER.COM>" // *** 'From:' header
));
$from = "-fWEB_ADMIN#YOURSERVER.COM"; // *** envelope sender
if(!mail($to, $subj, $text, $headers, $from)){
//Some error handling...
}
On the first line I commented, you'll want to replace WEB_ADMIN_NICE_NAME with the name you want the email recipient to see (e.g. "Bill Gates"), and on both lines, replace WEB_ADMIN#YOURSERVER.COM with the actual return address (e.g. "da_boss#microsoft.com"). Note: whatever address you choose for the return address is where users' replies will be sent.
To reiterate, make sure both lines have the same return address (though the nice name can be anything you like), and make sure that the actual server sending the mail is in fact located at YOURSERVER.COM.
Lastly, I'm not sure where Joomla does its mailing, but if you're totally lost, you can try grepping with -lr for 'mail[[:space:]]*('.
there are several reasons that could make your email look suspicious to spam filters; to find out which head on to:
http://www.mail-tester.com
grab the email address and send an email from your website to it.
Then go back to the page and it will tell you what's wrong.
btw I'm struggling with the same issue,my problem being that on Joomla 2.5.9 apparently when you send html emails, a text-only copy is not added to the message, which is considered "spammish behaviour"
The problem is the i3d.net email address. My personal experience is that their network (31.204.154.0 - 31.204.155.255) is a significant source of spam and they do not action abuse reports. I suggest changing your hosting company.

How to implement email correlation with subject and body modification?

I have a system that sends mail.
I have a system that receives mail.
I need to identify that a received mail correlates with the one the other system sent.
The particular thing here is that either the subject or the body can be modified.
I thought on putting some hash in the header of the sent email, but I don't know where this could be added
Don't you have any clue?
As you did not supply enough detail for a language specific answer, I will explain the general approach.
You can add a custom header to your outbound email, using x-vendor-header style for the header (start with x- to mark it as an extension, then vendor- for your company and end with the header name. The can be a unique identifier for the email message.
You can look for this header in your inbound process to identify the message.
I've finally found the solution:
Most email's servers support to put something after the username using '+' as separator. So I can encrypt some id and decrypt it when is replied looking on the from address.
example:
neuquino+encryptedID123421234#gmail.com
I hope this can help someone else with the same problem