Link to home
Start Free TrialLog in
Avatar of erikTsomik
erikTsomikFlag for United States of America

asked on

cfmail issue help

I am sending a text message to client phone numbers using coldfusion cfmail tag. The problem is as a from I am suing support@testSite.com. The problem is on my email server I do not get a record that the message was sent. What I'm trying to do is to marry questions sent with the response. Now I am getting the responses but I do not see the original message. My email server is Zmail (Zimbra)
Avatar of Charlie Arehart
Charlie Arehart

If your mail server has no indication of an email having been sent, when you sent it via CFMAIL, then you want to look at CF's logs to see if they show an indication of an error when CF attempted to send along that email.

Look first at CF's mail.log. That will track if there are errors, in trying to send an email. (Note that the mail server that CF will send to is controlled either by the SERVER attribute on CFMAIL, or if none it defaults to using whatever mail server is set in the CF Admin's "mail" page.)

Next (and especially if there's no error in the mail.log at the time you sent the mail), look for a CF mailsent.log, That will exist if the setting "Log all mail messages sent by ColdFusion" has been enabled in the CF Admin "mail" page. That would log if and when any emails WERE sent out of CF via cfmail.

There can be any number of reasons mails would fail, from a problem with the mail server definition (in the CF admin or CFMAIL attributes), to a problem with the mail server configuration and its willingness to receive emails from CF (the latter could include if the mail server requires the IP address of the CF server be identified to the mail server, or if the mail server requires you to provide a username and password to send mail through it).

Let us know if any of these help.
Avatar of erikTsomik

ASKER

I just checked the mailSent and found this

"Information","scheduler-3","01/04/19","15:04:39",,"Mail: '' From:'support@test.com' To:'4425671234@txt.att.net' was successfully sent using 127.0.0.1"

Mail.log do not have any records. The message get delivered, but no records in sent folder on the email server
ASKER CERTIFIED SOLUTION
Avatar of Charlie Arehart
Charlie Arehart

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The emails are get delivered to its recipients.

To check for the sent folder I was logging in into  support@testSite.com email accounts
Any updates?
The email support@test.com is a real email address
Updates? I've clarified that you need to be looking at the mail server log, the one that CF is pointing to (not the one of the email account in the TO address).
I have responded to that message .

"Information","scheduler-3","01/04/19","15:04:39",,"Mail: '' From:'support@test.com' To:'4425671234@txt.att.net' was successfully sent using 127.0.0.1"

Mail.log do not have any records. The message get delivered, but no records in sent folder on the email server
No, that's the CF log. The mailsent.log in CF. I was referring to the logs of the server that the mail was sent THROUGH (from CF, out to the destination).

The bottom line is that you want to find some log that shows details of the mail being sent. The CF mailsent.log only shows what you show, and I gather that's not enough. So now, look to the mail server log (the server that CF points to, in the CF admin "mail" page), to see if you can configure THAT mail server to log what you want.