I'm working on a Java POP3 / SMTP client for sending/receiving emails using which will be integrated with a custom socket server.
The problem is that when I send the email from my PC, the emails don't get received by the recipient, because the destination email thinks it's spoofed.
I figured that if I sent an email from GMail / SMTP, while authenticated, etc, that I would get the same result as if I logged into the GMail web interface... But, this is what the message looks like.
Return-Path: <verify@domain_dot_com>
Received: from Desktop (ip-yyy-zzz-xx.dhcp.ispdomain.com [ip.yyy.zzz.xx])
by mx.google.com with ESMTPS id 21sm74440iwn.11.2010.02.18.13.05.13
(version=SSLv3 cipher=RC4-MD5);
Thu, 18 Feb 2010 13:05:14 -0800 (PST)
Date: Thu, 18 Feb 2010 16:05:05 -0500 (EST)
From: verify@domain_dot_com
To: target@target_dot_net
Message-ID: <16627215.0.166211352034541.JavaMail.UserName@Desktop>
Subject: Device Verified
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
There isn't really a problem with my code, per se.
Does it appear as if it were sent from your desktop? What is displayed in the headers of the sent message? Also, what is displayed in the debug output?
CEHJ
Well it displays my hostname in the headers, together with the IP address - just as expected. What parts of the debug output are you interested in?
http://technojeeves.com/joomla/index.php/free/80-send-secure-mail-via-google-with-java