I am trying to access my Microsoft Exchange server with Coldfusion cfimap so I can move mail out of the junk mail folder. I am using CF10. I want to just test getting the folder list.
<cfscript>
variables.popAttributes = {
server = ...,
port = 995,
username = ...,
password = ...
};
</cfscript>
<cfimap action="open"
connection="variables.folders"
secure="yes"
server="#variables.popAttributes.server#"
port="#variables.popAttributes.port#"
username="#variables.popAttributes.username#"
password="#variables.popAttributes.password#" />
<cfimap action="listallfolders"
connection="variables.folders"
name="variables.folderQry" />
<cfdump var="#variables.folderQry#" />
<cfimap action="close"
connection="variables.folders" />
When I try to run the above code, I get an exception from the "open" tag.
An exception occurred when setting up mail server parameters.
This exception was caused by: javax.mail.MessagingException: +OK The Microsoft Exchange POP3 service is ready.; nested exception is: com.sun.mail.iap.ConnectionException: +OK The Microsoft Exchange POP3 service is ready..
I'd think that the message saying OK the service is ready should mean that it would move on to the next cfimap tag.
You are attempting IMAP operations on a POP3 connection. POP3 has no concept of folders.
Try port 993.
Related
I am trying since yesterday but no luck. I am getting this weird error message which doesn't have much information or solution on the Internet.
A problem occurred when attempting to deliver mail.
This exception was caused by:
com.sun.mail.smtp.SMTPSendFailedException: 550 Access denied - Invalid
HELO name (See RFC2821 4.1.1.1) ; nested exception is:
com.sun.mail.smtp.SMTPSenderFailedException: 550 Access denied -
Invalid HELO name (See RFC2821 4.1.1.1) .
Code that sends email via SMTP
<cfmail
from="no-reply#example.com"
server="mail.example.com"
to="example#gmail.com"
username="no-reply#example.com"
password="password"
port=587
subject="ColdFusion Email">ColdFusion</cfmail>
I use the same server, username and password on our PHP websites using PHPMailer everything works fine only on ColdFusion websites am getting this error.
Please advise
I want to sent email from grails application. Mail server is HARAKA which does not support ssl. Instead of SSL it uses TLS.
Configuration is:
mail `{`
`host = "mm13.us1.emailsrv.net"`
`port = 2525`
`username = "user"`
`password = "pass****"`
`props` = `[`
`"mail.smtp.auth":"true",`
`"mail.smtp.port":"2525",`
`"mail.smtp.socketFactory.fallback":"false",`
`"mail.smtp.starttls.enable": "true"`
`]`
`}`
Facing Error:
Problem sending email Mail server connection failed; nested exception is javax.mail.MessagingException: Could not convert socket to TLS;
I have set email settings using gmail from my localhost successfully and my sugar instance is sending test mail well. I also done with cron job setup and tested it.
The problem occurs when i try to send email in a cron job it cannot be send. My basic code i am using is
require_once('include/SugarPHPMailer.php');
$emailObj = new Email();
$defaults = $emailObj->getSystemDefaultEmail();
$mail = new SugarPHPMailer();
$mail->setMailerForSystem();
$mail->From = $defaults['email'];
$mail->FromName = $defaults['name'];
$mail->Subject=from_html($bean->name);
$mail->Body="hello this is testing ....!";
$mail->prepForOutbound();
$mail->AddAddress('abc#yahoo.com');
#$mail->Send();
The following errors displayed in fatal log .
09/24/12 10:58:07 [4560][1][FATAL] SMTP -> ERROR: EHLO not accepted from server. Code: , Reply:
09/24/12 10:58:07 [4560][1][FATAL] SMTP -> ERROR: HELO not accepted from server. Code: , Reply:
09/24/12 10:58:07 [4560][1][FATAL] SMTP -> ERROR:AUTH not accepted from server. Code: Reply:
09/24/12 10:58:07 [4560][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not authenticate.
09/24/12 10:58:07 [4560][1][FATAL] SugarPHPMailer encountered an error: SMTP Error: Could not connect to SMTP host.
09/24/12 10:58:07 [4560][1][FATAL] SugarPHPMailer encountered an error: An outgoing mail server is not configured to send emails. Please configure an outgoing mail server or select an outgoing mail server for the mail account that you are using in Settings >> Mail Account.
Some time it give follwing one,
09/24/12 11:01:07 [832][1][FATAL] SugarPHPMailer encountered an error: Language string failed to load: tls
can anybody help please?
I've got my own box sitting in a rack. It's Win2000 running CF 7 and using the rack company's smtp server. I can't send emails. When I try, they simply go to the undeliverable email folder. Support says my server is sending a non-verifiable helo message. So their smtp server wont send it.
It being CF 7, the admin has nowhere to specify U/P for auth. However I SHOULD be able to do that within the tag. When I do, I get no errors but the mail goes to the undeliverable folder.
CODE:
<cftry>
<cfmail to="jxxx#yahoo.com"
from="jxxx#xxx.com"
subject="xxx.com Sign-up"
server="smtp.xxx.net"
port="25"
username="valid-account#xxx.net"
password="password" >
This is a test - with server specified
</cfmail>
Success w/ server user defined
<cfcatch type="any">
<strong>ERROR: #cfcatch.Message#</strong><BR />
#cfcatch.Detail#
</cfcatch>
</cftry>
<cftry>
<cfmail to="jxxx#yahoo.com"
from="xxx#xxx.net"
subject="xxx.com Sign-up" >
This is a test - without server specified
</cfmail>
Success w/o server user defined
<cfcatch type="any">
<strong>ERROR: #cfcatch.Message#</strong><BR />
#cfcatch.Detail#
</cfcatch>
</cftry>
I don't know much about mail servers...
Any ideas?
This could be an issue with DNS and the inability of the receiving system to either do a reverse DNS lookup or maybe it isn't in DNS at all.
another possibility is that non-verifable Helo means that you don't have FQDN associated with the system (perhaps your system name does not have a domain associated with it?) (ie. helo me) probably going to be bounced versus "helo me.somewhere.com".
so - don't think this a CF issue from a coding perspective - something that is related to your system setting (FQDN perhaps) or DNS in your location. Most anti-spam / anti-open relay settings are going to look at DNS for some level of validation.
I'm using Grails Mail plugin and trying to send email and keep getting:
Error 500: Executing action [sendInvite] of controller
[RegisterController] caused exception: Failed messages:
javax.mail.SendFailedException: Invalid Addresses; nested exception
is: com.sun.mail.smtp.SMTPAddressFailedException: 550 must be
authenticated
I'm properly following the instructions at: http://www.grails.org/Mail+plugin
The mail server is returning an error when you try to send out the mail. 550 is a generic SMTP failure code; in this case it looks like you are missing a username and password. Some SMTP servers to not require authentication but most do, especially if they're publicly available on the internet. It's also possible that your SMTP server requires an SSL connection and you're connecting with an unsecured socket.
The example config for gmail shows how to set all the mail server authentication options in Config.groovy:
grails {
mail {
host = "smtp.gmail.com"
port = 465
username = "youracount#gmail.com"
password = "yourpassword"
props = ["mail.smtp.auth":"true",
"mail.smtp.socketFactory.port":"465",
"mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
"mail.smtp.socketFactory.fallback":"false"]
}
}
Add "mail.debug": "true" to props to turn on JavaMail debugging to get a better picture of what is happening before the failure.
In my case the 550 error was caused by me having accidentally selected and IMAP account as the default account but sending emails from my Outlook Connector Account (which has no authentication settings to make).
I changed the Outlook Connector Account to default. Resent the emails and no errors.
So check that the correct email account is set up as the default also