Send email from localhost: How To & failed.
Posted by: FuzMic (113.210.141.---)
Date: April 05, 2014 01:40AM

Hi friends

A year ago I tried to enable sending email from WAMP as localhost & failed. I just made another concerted effort but again failed. This is what I did and hope someone can give me a helping hand.

Since wamp does not come with sendmail.exe, a folder c:\wamp\sendmail was created and the following files as shown in DIR were copied into it .
Directory of c:\WAMP\sendmail
14-01-11 03:44 PM 1,112,064 libeay32.dll
18-06-11 01:10 AM 932,864 sendmail.exe
04-04-14 10:45 PM 2,123 sendmail.ini
14-01-11 03:44 PM 275,968 ssleay32.dll

The sendmail.ini in this folder is set as follows, the key lines are 5 (smtp_server, smtp_port, default_domain, auth_username & auth_password)
smtp_server=smtp.gmail.com
; smtp port (normally 25)
smtp_port=587
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=mynamegmail.com
auth_password=mypassword


In php.ini of c:\WAMP\bin\php\php5.4.3, php.ini, ONE line was altered, namely
sendmail_path ="\"c:\Wamp\sendmail\sendmail.exe\" -t"


Next a sendmail.php file is created in C:\wamp\www with the following content.
<?php
mail('receipient@yahoo.com','sample mail','sample content','From: sender@gmail.com');
?>


From the web browswer with localhost running, sendmail.php was run but the mail did not go through


Why did the localhost not send the mail as instructed in the sendmail.php? Any thing missing or wrong?
Is the sendmail.exe plus the others .dll wrong?
Is the entries in php.ini, sendmail.ini, sendmail.php wrong?
Please HELP.

PS
1 Port 25 & 465 have also been used, not successful
2 SSL_module of apache enabled even though my smtp.gmail.com require not authentication for sending.
3 All Gmail requirements checked. VB6 using CDO can send mail thru the smtp.gmail.com, thus all account details are correct.
4Telnet to smtp.gmail.com 465 goes through, ie blank command prompt, no message.

Scratching head for days again!!



Edited 2 time(s). Last edit at 04/05/2014 10:52AM by FuzMic.

Options: ReplyQuote
Re: Send email from localhost: How To & failed.
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: April 05, 2014 04:25PM

You are best to try on the fake sendmail site.


Personally I use hMailer from hMailServer.com, its a bit of a begger to setup but then it is a full email server.
If you think you are up to the job I would go for that.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Send email from localhost: How To & failed.
Posted by: FuzMic (113.210.142.---)
Date: April 06, 2014 01:57AM

Thanks. Will run along your suggestion.

PS Complete the installation of hMailserver on my localhost.
In the SMTP Delivery email: Localhost name FuzMic.com Remote hostname smtp.FuzMic.com port 25

With mail server run, type telnet smtp.FuzMic.com 25, connection failed.
Using Express Mail, default account smtp.FuzMic.com also cannot send mail

I think i am lost somewhere with DNS configuration. Please fish me out from the from the India Ocean. Cheers!



Edited 2 time(s). Last edit at 04/06/2014 10:05AM by FuzMic.

Options: ReplyQuote


Sorry, only registered users may post in this forum.