I have Integrated PHPMailer to send emails via SMTP with outlook email .Getting this "Language string failed to load: tls" SMTP error.
It tells me that you are using a very old version of PHPMailer that's no longer supported. Get the latest version.
Related
I am also importing imap on the server.
Fixed by downgrading imap version to imap#0.8.17
I tried downloading the github file release from vb with this code
Short code
Dim DataDownload As String = "https://github.com/ianpwk/FindMyWaifu/releases/download/0.0.0.20/FindMyWaifuPortable.zip"
Full Code in Pastebin
Showing error "The request was aborted: Could not create SSL / TLS secure channel."
I am using AWS SES to send emails from OTRS and emails are not working. Below is the error:
Mar 18 06:22:47 ip-10-210-28-141 OTRS-otrs.Console.pl-Maint::Email::MailQueue-09[30010]: [Error][Kernel::System::CommunicationLog::_LogError][Line:538]: CommunicationLog(ID:795,AccountType:-,AccountID:-,Direction:Outgoing,Transport:Email,ObjectLogType:Message,ObjectLogID:2233)::Kernel::System::MailQueue => Message could not be sent! Error message: Can't connect to email-smtp.us-east-1.amazonaws.com: !
I am able to telnet to email-smtp.us-east-1.amazonaws.com
I am able to send emails using SES from the same server via command line but OTRS is not sending email.
It's hard to debug OTRS. In your case OTRS was not possible to create an mail object. The cause can have several issue.
Maybe you are using the wrong SMTP backend module, there are 3 different options, SMTP/SMTPS and SMTPTLS (see also https://github.com/OTRS/otrs/tree/master/Kernel/System/Email)
To get more verbose feedback from the CPAN SMTP module, set $Self->{Debug} = 3; at this place https://github.com/OTRS/otrs/blob/master/Kernel/System/Email/SMTP.pm#L32 and check STDOUT what the problem is.
I'm using Zend_mail with SMTP in a wrapper class like this:
//$_config has all required and valid attributes to send a mail successfully.
$tmpconfig = Array('auth' => 'login',
'username' => $this->_config->MAIL_LOGIN,
'password' => $this->_config->MAIL_PASSWORT);
$this->_transport = new Zend_Mail_Transport_Smtp($this->_config->MAIL_SMTP,$tmpconfig);
$this->_mail = new Zend_Mail();
$this->_mail->setFrom($this->_config->MAIL_ADDRESS, $this->_config->MAIL_SENDER_NAME);
...
//$_data has already all required and valid fields and values...
$this->_mail->setBodyText($this->_data['maildata']['BodyText'],'UTF-8','UTF-8');
$this->_mail->setSubject($this->_data['maildata']['Subject']);
$this->_mail->addTo($this->_data['maildata']['RecipientEmail'], $this->_data['maildata']['RecipientName']);
$this->_mail->send($this->_transport);
Scenario 1: I'm sending the Mail with a test account to a proprietary server to a test mailaddress from my testsystem. This mail will be received.
Scenario 2: I'm sending the Mail with another test account to another proprietary server to the same mailaddress, with two test systems. This mail is rejected as ratware. I've already talked to the server administrator, he said that the mail generation is incorrect. There is no valid EHLO greeting: "remote host used our name in HELO/EHLO greeting."
I don't really know if its a problem within the zend_mail class or the test systems.
1st Testsystem: PHP Version 5.3.2-1ubuntu4.14, Apache/2.2.14 (Ubuntu)
2nd Testsystem: PHP Version 5.3.1, Apache/2.2.14 (Unix) (Apache on Mac OS X)
I think your 2nd mail server is configured too strictly, or perhaps it's a problem with how you're configuring Zend_Mail. Zend_Mail works great for me, and I'm using it to send emails to multiple SMTP servers, including the ones at Gmail and also at a popular shared web hosting service.
If you're sending on port 25, I believe many mail servers are more likely to treat your message as Spam. Does your 2nd mail server support sending with alternate ports? Typical alternatives are 465 or 587. Also, have you tried sending via SSL or TLS? These might also help convince that server that your messages are legitimate.
I was told that my program was not issuing a MAIL/EXPN/VRFY/ETRN when sending an email by the web hosting company we are connecting to.
Anyone know what this means and how I do it?
I am sending an email with SmtpClient and I have no problems with other clients.
Here is what I was told:
Thanks for the additional info, here
is what I found...
Aug 4 11:16:48 smtp1 sendmail[2729]:
o74GGU5F002729:
xx-xx-xx-xx.static.xxx.mo.charter.com
[xx.xx.xx.xx] did not issue
MAIL/EXPN/VRFY/ETRN during connection
to TLSMTA
Notice the time and the IP address
which is your static from Charter. Now
here is a good connection.
Aug 4 11:18:22 smtp1 sendmail[2745]:
STARTTLS=server,
relay=xx.xx.xx.xx.static.xxx.mo.charter.com [xx.xx.xx.xx], version=TLSv1/SSLv3,
verify=NO, cipher=RC4-MD5,
bits=128/128 Aug 4 11:18:23 smtp1
sendmail[2745]: AUTH=server,
relay=xx.xx.xx.xx.static.stls.mo.charter.com
[xx.xx.xx.xx], authid=ronmid,
mech=LOGIN, bits=0
Since their email program did not
issue MAIL/EXPN/VRFY/ETRN during
connection, my server would not
continue the transaction.
Any suggestions?
Thanks!
You app didn't issue any of those 4 commands after connecting. This could be because the server didn't respond correctly and so your app was waiting for that response until it timed out. You can check this by trying to send an email with a simple telnet connection as described here. After you connect and send the EHLO or HELO command (depending on what the server wants) you should get a 250 response.
If you do get the 250 response with telnet but your app still doesn't work, then maybe it's something in your application that tries to send an incorrect command. Maybe you've setup your application to use SSL or credentials, and the SMTP server don't support that or something similar?