Send TLS Emails using Xampp 1.8.1 Window 8 [answered]

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Send TLS Emails using Xampp 1.8.1 Window 8 [answered]

Postby alvarogtc » 15. November 2012 22:34

Hi guys, before install windows 8 i was using Win 7 and my xampp was work fine SEND EMAILS for test purposes, but after install Windows 8 dont works anymore

i running a test like this

Code: Select all
         $headers  = "From: "teste"<mymail@mail.com>\n";
      $headers .= "MIME-Version: 1.0\n";
      $headers .= "Content-type: text/html; charset=UTF-8\n";
      
         if (mail("anotheremail@mail.com", "test", "works fine", $headers)){
         echo "send ok";
      }
      else{
         echo "error";
      }


returns fine but the emails never is delivered

on my php.ini i have like this

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = mail.ipageweb.com
; http://php.net/smtp-port
smtp_port = 25 #ive try port 26

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = myemail@email.com

thanks for any advice
alvarogtc
 
Posts: 3
Joined: 22. January 2010 23:31

Re: Send Emails using Xampp 1.8.1 on Window 8

Postby bblake » 20. November 2012 13:40

I am also having problems sending email using "fake sendmail" on XAMPP 1.8.1 portable.

Are you checking the debug log?

I have xampp on a portable hard drive, and sendmail runs fine on Windows XP and Windows 7.
But on Windows 8, the email is not sent, a crash dump is written in the sendmail folder, and the debug log looks the same as on the working XP system until suddenly what looks like some sort of certificate or security text is received. The debug log shows:

Code: Select all
12/11/19 22:45:31 ** --- MESSAGE BEGIN ---
  deleted several lines.
12/11/19 22:45:31 ** Message text
12/11/19 22:45:31 ** --- MESSAGE END ---
12/11/19 22:45:33 ** Connecting to mail.xxxx.com:26  <-- Have to use port 26, my ISP (O2) blocks 25.
12/11/19 22:45:33 ** Connected.
12/11/19 22:45:33 << 220-excalibur.xssl.net etc. <EOL>
12/11/19 22:45:33 >> EHLO computername.domain.com<EOL>
12/11/19 22:45:33 << 250-excalibur.xssl.net Hello ipaddress [ipaddress]<EOL>250-SIZE 52428800<EOL>250-8BITMIME<EOL>250-PIPELINING<EOL>250-AUTH PLAIN LOGIN<EOL>250-STARTTLS<EOL>250 HELP<EOL>
12/11/19 22:45:33 ** Authenticating as user@domain.com
12/11/19 22:45:33 >> STARTTLS<EOL>
12/11/19 22:45:33 << 220 TLS go ahead<EOL>
12/11/19 22:45:33 >> QUIT<EOL>   <-- here we see a change from the log on the working system, where we see >> EHLO computer.domain.com<EOL>
   Instead we get very cryptic characters received - maybe a certificate?
  The service provider is United Hosting (or United Communications Ltd).
12/11/19 22:45:33 <<  Q  MPª¶r¶„ …½˜çøq5YÁ5¶?2>¯™RòÌ Ù{:“ƈôÆRÏÖØ„£vÂ,',Ö:Ã9#`³ý¿å 9  ÿ  Y U R  0‚0‚ð  ØÈ2M ¹ØþRs#¾lê0   *†H†÷ 0—1 0
UUS1 0UUT10USalt Lake City10UThe USERTRUST Network1!0U http://www.usertrust.com10UUTN-USERFirst-Hardware0110406000000Z130410235959Z0‚1 0   UGB10UHP1 2XN10U
Hertfordshire10UHEMEL HEMPSTEAD10UPO Box 9371"0 UUnited Communications Ltd10U Hosting100.U 'Hosted by UNITED COMMUNICATIONS LIMITED1#0!U Comodo PremiumSSL Wildcard10U
*.xssl.net0‚"0†H†÷ ‚ 0‚‚ °çÛÁ)t·d=wíánú‚Ž'ßl—µá÷âË(ôÛ¯˜°‡üCBú­ÒuÁ>!r.lëË!ΧGqh|¿²Öh)ò:÷vé ÷(“Ôfƒ0|P/ú¦?EaDØÙŸ?¥¸Yû#¯Û©ð‰ö;† £"ŸÖG Nõ%5FWönBk’;–i„5ø~3}2À§ˆzS~Q-igí—¬y:‡بQ€û[Âl¡Ûi9çH—Jô¸uCº{¡QŽ|’ÀIÞzµ¢<‡9ù0‹±ªg›õVÈG?2د®¦òÔñb×OgóöIŽ+víY¯}“™ûrxNMYݬ
W@)E £‚Ú0‚Ö0U#0€¡r_&(˜C•]7Õ…–KÒÃE0U.ž¹v°ïó>†ÅLtB‡_Lv0Uÿ 0 Uÿ0 0U%0++0FU ?0=0; +²10+0)+https://secure.comodo.com/CPS0{Ut0r08 6 4†2http://crl.comodoca.com/UTN-USERFirst-Hardware.crl06 4 2†0http://crl.comodo.net/UTN-USERFirst-Hardware.crl0q+e0c0;+0†/http://crt.comodoca.com/UTNAddTrustServerCA.crt0$+0†http://ocsp.comodoca.com0U0‚
*.xssl.net‚xssl.net0*†H†÷ ‚ li%Aä%¼EB÷6ÞQzŠn@¯›ÈMÝÐ%Æ„+·Öò"qž¢/©¿Du—±|¾Æ›î@phz¥ëÒ
   (I've removed new lines in some of the above)

12/11/19 22:45:33 ** Disconnected.
12/11/19 22:45:33 ** Disconnecting from mail.domain.com:26
12/11/19 22:45:33 ** Disconnected.
12/11/19 22:45:33 ** Disconnected.
12/11/19 22:45:33 ** Connection Closed Gracefully.


So what is going on with Windows 8? Something in the TCP/IP settings that seems to require a secure login?
Thanks,
Brendan.
bblake
 
Posts: 6
Joined: 22. March 2008 01:03
Location: London
XAMPP Version: 1.8.1
Operating System: Windows XP

Re: Send Emails using Xampp 1.8.1 on Window 8

Postby Dave003 » 01. March 2013 08:26

Anyone have a fix for this issue yet?

I am in the same boat as the other guys, I have fake sendmail working fine on XP and 7 but 8 is not working.
Dave003
 
Posts: 6
Joined: 07. December 2006 13:12

Re: Send Emails using Xampp 1.8.1 on Window 8

Postby JonB » 01. March 2013 15:52

The only way to debug that is to contact the service provider (AFAIK)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.7.5
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Send Emails using Xampp 1.8.1 on Window 8

Postby Dave003 » 02. March 2013 06:43

Jon, I think you need to reread the thread, this issue only occurs with Windows 8 the OP and everyone else including me can send mail fine using Windows 7 or XP. This is not a service provider issue.
Dave003
 
Posts: 6
Joined: 07. December 2006 13:12

Re: Send Emails using Xampp 1.8.1 on Window 8

Postby JonB » 02. March 2013 12:35

ACTUALLY, I read it quite carefully Dave, and since you don't know, other than what appears in the log (the one you also kinda didn't include), what is CAUSING the apparent misstep in the dialog with the SMTP server - I thought the service provider, since they deal with this all the time, like for a living and all that, might be able to tell you what has gone amiss. They probably have seen it before, as you are not the only human being running Windows 8. (Thinking its an OS issue, as that is what is different between the scenarios)

Then I decided just now (as I was composing this reply) to use Google:

fake sendmail windows 8 TLS

http://superuser.com/questions/497467/w ... p-accounts

Whupps It's an MS issue... and they apparently have a fix.

http://answers.microsoft.com/en-us/wind ... c3528e0182

Good Luck
8)


nes&d
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.7.5
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Send Emails using Xampp 1.8.1 on Window 8

Postby Davx » 02. March 2013 19:37

I'm having exact problem, cant send mails via sendmail, somthing wrong with TLS, but that last post dont helps, cuz there is problem in Mail app, not in some of servers or system.

13/02/28 18:44:34 ** Connecting to smtp.gmail.com:587
13/02/28 18:44:35 ** Connected.
13/02/28 18:44:35 << 220 mx.google.com ESMTP hk10sm5021159lab.4 - gsmtp<EOL>
13/02/28 18:44:35 >> EHLO SuperPuper-PC<EOL>
13/02/28 18:44:35 << 250-mx.google.com at your service, [123.23.123.123]<EOL>250-SIZE 35882577<EOL>250-8BITMIME<EOL>250-STARTTLS<EOL>250 ENHANCEDSTATUSCODES<EOL>
13/02/28 18:44:35 ** Authenticating as davidsmurafa@gmail.com
13/02/28 18:44:35 >> STARTTLS<EOL>
13/02/28 18:44:35 << 220 2.0.0 Ready to start TLS<EOL>
13/02/28 18:44:35 >> QUIT<EOL>
Davx
 
Posts: 1
Joined: 02. March 2013 19:34
XAMPP Version: 1.8.1
Operating System: Windows 8

Re: Send Emails using Xampp 1.8.1 on Window 8

Postby JonB » 02. March 2013 23:26

@ Davx -

As no one here wrote the Windows 8 Mail app, I guess you should call Bill Gates, or perhaps you think there is something within our power here @ XAMPP to fix OS problems?

Good Luck
:)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.7.5
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Send Emails using Xampp 1.8.1 on Window 8

Postby Altrea » 03. March 2013 00:40

JonB wrote:perhaps you think there is something within our power here @ XAMPP to fix OS problems?

There is a small fix it for Windows issues called Linux :lol:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
free software according to purpose of usage
XAMPP 1.8 for local development/testing only
Zend Server 6 (free) for production environments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 4639
Joined: 17. August 2009 13:05
XAMPP Version: 1.8.1
Operating System: W7Ux64

Re: Send Emails using Xampp 1.8.1 on Window 8

Postby bblake » 04. March 2013 10:19

Thanks for all the comments, but the suggested fix from http://answers.microsoft.com/en-us/wind ... c3528e0182 does not fix the fake sendmail StartTLS problem that I reported in much more detail above. The fix involves applying updates to the communications app so it is at version number 164.4406.1205. I was always dubious about whether fixing an app would solve a problem in the old desktop win32 support, which is (I'm pretty sure) what fake sendmail uses. Having said that, I'm pretty sure this must be a windows 8 problem, so we may just have to wait for Microsoft to fix it.

I see others are also reporting this problem elsewhere. For example, see http://stackoverflow.com/questions/1514 ... ont-workin

As a lecturer and software developer I use XAMPP extensively both for development and teaching. The result of this and many other Windows 8 problems means I have a lovely new Windows 8 machine sitting mostly unused in the corner, while I continue to use my old Windows XP machine. I'd better not write what my initial impressions are of Windows 8!
I can't see businesses wanting to migrate as the learning curve is so high.
Last edited by bblake on 04. March 2013 10:24, edited 1 time in total.
Thanks,
Brendan.
bblake
 
Posts: 6
Joined: 22. March 2008 01:03
Location: London
XAMPP Version: 1.8.1
Operating System: Windows XP

Re: Send Emails using Xampp 1.8.1 on Window 8

Postby bblake » 04. March 2013 10:23

PS - why can't I use the [url] tag to correctly link to URLs.... I did first look in my preferences????? Anyway, sorry about that.
Thanks,
Brendan.
bblake
 
Posts: 6
Joined: 22. March 2008 01:03
Location: London
XAMPP Version: 1.8.1
Operating System: Windows XP

Re: Send Emails using Xampp 1.8.1 on Window 8

Postby Altrea » 04. March 2013 11:41

bblake wrote:PS - why can't I use the [url] tag to correctly link to URLs.... I did first look in my preferences????? Anyway, sorry about that.

For Spam prevention the automatic and BBCode url linking is disabled for users with just a few posts.
I have linked the urls for you :)

best wishes,
Altrea
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
free software according to purpose of usage
XAMPP 1.8 for local development/testing only
Zend Server 6 (free) for production environments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 4639
Joined: 17. August 2009 13:05
XAMPP Version: 1.8.1
Operating System: W7Ux64

Re: Send Emails using Xampp 1.8.1 on Window 8

Postby bblake » 04. March 2013 18:43

OK - I've got my brain into gear on this one, instead of waiting for someone else to solve it.

The problem related to TLS - transport level security. Now I don't need this for testing PHP email, as I'm just connecting to a basic SMTP server with the "fake sendmail".

So if you don't actually need TLS, then just set
smtp_ssl=none
in the sendmail.ini file instead of the default value of smtp_ssl=auto

Problem solved! It still works fine on WinXP.
Thanks,
Brendan.
bblake
 
Posts: 6
Joined: 22. March 2008 01:03
Location: London
XAMPP Version: 1.8.1
Operating System: Windows XP

Re: Send Emails using Xampp 1.8.1 on Window 8

Postby JonB » 04. March 2013 21:53

@ bblake -Oddly enough - I wrote some work-arounds and explanations last night - so we must be on the same track. I didn't think of your suggestion, as at that time I did not have a Windows 8 machine to test on, but it falls within one of them - "don't use TLS" - so I have added your suggestion to my workaround.

A. XAMPP is not the developer of 'fake sendmail'. We use it with the author's license (included in the \xampp\sendmail folder). Thus, getting to the bottom of the problem is difficult.

B. There are workarounds, even if you cannot use Microsoft's apparent 'fix'.

1. If you are only testing code, you could consider using XAMPP's 'mailtodisk' MTA introduced a couple of versions back. (AFAIK, that is ours)

2. You can switch to a mailserver (SMTP) configuration that does not require TLS. ( Yes - I know some ISP's/mailproviders ONLY allow TLS connects/authentication) and use bblakes suggestion
if you don't actually need TLS, then just set
smtp_ssl=none
in the sendmail.ini file instead of the default value of smtp_ssl=auto


3. Set up/use an SMTP server on the XAMPP server. Mercury/Pegasus Mailserver is included, I prefer the excellent free Windows mailserver hMailserver.
http://hmailserver.com/

Department of Explanations:

The Likely Problem with 'Fake Sendmail on Windows 8' (pure Jon B speculation)

The problem is likely an OS system call in the 'fake sendmail' package that no longer is working correctly. However, it was not developed by XAMPP. so we are not in a position to make a call on that (the source is included if you want to debug it) The rationale for the suggestions to do the Windows Mail App update are probably rooted in a library update that accompanies the App update.

Fake Sendmail's author (byron jones) website

http://glob.com.au/sendmail/

his comments:

i've had reports that TLS/SSL is not working on windows 8. unfortunately i don't have access to a windows 8 system to diagnose the issue just yet



Good Luck to all.
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
XAMPP Version: 1.7.5
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 8 guests

cron