Copy link to clipboard
Copied
Do you have to use an email client in order to send emails?
I am in the process of writing code to test some sample emails. However, I wanted to use Gmails" SMTP to send emails, but it is asking me for an email client. I currently do not have permission to the email client and I do not have administrative privileges to download software on this desktop.
Please provide me with any assistance or other suggestion on my testing emails for my application I am developing?
Best regards,
garjuyen1107
Copy link to clipboard
Copied
No, I don't think so.
I am not sure what it is asking for? Are you sure your gmail has been configured to allow messages to be posted to it? I have never done it, but I have read many places that others have, I recall these sources mentioning that a default GMAIL configuraiton does not allow ColdFusion to send messages to them. That you have to configure something in GMAIL for it to accept the SMTP requests.
Copy link to clipboard
Copied
THanks for the reply. You are absolute right and I tried to configure my GMAIL account to allow me to send emails to it using the various articles I found online and information I found at Gmail. But I am far from an expert when it comes to these things, so I could be doing something wrong when I try to configure in Coldfusion 9. Here is what I have input under the Mail Setting in my Coldfusion Administrator and Gmail Settings:
If you look under POP for Gmail Settings, has a link for Configure Email Client
Copy link to clipboard
Copied
Can you just skip the client configuration portions of that page? It looks like you could do that.
Have you tried verifying your mail server connection in the CF Administrator? Does it verify? If it does, have you tried sending a message using CFMAIL?
Copy link to clipboard
Copied
Yes. I have skip that part of the configurating to a email client. I have verify the connection and it has failed several times. I have also tried to send emails, and the emails remind in the Undeliverable email section of the Coldfusion Administrator.
I do not know what else to do? I was think that there was some sort of WebMail to use just for the purpose of testing emails that I only have to use within a browser and would not have to install any software. Please advise.
Thanks!!
Copy link to clipboard
Copied
I just set mine up for gmail and it was able to verify. I do NOT have the "Sign" checkbox turned
on, and I set mine to use Port 465 though. The rest of my settings are the same as yours.
Copy link to clipboard
Copied
Ok. I changed it to the 465 port It tells me that my connection has failed again. Were you able to look at my gmail settings? Is that set-up properly?
Could there be another place in my Coldfusion Administrator that needs to be also set up in conjunction with the Mail Server?
Were you able to receive emails at the gmail account?
Copy link to clipboard
Copied
I just did a test and the mail was successfully sent.
Did you uncheck the "Sign" checkbox? When I turned that on, my connection would verify, but the mail would not be sent. Also, have you tried re-entering your gmail password? Perhaps you have a typo/error there?
Your settings on your gmail account page appear to be set the same as mine...
Copy link to clipboard
Copied
So, you have not configurated any email client at all? No, Microsoft Outlook?
My password is the same. I tried again and connection stilled failed. Could it be my Server Settings?
I have a pdf version of my current Server Settings I would like to post, but I want to attach it as a file. Is this possible?
Copy link to clipboard
Copied
When I did my first test, it was with my copy of CF installed on my local workstation, which does have Outlook installed. I just tried again on a new server I'm building, which definitely does not have any mail clients installed, and the test worked from there as well.
I'm not sure about attaching files. I don't see any option for doing that.
Copy link to clipboard
Copied
Have you checked the mail.log file to see if any error information is being written there?
Copy link to clipboard
Copied
That is certainly strange. I believe it is the Server Settings. Now, should I have my full domain name under username. for example, I have listed siamadu@gmail.com as the user. SHould it be siamadu instead? Are you using Coldfusion 9?
I am really trying hard to trouble shoot this thing. I apologize for the silly questions? I was able to cut and paste a copy of Summary Settings
System Information | ||||||||||||||
|
Server Information
General Settings | |
Timeout requests | Yes |
Enable Per App Settings | Yes |
Request Time Limit | 60 seconds |
Use UUID for CFToken | No |
Enable Whitespace Management | Yes |
Disable Service Factory | No |
Protect serialized JSON | No |
Protect Serialized JSON Prefix | // |
Missing Template Handler | |
Site-wide Error Handler | |
Enable HTTP status codes | Yes |
Enable Global Script Protection | Yes |
Default CFForm ScriptSrc Directory | /CFIDE/scripts/ |
Google Map Key | |
Maximum size of post data | 100 MB |
Request Throttle Threshold | 4 MB |
Request Throttle Memory | 200 MB |
Request Tuning | |
Simultaneous request limit | 10 |
Flash Remoting request limit | 5 |
Web Service request limit | 5 |
CFC request limit | 10 |
CFThread Pool Size | 10 |
Maximum number of report threads | 8 |
Request Queue Timeout | 60 seconds |
Request Queue Timeout Page | |
Maximum number of running JRun threads | 50 |
Maximum number of queued JRun threads | 1000 |
Caching | |
Template cache size | 1024 templates |
Enable trusted cache | No |
Cached query limit | 100 |
Save Class Files | Yes |
Cache web server paths | No |
Client Variable Settings | |
Default client variable store | Registry |
Client Stores | |
Registry | |
Type | REGISTRY |
Description | System registry. |
Purge data after time limit | Yes |
Time limit | 90 days |
Disable global updates | No |
Cookie | |
Type | COOKIE |
Description | Client based text file. |
Purge data after time limit | Yes |
Time limit | 10 days |
Disable global updates | No |
Memory Variables | |
J2EE Sessions | No |
Application Variables | |
Enable Application Variables | Yes |
Default Timeout | 2,0,0,0 |
Maximum Timeout | 2,0,0,0 |
Session Variables | |
Enable session variables | Yes |
Default Timeout | 0,0,20,0 |
Maximum Timeout | 2,0,0,0 |
ColdFusion Mappings | |
/gateway | C:\ColdFusion9\gateway\cfc |
/CFIDE | C:\ColdFusion9\wwwroot\CFIDE |
Mail Connection Settings | |
Default Server Port | 465 |
Connection Timeout | 60 seconds |
Spool Interval | 15 seconds |
Mail Delivery Threads | 10 |
Maintain Connection to Mail Server | No |
Spool Messages To | disk |
Max Messages Spooled to Memory | 50000 |
Default CFMail Charset | UTF-8 |
Use SSL Connection | Yes |
Use TLS | Yes |
Default Mail Server | |
smtp.gmail.com | |
Server | smtp.gmail.com |
Port | 465 |
Username | siamadu@gmail.com |
Password | not shown |
Mail Logging Settings | |
Log Severity | warning |
Log all E-mail messages sent by ColdFusion | No |
Event Gateways | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Security | ||||||||||||||||
|
Copy link to clipboard
Copied
Everything looks ok to me in your settings. You're correct in using your full email address. My first test was on CF 7 and the second test was on CF 9.0.1.
Is there perhaps a firewall or something else on your network that might be blocking that traffic?
Copy link to clipboard
Copied
There could possibly a firewall blocking the traffic. I am looking into now.
Copy link to clipboard
Copied
I will tried to download CF 9 on another computer and see if I can setup the Gmail with that computer. If I can, then I know it is the firewall issue. If I cannot, then it will problem be my CF settings.