How do i send message to email?

Hi Jemz,

No the headers are normally turned on/off in the account settings. By default they are normally turned off as they make most emails look to confusing and become hard to read. However, the headers tell most of the story of an email’s trip, so it is a really good way to determine how things worked.

Here is how to see it for the messages sent from SwiftMailer:

  1. Log in to Gmail
  2. Open the message you’d like to view headers for.
  3. Click the down arrow next to Reply, at the top of the message pane.
  4. Select Show Original.

I got this by googling [google]show headers gmail[/google]

Hi serverstorm, thank you so much for the reply,thank you also for helping on how to see or to show originals headers in gmail…i can see now just like the same as your posted…okay i will try again to send email using the smtp.gmail. etc…i will write back…

:slight_smile:

Hi ServerStorm,

This is the configuration in my swiftmailer

$transport = Swift_SmtpTransport::newInstance(‘smtp.gmail.com’, 465, ‘ssl’)

and this is the header from my gmail.


 Delivered-To: someuser@gmail.com
Received: by 10.220.66.72 with SMTP id m8csp153235vci;
        Sat, 22 Dec 2012 11:06:30 -0800 (PST)
X-Received: by 10.236.149.210 with SMTP id x58mr16705025yhj.42.1356203189194;
        Sat, 22 Dec 2012 11:06:29 -0800 (PST)
Return-Path: <fromMysomeOne@yahoo.com>
Received: from postlady.000webhost.com (smtp1.000webhost.com. [31.170.163.252])
        by mx.google.com with ESMTP id r2si7155449ann.104.2012.12.22.11.06.27;
        Sat, 22 Dec 2012 11:06:29 -0800 (PST)
Received-SPF: neutral (google.com: 31.170.163.252 is neither permitted nor denied by best guess record for domain of fromMysomeOne@yahoo.com) client-ip=31.170.163.252;
Authentication-Results: mx.google.com; spf=neutral (google.com: 31.170.163.252 is neither permitted nor denied by best guess record for domain of fromMysomeOne@yahoo.com) smtp.mail=fromMysomeOne@yahoo.com
Received: by postlady.000webhost.com ([000webhost.com Mail Server], from userid 99)
	id 65C3E6041C; Sat, 22 Dec 2012 14:06:27 -0500 (EST)
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	postlady.000webhost.com
X-Spam-Level: **
X-Spam-Status: No, score=2.2 required=7.0 tests=DKIM_ADSP_CUSTOM_MED,
	FORGED_YAHOO_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,TVD_RCVD_SPACE_BRACKET
	autolearn=disabled version=3.3.2
Received: from srv30.000webhost.com (srv30.000webhost.com [31.170.160.94])
	by postlady.000webhost.com ([000webhost.com Mail Server]) with ESMTP id 4592E6041A
	for <someuser@gmail.com>; Sat, 22 Dec 2012 14:06:27 -0500 (EST)
Received: by srv30.000webhost.com (Postfix, from userid 3284964)
	id 4308D28067; Sat, 22 Dec 2012 14:06:27 -0500 (EST)
To: jemz <someuser@gmail.com>
Subject: This is my subject jemz
X-PHP-Script: mywebsite.host22.com/index.php for 66.249.75.186
Message-ID: <1356203187.50d604b321d38@peanutbutter.host22.com>
Date: Sat, 22 Dec 2012 14:06:27 -0500
From: John Doe <fromMysomeOne@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Congratualtions jemz to your MX record configuration sentmail

This is my second configuration in my swiftmailer using the ip

$transport = Swift_SmtpTransport::newInstance(‘31.170.160.208’, 465, ‘ssl’)

Here is the output…


Delivered-To: someuser@gmail.com
Received: by 10.220.66.72 with SMTP id m8csp201511vci;
        Sun, 23 Dec 2012 14:56:12 -0800 (PST)
X-Received: by 10.236.140.107 with SMTP id d71mr19314219yhj.80.1356303372112;
        Sun, 23 Dec 2012 14:56:12 -0800 (PST)
Return-Path: <fromMysomeOne@yahoo.com>
Received: from postlady.000webhost.com (smtp1.000webhost.com. [31.170.163.252])
        by mx.google.com with ESMTP id m61si13177219yhj.128.2012.12.23.14.56.12;
        Sun, 23 Dec 2012 14:56:12 -0800 (PST)
Received-SPF: neutral (google.com: 31.170.163.252 is neither permitted nor denied by best guess record for domain of fromMysomeOne@yahoo.com) client-ip=31.170.163.252;
Authentication-Results: mx.google.com; spf=neutral (google.com: 31.170.163.252 is neither permitted nor denied by best guess record for domain offromMysomeOne@yahoo.com) smtp.mail=fromMysomeOne@yahoo.com
Received: by postlady.000webhost.com ([000webhost.com Mail Server], from userid 99)
	id F1F4760465; Sun, 23 Dec 2012 17:56:11 -0500 (EST)
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	postlady.000webhost.com
X-Spam-Level: **
X-Spam-Status: No, score=2.2 required=7.0 tests=DKIM_ADSP_CUSTOM_MED,
	FORGED_YAHOO_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,TVD_RCVD_SPACE_BRACKET
	autolearn=disabled version=3.3.2
Received: from srv30.000webhost.com (srv30.000webhost.com [31.170.160.94])
	by postlady.000webhost.com ([000webhost.com Mail Server]) with ESMTP id D06E960461
	for <someuser@gmail.com>; Sun, 23 Dec 2012 17:56:11 -0500 (EST)
Received: by srv30.000webhost.com (Postfix, from userid 3284964)
	id C65D92800D; Sun, 23 Dec 2012 17:56:11 -0500 (EST)
To: jemz <someuser@gmail.com>
Subject: This is my subject jemz
X-PHP-Script: mywebsite.host22.com/index.php for 112.207.155.49
Message-ID: <1356303371.50d78c0baadaf@mywebsite.host22.com>
Date: Sun, 23 Dec 2012 17:56:11 -0500
From: John Doe <fromMysomeone@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Congratualtions jemz to your MX record configuration sentmail



Thank you in advance.

Hi Jemz,

The following part of your headers (of the IP versions) tells what is happening:

[COLOR=#464646]Received: from postlady.000webhost.com (smtp1.000webhost.com. [31.170.163.252])[/COLOR]
        by mx.google.com with ESMTP id m61si13177219yhj.128.2012.12.23.14.56.12;        Sun, 23 Dec 2012 14:56:12 -0800 (PST)Received-SPF: neutral (google.com: 31.170.163.252 is neither permitted nor denied by best guess record for domain of fromMysomeOne@yahoo.com) client-ip=31.170.163.252;Authentication-Results: mx.google.com; spf=neutral (google.com: 31.170.163.252 is neither permitted nor denied by best guess record for domain offromMysomeOne@yahoo.com) smtp.mail=fromMysomeOne@yahoo.com

You can see that your are relaying via the google smtp and it tries to resolve your IP. I am surprised that this is not getting delivered as SPAM as you can see that it is not permitted or denied. I also don’t like the idea of using Goggle’s smtp as there is not a guarantee that the ISP that you route the mail through won’t start enforcing that mail traffic must route through their server. This may be the case for Port 25 but as you are using SSL this may allow you to get around this. Still I would recommend that you try to use smtp1.000webhost.com as the smtp that I try to route through. If smtp1.000webhost.com authenticates and routes your mail to google or yahoo then as long as you pass the SPAM threshold then your messages should still route.

I am quite surprised that google allows you to relay messages in the way you have done. This is not good practise.

Steve

Hi ServerStorm, Thank you for the reply…you mean i will change this

$transport = Swift_SmtpTransport::newInstance(‘smtp.gmail.com’, 465, ‘ssl’)

to this:

$transport = Swift_SmtpTransport::newInstance(‘smtp1.000webhost.com’, 465, ‘ssl’)

Yes but you may have to change the port as they may not use a secure port. Their website may provide what SMTP settings are recommended for them.

Hi serverstorm,

Their website may provide what SMTP settings are recommended for them.

where i can see the port,I have no idea where i can get the port to use for my smtp.

A quick search shows that 000webhost.com does not seem to publish their smtp port. This means you can try 25 or 465, however it is unlikely that they will allow you to use their SMTP.

Given this, I would set your gmail account and smtp in swiftmailer. The messages that you send will be listed from youremailaddress@gmail.com. You will use port 465 like you had tried in your earlier attempt. Keep in mind that they can block this at any time, so there is not guarantee of uptime.

I would strongly urge you to get onto a host that is better set-up for handling email and setup the proper email mx dns records for your custom domain. This way you will have more control and likely more stability.

Steve

Hello Serverstorm, Thank you for the reply…Okay i will try other free hosting that has a good in handling email…but i think there is no free hosting that will allow to use the email.:scratch:

Hi serverstorm, is this the mx record