Search found 35 matches: sendmail solved

Searched query: +sendmail +solved

Return to advanced search

[solved] MailCatcher or any other fake SMTP Server

Hello! I'm running the latest XAMPP version on Ubuntu 15.04

I have been trying for TOO long to make the PHP mail() function work. On Windows, I had a little program called "Test mail server tool" which worked like a charm. No. configuration needed, no nothing. Just run it, and it would catch all mails sent to port 25.

All I really want is to be able to check how emails are being sent, I don't really want them to be sent.

I tried many options:

- Using Python as SMPT server (http://serverfault.com/questions/207619/how-to-setup-a-fake-smtp-server-to-catch-all-mails)
- Using FakeSMPT (https://nilhcem.github.io/FakeSMTP/)
- Actually using sendmail. I couldn't get it to work, I'm not that patient.
- Using MailCatcher (http://mailcatcher.me/)

I'm currently trying to make the latter work. But no matter what I try, mail() returns false and nothing is being sent to mailcatcher. This is my current php.ini

Code: Select all
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP=localhost
; http://php.net/smtp-port
smtp_port=2525

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = nahuel@nahueljose.com.ar

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
; sendmail_path = /usr/bin/env catchmail -f nahuel@nahueljose.com.ar
; sendmail_path = /usr/local/bin/catchmail
sendmail_path = "/usr/bin/env /usr/local/bin/catchmail"


And I run mailcatcher on port 2525 (I also tried their default port, same result). I tried using port 25, but mailcatcher says it's in use? At first it was, by sendmail, but I completely removed it and made sure port 25 wasn't being used ( sudo netstat -noa | grep ':25' ). Mailcatcher insists it is in use.

When I check /opt/lampp/logs/error_log, this appears at the end EVERY TIME I use mail()

Code: Select all
/usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': /usr/lib/x86_64-linux-gnu/ruby/2.1.0/digest/md5.so: symbol MD5_Init, version OPENSSL_1.0.0 not defined in file libcrypto.so.1.0.0 with link time reference - /usr/lib/x86_64-linux-gnu/ruby/2.1.0/digest/md5.so (LoadError)
   from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
   from /usr/lib/ruby/2.1.0/net/smtp.rb:23:in `<top (required)>'
   from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
   from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
   from /var/lib/gems/2.1.0/gems/mail-2.6.3/lib/mail.rb:8:in `<module:Mail>'
   from /var/lib/gems/2.1.0/gems/mail-2.6.3/lib/mail.rb:2:in `<top (required)>'
   from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
   from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
   from /var/lib/gems/2.1.0/gems/mailcatcher-0.6.1/bin/catchmail:7:in `rescue in <top (required)>'
   from /var/lib/gems/2.1.0/gems/mailcatcher-0.6.1/bin/catchmail:3:in `<top (required)>'
   from /usr/local/bin/catchmail:23:in `load'
   from /usr/local/bin/catchmail:23:in `<main>'


So it seems the problem is really with mailcatcher, but noone has this problem! Googling around the error (parts of it), someone said it might be because I have an old version of OpenSSL (vulnerable to heartbleed) so I manually updated OpenSSL to 1.0.1g (openssl version returns correct version). No change.

So, all I really need is to be able to see how emails are being sent. This is important to me because it needs to work locally before I upload to an online server.

Thank you!
by Nahuel
17. June 2015 04:36
 
Forum: XAMPP for Linux
Topic: [solved] MailCatcher or any other fake SMTP Server
Replies: 2
Views: 1082

[SOLVED] Sendmail - XAMPP 1.8.3-5 OS 10.10 Yosemite - Dyld

Hi,

I've just done a fresh install of the XAMPP 1.8.3-5 on Mac OS 10.10 Yosemite.

Apache runs fine.
MySQL databases run fine.

PHP files refuse to send e-mails. I've looked on the console and noticed the following error:

Code: Select all
16:07:36 ReportCrash: Saved crash report for sendmail[7329] version ??? to /Library/Logs/DiagnosticReports/sendmail_2014-10-19-160736_Daniel-whites-MacBook-Pro.crash


In the error report I get the following error:

Dyld Error Message:
Symbol not found: _sqlite3_intarray_bind
Referenced from: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
Expected in: /Applications/XAMPP/*/libsqlite3.dylib
in /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData


I really don't know where I am going wrong. I can't find anything online either. Can anyone help please?

Full Error Report:
Code: Select all
Process:               sendmail [7329]
Path:                  /usr/sbin/sendmail
Identifier:            sendmail
Version:               ???
Code Type:             X86-64 (Native)
Parent Process:        httpd [6627]
Responsible:           sendmail [7329]
User ID:               1

Date/Time:             2014-10-19 16:07:35.894 +0100
OS Version:            Mac OS X 10.10 (14A389)
Report Version:        11
Anonymous UUID:        [//REMOVED//]

Sleep/Wake UUID:       [//REMOVED//]

Time Awake Since Boot: 3500 seconds
Time Since Wake:       1500 seconds

Crashed Thread:        0

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000

Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_LIBRARY_PATH=/Applications/XAMPP/xamppfiles/lib:/Applications/XAMPP/xamppfiles/lib

Dyld Error Message:
  Symbol not found: _sqlite3_intarray_bind
  Referenced from: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
  Expected in: /Applications/XAMPP/*/libsqlite3.dylib
 in /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData

Binary Images:
       0x1014f9000 -        0x10152eff7  libssl.0.9.8.dylib (52) <70680606-475F-3C89-BB5F-E274253DC7C6> /usr/lib/libssl.0.9.8.dylib
       0x101568000 -        0x10157bfff +libz.1.dylib (1.2.8) <47B9DDCF-B152-3D78-8B02-D955EF15E8BD> /Applications/XAMPP/*/libz.1.dylib
       0x101584000 -        0x1016a5fe7 +libsqlite3.dylib (9.6) <04EF4363-DE0C-3826-9AA2-1453049CBBF7> /Applications/XAMPP/*/libsqlite3.dylib
       0x1016be000 -        0x1016ccfff +libbz2.1.0.dylib (1.0.6) <BFD13BDC-2236-32A7-B609-AFB6EB06A9B3> /Applications/XAMPP/*/libbz2.1.0.dylib
       0x1016d1000 -        0x101849fff +libxml2.2.dylib (11) <A6D8D744-76E0-35FB-874E-2AF02A9F3B2C> /Applications/XAMPP/*/libxml2.2.dylib
       0x10187d000 -        0x101960fff +libiconv.2.dylib (8.1) <62FB91FC-5DBF-398B-A9A3-0951EDF6C234> /Applications/XAMPP/*/libiconv.2.dylib
       0x10196e000 -        0x1019a1fff +libxslt.1.dylib (3.28) <538DF950-144C-3961-9189-5AC2B25FB8A8> /Applications/XAMPP/*/libxslt.1.dylib
    0x7fff64aea000 -     0x7fff64b20837  dyld (353.2.1) <4696A982-1500-34EC-9777-1EF7A03E2659> /usr/lib/dyld
    0x7fff847ed000 -     0x7fff847edff7  libunc.dylib (29) <5676F7EA-C1DF-329F-B006-D2C3022B7D70> /usr/lib/system/libunc.dylib
    0x7fff84805000 -     0x7fff84806fff  com.apple.TrustEvaluationAgent (2.0 - 25) <2D61A2C3-C83E-3A3F-8EC1-736DBEC250AB> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
    0x7fff84807000 -     0x7fff84807ff7  libkeymgr.dylib (28) <77845842-DE70-3CC5-BD01-C3D14227CED5> /usr/lib/system/libkeymgr.dylib
    0x7fff8485d000 -     0x7fff84a42267  libobjc.A.dylib (646) <3B60CD90-74A2-3A5D-9686-B0772159792A> /usr/lib/libobjc.A.dylib
    0x7fff84edd000 -     0x7fff84ee0ff7  libdyld.dylib (353.2.1) <19FAF435-C165-3374-9DEF-D7BBA7D61DB6> /usr/lib/system/libdyld.dylib
    0x7fff8540b000 -     0x7fff854a9fff  com.apple.Metadata (10.7.0 - 916) <DA8A1D18-19FE-37B3-BE12-85C5B0A00736> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff854df000 -     0x7fff854efff7  libbsm.0.dylib (34) <A3A2E56C-2B65-37C7-B43A-A1F926E1A0BB> /usr/lib/libbsm.0.dylib
    0x7fff85588000 -     0x7fff8558afff  libsystem_configuration.dylib (699.1.5) <9FBA1CE4-97D0-347E-A443-93ED94512E92> /usr/lib/system/libsystem_configuration.dylib
    0x7fff85ad7000 -     0x7fff85ad9ff7  libsystem_coreservices.dylib (9) <41B7C578-5A53-31C8-A96F-C73E030B0938> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff86061000 -     0x7fff8606bff7  com.apple.NetAuth (5.0 - 5.0) <B9EC5425-D38D-308C-865F-207E0A98BAC7> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
    0x7fff860e5000 -     0x7fff8613fff7  com.apple.LanguageModeling (1.0 - 1) <ACA93FE0-A0E3-333E-AE3C-8EB7DE5F362F> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
    0x7fff861a2000 -     0x7fff864d0ff7  com.apple.Foundation (6.9 - 1151.16) <18EDD673-A010-3E99-956E-DA594CE1FA80> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff86791000 -     0x7fff86795fff  libcache.dylib (69) <45E9A2E7-99C4-36B2-BEE3-0C4E11614AD1> /usr/lib/system/libcache.dylib
    0x7fff86ba2000 -     0x7fff86bbeff7  libsystem_malloc.dylib (53.1.1) <19BCC257-5717-3502-A71F-95D65AFA861B> /usr/lib/system/libsystem_malloc.dylib
    0x7fff86bc2000 -     0x7fff86e2affb  com.apple.security (7.0 - 57031.1.35) <96141D1F-614E-32C4-8AC2-F47481F23F43> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff86ead000 -     0x7fff87194ffb  com.apple.CoreServices.CarbonCore (1108.1 - 1108.1) <55A16172-ACC0-38B7-8409-3CB92AF33973> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff871b8000 -     0x7fff8720cfff  libc++.1.dylib (120) <1B9530FD-989B-3174-BB1C-BDC159501710> /usr/lib/libc++.1.dylib
    0x7fff879b9000 -     0x7fff879bcfff  com.apple.xpc.ServiceManagement (1.0 - 1) <7E9E6BB7-AEE7-3F59-BAC0-59EAF105D0C8> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
    0x7fff87b33000 -     0x7fff87b5efff  libc++abi.dylib (125) <88A22A0F-87C6-3002-BFBA-AC0F2808B8B9> /usr/lib/libc++abi.dylib
    0x7fff87bba000 -     0x7fff87bc5fff  libcommonCrypto.dylib (60061) <D381EBC6-69D8-31D3-8084-5A80A32CB748> /usr/lib/system/libcommonCrypto.dylib
    0x7fff87bc6000 -     0x7fff87ef9fff  libmecabra.dylib (666) <2CE5540A-D412-3D53-9E11-86C24D61713B> /usr/lib/libmecabra.dylib
    0x7fff88ba5000 -     0x7fff88bc0ff7  libCRFSuite.dylib (34) <D64842BE-7BD4-3D0C-9842-1D202F7C2A51> /usr/lib/libCRFSuite.dylib
    0x7fff88ced000 -     0x7fff88cfaff7  libxar.1.dylib (254) <CE10EFED-3066-3749-838A-6A15AC0DBCB6> /usr/lib/libxar.1.dylib
    0x7fff88d68000 -     0x7fff88d82ff7  com.apple.Kerberos (3.0 - 1) <7760E0C2-A222-3709-B2A6-B692D900CEB1> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x7fff88ec8000 -     0x7fff88fe9fff  com.apple.LaunchServices (644.10 - 644.10) <0B1C68BC-0AEB-38E2-ABC8-E92728FEC475> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff88fea000 -     0x7fff88ff2ffb  com.apple.CoreServices.FSEvents (1210 - 1210) <782A9C69-7A45-31A7-8960-D08A36CBD0A7> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
    0x7fff88ff6000 -     0x7fff88ff7fff  libsystem_secinit.dylib (18) <581DAD0F-6B63-3A48-B63B-917AF799ABAA> /usr/lib/system/libsystem_secinit.dylib
    0x7fff89040000 -     0x7fff89045ff7  libunwind.dylib (35.3) <BE7E51A0-B6EA-3A54-9CCA-9D88F683A6D6> /usr/lib/system/libunwind.dylib
    0x7fff8915f000 -     0x7fff8917cfff  libsystem_kernel.dylib (2782.1.97) <93E0E0A9-75B6-3904-BB4E-4BC7C05F4B6B> /usr/lib/system/libsystem_kernel.dylib
    0x7fff891dc000 -     0x7fff891ddffb  libremovefile.dylib (35) <3485B5F4-6CE8-3C62-8DFD-8736ED6E8531> /usr/lib/system/libremovefile.dylib
    0x7fff89d35000 -     0x7fff89d3aff7  libmacho.dylib (862) <126CA2ED-DE91-308F-8881-B9DAEC3C63B6> /usr/lib/system/libmacho.dylib
    0x7fff89d56000 -     0x7fff89d56ff7  liblaunch.dylib (559.1.22) <8A988924-8BE7-35FE-BF7D-322E90EFE49E> /usr/lib/system/liblaunch.dylib
    0x7fff8a5fa000 -     0x7fff8a5feff7  com.apple.TCC (1.0 - 1) <AFC32F8F-BCD5-313C-B66E-5AB8591EC066> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7fff8af45000 -     0x7fff8af4efff  libsystem_pthread.dylib (105.1.4) <26B1897F-0CD3-30F3-B55A-37CB45062D73> /usr/lib/system/libsystem_pthread.dylib
    0x7fff8b1ef000 -     0x7fff8b260ff7  com.apple.framework.IOKit (2.0.2 - 1050.1.21) <ED3B0B22-AACC-303B-BFC8-20ECD1AF6BA2> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff8b8f5000 -     0x7fff8b9d8fff  libcrypto.0.9.8.dylib (52) <7208EEE2-C090-383E-AADD-7E1BD1321BEC> /usr/lib/libcrypto.0.9.8.dylib
    0x7fff8bcd7000 -     0x7fff8bebcff3  libicucore.A.dylib (531.30) <EF0E7544-E317-3550-A962-6AE65E78AF17> /usr/lib/libicucore.A.dylib
    0x7fff8bfd0000 -     0x7fff8bfeaff7  libextension.dylib (55) <17514AB2-C503-3D49-A725-EBC1140567A6> /usr/lib/libextension.dylib
    0x7fff8bfeb000 -     0x7fff8c063ff7  com.apple.SystemConfiguration (1.14 - 1.14) <C269BCFD-ACAB-3331-BC7C-0430F0E84817> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff8c064000 -     0x7fff8c066ff7  libsystem_sandbox.dylib (358.1.1) <DB9962EF-8898-31CC-9B87-E01F8CE74C9D> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff8c5df000 -     0x7fff8c5e0fff  liblangid.dylib (117) <B54A4AA0-2E53-3671-90F5-AFF711C0EB9E> /usr/lib/liblangid.dylib
    0x7fff8c5e1000 -     0x7fff8c60cff3  libarchive.2.dylib (30) <8CBB4416-EBE9-3574-8ADC-44655D245F39> /usr/lib/libarchive.2.dylib
    0x7fff8ca0b000 -     0x7fff8cc85fff  com.apple.CoreData (110 - 526) <AEEDAF00-D38F-3A15-B3C9-73732940CC55> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x7fff8cdbb000 -     0x7fff8ce29ffb  com.apple.Heimdal (4.0 - 2.0) <B852ACA1-4C64-3E2A-A9D3-6D4C80AD9429> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
    0x7fff8cef2000 -     0x7fff8cef4ff7  libquarantine.dylib (76) <DC041627-2D92-361C-BABF-A869A5C72293> /usr/lib/system/libquarantine.dylib
    0x7fff8cef6000 -     0x7fff8cefdff7  libcompiler_rt.dylib (35) <BF8FC133-EE10-3DA6-9B90-92039E28678F> /usr/lib/system/libcompiler_rt.dylib
    0x7fff8cfc9000 -     0x7fff8cfdfff7  libsystem_asl.dylib (267) <F153AC5B-0542-356E-88C8-20A62CA704E2> /usr/lib/system/libsystem_asl.dylib
    0x7fff8cfe0000 -     0x7fff8d06cfff  libsystem_c.dylib (1044.1.2) <C185E862-7424-3210-B528-6B822577A4B8> /usr/lib/system/libsystem_c.dylib
    0x7fff8d522000 -     0x7fff8d55affb  libsystem_network.dylib (411) <C0B2313D-47BE-38A9-BEE6-2634A4F5E14B> /usr/lib/system/libsystem_network.dylib
    0x7fff8d59d000 -     0x7fff8d61afff  com.apple.CoreServices.OSServices (640.3 - 640.3) <28445162-08E9-3E24-84E4-617CE5FE1367> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff8d688000 -     0x7fff8d88bff3  com.apple.CFNetwork (720.0.9 - 720.0.9) <78EE1B88-394F-3BB8-93A6-E068990559EC> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff8d91c000 -     0x7fff8d983ff7  com.apple.datadetectorscore (6.0 - 396.1) <5D348063-1528-3E2F-B587-9E82970506F9> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
    0x7fff8da77000 -     0x7fff8da91ff7  liblzma.5.dylib (7) <1D03E875-A7C0-3028-814C-3C27F7B7C079> /usr/lib/liblzma.5.dylib
    0x7fff8db0a000 -     0x7fff8db0bff7  libsystem_blocks.dylib (65) <9615D10A-FCA7-3BE4-AA1A-1B195DACE1A1> /usr/lib/system/libsystem_blocks.dylib
    0x7fff8db0c000 -     0x7fff8db10fff  libpam.2.dylib (20) <E805398D-9A92-31F8-8005-8DC188BD8B6E> /usr/lib/libpam.2.dylib
    0x7fff8ddd7000 -     0x7fff8ddd7fff  libOpenScriptingUtil.dylib (162) <EFD79173-A9DA-3AE6-BE15-3948938204A6> /usr/lib/libOpenScriptingUtil.dylib
    0x7fff8e0c9000 -     0x7fff8e0dbfff  libsasl2.2.dylib (193) <E523DD05-544B-3430-8AA9-672408A5AF8B> /usr/lib/libsasl2.2.dylib
    0x7fff8e5e7000 -     0x7fff8e5eefff  com.apple.NetFS (6.0 - 4.0) <1581D25F-CC07-39B0-90E8-5D4F3CF84EBA> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff8f7b0000 -     0x7fff8f7d8fff  libsystem_info.dylib (459) <B85A85D5-8530-3A93-B0C3-4DEC41F79478> /usr/lib/system/libsystem_info.dylib
    0x7fff907b5000 -     0x7fff907ecffb  com.apple.LDAPFramework (2.4.28 - 194.5) <4CFE8010-CE3F-35EC-90BA-529B74321029> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
    0x7fff90a69000 -     0x7fff90a6efff  com.apple.DiskArbitration (2.6 - 2.6) <0DFF4D9B-2AC3-3B82-B5C5-30F4EFBD2DB9> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff90f8f000 -     0x7fff90feeff3  com.apple.AE (681 - 681) <7F544183-A515-31A8-B45F-89A167F56216> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff91048000 -     0x7fff91061ff7  com.apple.CFOpenDirectory (10.10 - 187) <0ECA5D80-A045-3A2C-A60C-E1605F3AB6BD> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff91062000 -     0x7fff91068ff7  libsystem_networkextension.dylib (167.1.10) <29AB225B-D7FB-30ED-9600-65D44B9A9442> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff910b7000 -     0x7fff910bdfff  libsystem_trace.dylib (72.1.3) <A9E6B7D8-C327-3742-AC54-86C94218B1DF> /usr/lib/system/libsystem_trace.dylib
    0x7fff91256000 -     0x7fff9125effb  libcopyfile.dylib (118.1.2) <0C68D3A6-ACDD-3EF3-991A-CC82C32AB836> /usr/lib/system/libcopyfile.dylib
    0x7fff9126b000 -     0x7fff912dafff  com.apple.SearchKit (1.4.0 - 1.4.0) <BFD6D876-36BA-3A3B-9F15-3E2F7DE6E89D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff91642000 -     0x7fff91644fff  com.apple.loginsupport (1.0 - 1) <35A2A071-606C-39A5-8C11-E4CAF98D934C> /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
    0x7fff9165b000 -     0x7fff91666ff7  libkxld.dylib (2782.1.97) <CB1A1B57-54BE-3573-AE0C-B90ED6BAEEE2> /usr/lib/system/libkxld.dylib
    0x7fff92049000 -     0x7fff92066ffb  libresolv.9.dylib (57) <26B38E61-298A-3C3A-82C1-3B5E98AD5E29> /usr/lib/libresolv.9.dylib
    0x7fff9222b000 -     0x7fff92230ffb  libheimdal-asn1.dylib (398.1.2) <F9463B34-AAF5-3488-AD0C-85937C81FC5E> /usr/lib/libheimdal-asn1.dylib
    0x7fff9242c000 -     0x7fff92457fff  com.apple.DictionaryServices (1.2 - 229) <6789EC43-CADA-394D-8FE8-FC3A2DD136B9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff92459000 -     0x7fff9245dfff  libsystem_stats.dylib (163.1.4) <1DB04436-5974-3F16-86CC-5FF5F390339C> /usr/lib/system/libsystem_stats.dylib
    0x7fff925a1000 -     0x7fff925aaff7  libsystem_notify.dylib (133.1.1) <61147800-F320-3DAA-850C-BADF33855F29> /usr/lib/system/libsystem_notify.dylib
    0x7fff925ab000 -     0x7fff925acfff  libSystem.B.dylib (1213) <DA954461-EC6A-3DF0-8551-6FC810627627> /usr/lib/libSystem.B.dylib
    0x7fff9267d000 -     0x7fff926c3ff7  libauto.dylib (186) <A260789B-D4D8-316A-9490-254767B8A5F1> /usr/lib/libauto.dylib
    0x7fff92a5a000 -     0x7fff92a6bfff  libcmph.dylib (1) <46EC3997-DB5E-38AE-BBBB-A035A54AD3C0> /usr/lib/libcmph.dylib
    0x7fff92a74000 -     0x7fff92aa4fff  libsystem_m.dylib (3086.1) <1E12AB45-6D96-36D0-A226-F24D9FB0D9D6> /usr/lib/system/libsystem_m.dylib
    0x7fff92ac6000 -     0x7fff92ac7fff  libDiagnosticMessagesClient.dylib (100) <2EE8E436-5CDC-34C5-9959-5BA218D507FB> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff92ac8000 -     0x7fff92ad0fff  libsystem_platform.dylib (63) <64E34079-D712-3D66-9CE2-418624A5C040> /usr/lib/system/libsystem_platform.dylib
    0x7fff92ad1000 -     0x7fff92e67fff  com.apple.CoreFoundation (6.9 - 1151.16) <F2B088AF-A5C6-3FAE-9EB4-7931AF6359E4> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff92f65000 -     0x7fff92fdbfe7  libcorecrypto.dylib (233.1.2) <E1789801-3985-3949-B736-6B3378873301> /usr/lib/system/libcorecrypto.dylib
    0x7fff92ff6000 -     0x7fff93020ff7  libdispatch.dylib (442.1.4) <502CF32B-669B-3709-8862-08188225E4F0> /usr/lib/system/libdispatch.dylib
    0x7fff93054000 -     0x7fff9305cff7  com.apple.AppleSRP (5.0 - 1) <01EC5144-D09A-3D6A-AE35-F6D48585F154> /System/Library/PrivateFrameworks/AppleSRP.framework/Versions/A/AppleSRP
    0x7fff93090000 -     0x7fff93098fff  libsystem_dnssd.dylib (561.1.1) <62B70ECA-E40D-3C63-896E-7F00EC386DDB> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff93462000 -     0x7fff93473ff7  libsystem_coretls.dylib (35.1.2) <EBBF7EF6-80D8-3F8F-825C-B412BD6D22C0> /usr/lib/system/libsystem_coretls.dylib
    0x7fff934da000 -     0x7fff93502fff  libxpc.dylib (559.1.22) <9437C02E-A07B-38C8-91CB-299FAA63083D> /usr/lib/system/libxpc.dylib
    0x7fff9353f000 -     0x7fff9353ffff  com.apple.CoreServices (62 - 62) <9E4577CA-3FC3-300D-AB00-87ADBDDA2E37> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff93592000 -     0x7fff935c4ff3  com.apple.frameworks.CoreDaemon (1.3 - 1.3) <C6DB0A07-F8E4-3837-BCA9-225F460EDA81> /System/Library/PrivateFrameworks/CoreDaemon.framework/Versions/B/CoreDaemon
by danielwhite1
19. October 2014 16:15
 
Forum: XAMPP for Mac OS X
Topic: [SOLVED] Sendmail - XAMPP 1.8.3-5 OS 10.10 Yosemite - Dyld
Replies: 4
Views: 6112

Re: Sendmail.ini

Hi Jake,

I have exactly the same problem and I'm using OS X 10.8.4.

Have you solved the problem yet?

Kind regards
Stina
by stina77
12. September 2013 11:31
 
Forum: XAMPP for Mac OS X
Topic: Sendmail.ini
Replies: 1
Views: 2956

IMAP functions on Apache

Hi all,

I'm an italian student and I'm trying to develop a php mail client. It's from a long time that I still having issues to visualize the e-mail's list from my INBOX folder. Time ago i solved this problem by modify one file (I don't remember which one now) to allow imap functions to work from my Apache. Googling, I've found to modify something in php.ini or in sendmail.ini, i tried, but it was not what i need.

What happends:

It returns a white page. No errors. Nothing. It happens when I insert (by using a form) my username (xxx@xxx.xxx), password and click the button to send the informations to the imap server. I've checked the cryptography (SSL, ecc..) the port number, of course, but it seems to be all right.

I've simplified my code from OOP to theese few lines to make more simple for you to understand what I'm gonna do:

cnf.php - configurations file.

Code: Select all
<?

$username = "my@account.mail";
$password = "my_passw";
$server = "imap.provider.com";
$conn = @imap_open("{".$server.":port/cryptography}INBOX",$username, $password);

?>


index.php - it should shows the INBOX folder.

Code: Select all
<?php

set_time_limit(120);
@include 'cnf.php';
$headers = @imap_headers($conn);
$var = "0";

if ($headers == 0) {

  echo "Nessun messaggio in arrivo.<br />\n";

}

else {

  while (@list ($k, $val) = @each ($headers)) {

    $var = $var+1;
    $f_over = @imap_fetch_overview($conn, $var, 0);

    while(@list($k, $v) = @each($f_over)) {

      echo "<b>Sent by:</b> ".$v->from."<br>\n
            <b>Object:</b>" .$v->subject."<br>\n
            <b>Date:</b> ".$v->date."<br />\n
            <a href=\"show.php?id=".$var."\">Read</a> ::                               // don't care about this
            <a href=\"delete.php?id=".$var."\">Delete</a><br /><br />\n";       // don't care about this too

    }

  }

}

@imap_close($conn);

?>


More informations:

I have the latest version of xampp;
Xampp is running on Windows 8 Professional 64;
I'm developing using PHP5;
I'm testing with my gmail's account;



Hope theese informations are sufficient.

Thank you. Have a nice evening.
by andreagrimandi
06. January 2013 21:19
 
Forum: XAMPP for Windows
Topic: IMAP functions on Apache
Replies: 5
Views: 2856

[SOLVED]eternal SENDMAIL problem

hello
i use since years xampp and now and then i have tried to setup the sendmail (i need to test some things with my local wordpress installation)
every time i tried several code i found on internet bu t i never can get to make it work
none at all iuse gmail account and set the configuration i have found on several site (windows xp and xampp 1.7)
here is

sendmail.ini:
logfile "C:\xampp\sendmail\sendmail.log"
account Gmail
tls on
tls_certcheck off
host smtp.gmail.com
from name.surname@gmail.com
auth on
user name.surname@gmail.com
password mypassword
port 587
account default : Gmail

php.ini ( i have modified and uncommented some lines):
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.gmail.com
; http://php.net/smtp-port
smtp_port = 587

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = name.surname@gmail.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = Off

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log = "C:\xampp\php\logs\php_mail.log"



USED THE UPDATE OF SENDMAIL
FILL THE FILED OF THE NEW sendamil.ini file
php.ini ok like it was
it works!
by stefanocps
23. July 2012 15:51
 
Forum: XAMPP for Windows
Topic: [SOLVED]eternal SENDMAIL problem
Replies: 1
Views: 1461

Re: Sending Mail from an Internal LAN - Any Advice? [Solved]

Excruciatingly excellent!

One footnote:

I found that I do not necessarily need this in sendmail.ini:

force_sender=username@mydomain.com

You can leave that commented out and the emails have the correct sender address when coming from the application...

Cool stuff!!

T.
by tweezer
11. July 2012 15:04
 
Forum: XAMPP for Windows
Topic: Sending Mail from an Internal LAN - Any Advice? [Solved]
Replies: 5
Views: 3837

SOLVED: Sending Mail from an Internal LAN - Any Advice

Thanks for your advice Jon. It works now.

I looked at some other stuff out there on this topic, and did the below steps with my setup. Note that I use google apps as my email service provider. That is, email to user@mydomain.com goes to gmail and is handled there.

Edited the php.ini file as follows:

Under the [mail function] area:
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.gmail.com
; http://php.net/smtp-port
smtp_port = 587

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

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

The I edited the sendmail.ini file as follows:

smtp_server=smtp.gmail.com

smtp_port=587

default_domain=mydomain.com

auth_username=username@mydomain.com
auth_password=xxxxxxxx

force_sender=username@mydomain.com

hostname=mydomain.com

STOPPED AND RESTARTED APACHE!!!

Then I used the test php script I found here: http://www.daniweb.com/web-development/php/threads/347696/sending-email-from-localhost-in-xampp-windows

And it worked! :D

It also works for my applications.

Thanks again,
T
by tweezer
11. July 2012 13:56
 
Forum: XAMPP for Windows
Topic: Sending Mail from an Internal LAN - Any Advice? [Solved]
Replies: 5
Views: 3837

Re: MySQL is not running! [Solved]

Then you should by all means read my page on XAMPP security. Bear in mind that XAMPP was not built 'hardened', but was created as a development tool. Hence, you are on your own when it comes to security (as I was). I have covered most things other than PHP & MySQL hardening (complete topics of their own).

http://bravo.newnetenterprises.com/word ... -security/

I strongly caution you against setting up a public mailserver, unless you feel up to an additional major security challenge. But you are going to do what you will. Most ISP's have mailservers (SMTP) you can use. You don't need a mailsever to do 'sendmail' with PHP or Perl based scripts. XAMPP has a 'fake sendmail' for Windows included as a stand-in for the Linux/Unix server sendmail utility. The reason for this caution on mailservers is 'open mail relays'.

Lastly, 'PHP safe mode' is deprecated so don't concern yourself with that.

I have to say that if you didn't know what an FTP server was - there's a BIG learning curve ahead.

Good Luck with your project
8)
by JonB
23. June 2012 22:54
 
Forum: XAMPP for Windows
Topic: MySQL is not running! [Solved]
Replies: 7
Views: 9105

Re: Debugging email connection - SOLVED

SOLVED

For anyone out there with a similar problem I have managed to come up with a solution - this works.

php.ini

Code: Select all
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = mail.there.com
; http://php.net/smtp-port
smtp_port = 25

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

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = on

; Log all mail() calls including the full path of the script, line #, to address and headers
mail.log = "C:\xampp\php\logs\php_mail.log"



sendmail.ini
Code: Select all
smtp_server=mail.there.com
; smtp port (normally 25)

smtp_port=25

; SMTPS (SSL) support
;   auto = use SSL for port 465, otherwise try to use TLS
;   ssl  = alway use SSL
;   tls  = always use TLS
;   none = never try to use SSL

smtp_ssl=auto

; the default domain for this server will be read from the registry
; this will be appended to email addresses when one isn't provided
; if you want to override the value in the registry, uncomment and modify

; default_domain=localhost

; log smtp errors to error.log (defaults to same directory as sendmail.exe)
; uncomment to enable logging

error_logfile=error.log

; create debug log as debug.log (defaults to same directory as sendmail.exe)
; uncomment to enable debugging

debug_logfile=debug.log

; if your smtp server requires authentication, modify the following two lines

auth_username=me@bthere.com
auth_password=xxxxx

; if your smtp server uses pop3 before smtp authentication, modify the
; following three lines.  do not enable unless it is required.

pop3_server=mail.there.com
pop3_username=me
pop3_password=xxxxxx
; force the sender to always be the following email address
; this will only affect the "MAIL FROM" command, it won't modify
; the "From: " header of the message content

force_sender=me@bthere.com

; force the sender to always be the following email address
; this will only affect the "RCTP TO" command, it won't modify
; the "To: " header of the message content

; force_recipient=

; sendmail will use your hostname and your default_domain in the ehlo/helo
; smtp greeting.  you can manually set the ehlo/helo name if required

hostname=localhost



php code:
Code: Select all

$email_to = 'you@here.com';
$name=$row['name'];
$email=$row['email'];
$phone=$row['mobtel'];
$email_subject = 'Feedback from website';
$headers = 'From: me@there.com\r\n';

$message='Name:  ' .$name. "\r\n". 'Email:  ' .$email. "\r\n". 'Phone:  ' .$phone;


$sent = mail($email_to, $email_subject, $message, $headers);

 
 if($sent)
 {print "Your mail was sent successfully"; }
 else
 {print "We encountered an error sending your mail"; }


by Hamish
26. April 2012 12:43
 
Forum: XAMPP for Windows
Topic: Debugging email connection
Replies: 1
Views: 1959

Debugging email connection

Hi,

I am using XAMPP V 1.7.7; Control Panel 3; Windows 7, Service Pack 1.

I am trying to set up an email connection using 'sendmail' - I have read and carried out all the advice contained in 'sendmail-solved' and am now at the point where everything is finally working - except I now get an entry in the Debug log:

12/04/23 21:10:55 ** From address not verified - see http://www.btyahoo.com/verify<EOL>

This is the code and set-up so far:

php.ini:

Code: Select all
[mail function]
; For Win32 only.
; http://php.net/smtp
 SMTP = mail.btinternet.com
; http://php.net/smtp-port
smtp_port = 25

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

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = Off

; Log all mail() calls including the full path of the script, line #, to address and headers
mail.log = "C:\xampp\php\logs\php_mail.log"



sendmail.ini:
Code: Select all
smtp_server=mail.btinternet.com

; smtp port (normally 25)

smtp_port=25

; SMTPS (SSL) support
;   auto = use SSL for port 465, otherwise try to use TLS
;   ssl  = alway use SSL
;   tls  = always use TLS
;   none = never try to use SSL

smtp_ssl=auto

; the default domain for this server will be read from the registry
; this will be appended to email addresses when one isn't provided
; if you want to override the value in the registry, uncomment and modify

; default_domain=localhost

; log smtp errors to error.log (defaults to same directory as sendmail.exe)
; uncomment to enable logging

error_logfile=error.log

; create debug log as debug.log (defaults to same directory as sendmail.exe)
; uncomment to enable debugging

debug_logfile=debug.log

; if your smtp server requires authentication, modify the following two lines

auth_username=someone@btinternet.com
auth_password=******

; if your smtp server uses pop3 before smtp authentication, modify the
; following three lines.  do not enable unless it is required.

;pop3_server=
;pop3_username=
;pop3_password=
; force the sender to always be the following email address
; this will only affect the "MAIL FROM" command, it won't modify
; the "From: " header of the message content

force_sender=someone@btinternt.com

; force the sender to always be the following email address
; this will only affect the "RCTP TO" command, it won't modify
; the "To: " header of the message content

force_recipient=

; sendmail will use your hostname and your default_domain in the ehlo/helo
; smtp greeting.  you can manually set the ehlo/helo name if required

hostname=



php code:
Code: Select all
<?php   




$email_to = "someone@btinternet.com";
$name=$row['name'];
$email=$row['email'];
$phone=$row['mobtel'];
$email_from = 'someone@btinternet.com';
$email_subject = "Feedback from website";

$message=("Name:  ").$name. ("\r\n") . ("Email:  ") .$email . ("\r\n") . ("Phone:  ") .$phone;


$sent = mail($email_to, $email_subject, $message);


?>





The queston I ask is - the 'from address' is correct because it is my own email address. So what is happening?

I would appreciate suggestions.

Regards,

'H'
by Hamish
23. April 2012 22:14
 
Forum: XAMPP for Windows
Topic: Debugging email connection
Replies: 1
Views: 1959

Re: sending and receiving mail via Thunderbird

With sendmail, drop the solved part in the search and only search in the XAMPP for Windows forum in English.
The 'How To Search' announcement may help:
viewtopic.php?f=16&t=32670

The same applies to MercuryMail - try a forum search as this has been discussed many times and if I recall correctly there is even a step by step.

I don't know anything about Thunderbird except it is an email client.
The setting for smtp and pop would be the same as you setup in MercuryMail, I assume.

MercuryMail have a community forum...
http://community.pmail.com/forums/defau ... ?GroupID=7
http://community.pmail.com/forums/9/ShowForum.aspx

...and the documentation in the \xampp\MercuryMail\man-461.pdf will be very helpful for learning the ropes.

You may also have to check with your ISP that will allow you to send email from your PC or you will just be going round in circles trying to get past your ISP's blocked ports.

Good luck. :)
by Sharley
31. March 2012 08:56
 
Forum: XAMPP for Windows
Topic: sending and receiving mail via Thunderbird
Replies: 4
Views: 3158

Re: sending and receiving mail via Thunderbird

Sharley,

Forgive my ignorance. I have taken your advice, by reading all sendmail solved posts, but the only relevant post relates to using gmail as an smtp server, so I followed it to the letter, but failed.
I believe I have set up mercury mail correctly when using Thunderbird as an email program.
I believe my issue is unique, could you provide me with step by step instructions on how to resolve mail to go to user@mydomain and mail to be sent from Thunderbird as user@mydomain.com

I appreciate your time, I will follow your instructions to the letter.
Thankyou in advance
by rubioberry
31. March 2012 07:03
 
Forum: XAMPP for Windows
Topic: sending and receiving mail via Thunderbird
Replies: 4
Views: 3158

Re: sending and receiving mail via Thunderbird

You save the php.ini file and restart Apache after editing.

You then need to change the settings in the \xampp\sendmail\sendmail.ini file and a forum search for sendmail solved will give you some useful indicators for sending from a php script.

For sending from an email program from your LAN then you need to configure Mercury Mail.

Be aware that most ISPs do not allow this because of spammers having their IP's black listed, much the same reason as there is no need to use your real domain name in these forums.


Read the forum 'How to Post' announcements:
viewtopic.php?f=16&t=48331
by Sharley
31. March 2012 04:37
 
Forum: XAMPP for Windows
Topic: sending and receiving mail via Thunderbird
Replies: 4
Views: 3158

Re: Send e-mail not working

See if your solution is within these forum search results for sendmail solved

Or in these for sendmail without the solved added.

Good luck. :)
by Sharley
27. March 2012 22:22
 
Forum: XAMPP for Windows
Topic: Send e-mail not working
Replies: 11
Views: 12193

Re: SMTP, PHP issue help i am a noob at this.

You may find a solution if you do an advanced forum search for sendmail solved in the XAMPP for Windows English forum, you could also use my name Sharley in the Author box as it may help to reduce the number of posts to read.

You will find many solutions especially if you read the latest posts first as it is recommended that you download and replace the sendmail that came with the XAMPP 1.7.7 release if you need to use SSL/TLS.

Using Mercury Mail is not recommended for your intended purpose of sending emails from within a PHP script.

Good luck. :)


New users may find self help by reading these pages:

readme_en.txt file in the xampp folder.

http://www.apachefriends.org/en/xampp-windows.html
http://www.apachefriends.org/en/faq-xampp-windows.html

Some useful reading that may help you help us to find suitable solutions:
viewtopic.php?f=16&t=48331
viewtopic.php?f=16&t=32670
by Sharley
27. January 2012 01:08
 
Forum: XAMPP for Windows
Topic: SMTP, PHP issue help i am a noob at this.
Replies: 1
Views: 1564
Next

Return to advanced search