I'm trying to send emails using the CFMAIL tag. I know how it is done and
have tried every possible way to figure out why it isn't working. Coldfusion
9 64-bit is running on a CentOS 5.4 x64 box with Apache 64-bit installed. It
is neither sending email through smtp.gmail.com (Google App account) nor
with localhost (sendmail server.)
I've tried following way so far:
1. Tried to verify my mail server connections (both to Gmail and
sendmail) using the Coldfusion administrator, however, always get following
error: Connection Verification Failed!
2. Enabled mail log and have set the log level to Debug. Still don't
see any error in the mail.log file. It does keep updating with spool related
information but no error or details about connection to the mail server.
3. I know correct port and SSL settings required to connect to the
Gmail smtp server.
4. Coldfusion is running as user cfusion in developer mode.
5. This is a new installation on a fresh CentOS box at a client's site
and I've tried reinstalling Coldfusion a couple of times already.
6. Coldfusion is connected properly with Apache version 2.2_15.
7. I tried sending email using sendmail using the command-line and it
went through.
8. I also tried to send email using a PHP script and it works,
however, I can't rely on it as it deliver email very slow and I need to fix
my installation.
9. If I enter localhost in SMTP field, uncheck SSL and check Verify
connection and hit the Submit button in the CF Administrator, it gives
Connection Verification Failed! Error instantly. However, with Gmail, when
the SSL and Verify connection is checked, and port is set to 465 it take a
while (about 20-40 seconds) to give the message Connection Verification
Failed! I'm passing correct login credentials each time. As I mentioned in
the point above it does work from command-line and PHP work with same mail
server settings and login credentials and same CentOS box/Apache
installation.
10. IP, host name, trusted users, network config and Firewall all seems to
be setup quite properly.
Does anyone have any idea what could be wrong here? Where should I look in
my server to get more details? Again, neither sendmail nor Gmail works. I've
looked in server.log and mail.log. Not sure what's happening.
Best,
Sagar Gupta
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335090
[A] I would check that you have all the required settings for your mail
server. For example, in our system, the username is the full complete email
address, not just the part to the left of the @.
[B] Check that you have the server= attribute and the username= and
password= correct in the CFMAIL tag. Our system blocks any mail coming
from anywhere that doesnt have the correct authentication to prevent
spammers exploiting our mail server. Yours may well be the same. Your
support people at eworks.in will be able to tell you this.
[C] check that you have no syntax errors in the message. If your message is
built using coldfusion, and you have an error in your code there, you'll
not get an error message, you'll just get nothing at all. I would
verify that you can indeed send emails using CFMAIL by sending one with a
very simple content like "TEST" to eliminate this as a possible culprit.
[D] check that your isp doesnt block some ports. My isp (iinet.net.au)
for example, blocks port 25 by default to help reduce hacking, but can be
enabled if you need it (we do in order to pass mail through to the remote
mail server).
In this case, I think you're not making a connection to the server, but
once you get through that obstacle, the others may well show themselves too.
I think the most likely is [D] above.
Hope this helps.
Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335091
Matthew Williams
Geodesic GraFX
www.geodesicgrafx.com/blog
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335094
-Mark
Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com
Hello everyone,
Best,
Sagar Gupta
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335099
I recommend that you focus on getting CF working with sendmail before
you try using Google Apps, as that'll greatly simplify
troubleshooting.
> 1. � � � Tried to verify my mail server connections (both to Gmail and
> sendmail) using the Coldfusion administrator, however, always get following
> error: Connection Verification Failed!
At this point, you might as well stop. If you get an error here, CF
won't send mail.
What happens if you log in as the same user that CF is running as
(cfusion), and attempt to send mail to sendmail via telnet?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsi
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335100
Or use a packet monitor like tethereal to see what is going on at the network
level on the SMTP port.
--
Tom Chiverton
Helping to evangelistically implement patterns as part of the IT team of the
year 2010, '09 and '08
****************************************************
This email is sent for and on behalf of Halliwells LLP.
Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word �partner� to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority.
CONFIDENTIALITY
This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.
For more information about Halliwells LLP visit www.halliwells.co
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335141