sending email to/from wampserver
Posted by: rpjd (37.228.231.---)
Date: November 12, 2017 05:11PM

I am developing a customer registration system and have successfully sent an email to a gmail account, (yahoo failed). I want to validate the email by clicking a return link in the email. Can the wampserver receive emails as well as send them? If not, is their an alternative solution?

Options: ReplyQuote
Re: sending email to/from wampserver
Posted by: RiggsFolly (Moderator)
Date: November 18, 2017 05:33AM

Think about it!

Clicking a link in an email is not sending an email.

When you click a link you are calling a browser and launching a web page with a querystring containing a parameter.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

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 MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: sending email to/from wampserver
Posted by: Aq (182.185.152.---)
Date: October 17, 2018 02:03PM

I'm using wampserver and I want to send an email whenever a user tries to get registered. But "Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() " ..

I tried a few things to solve this error but no use...


NOTE: I've not installed any external mail server. Trying to send email from wamp

Thanks.



Edited 1 time(s). Last edit at 10/17/2018 02:04PM by Aq.

Options: ReplyQuote
Re: sending email to/from wampserver
Posted by: EndlessEncounters (160.32.217.---)
Date: October 17, 2018 02:15PM

Wampserver I beleive does not have a mail server built in, if you want to send/receive email I suggest for you to use your domain provider.

Registered: 11/21/2007 04:17AM



Edited 1 time(s). Last edit at 10/17/2018 02:20PM by EndlessEncounters.

Options: ReplyQuote
Re: sending email to/from wampserver
Posted by: RiggsFolly (Moderator)
Date: October 17, 2018 06:51PM

Hi,

The PHP mail() function does nto actually send email, it just passes an email to a mail server.
Windows does not have a mail server installed by default, but there are mail servers available, however it is not a simple job to install and manage one and even if you did, most real mail servers would reject mail coming form an unknown server.

I suggest you look at a PHP Library called phpMailer which can be found on github with a quick google search. This will allow you to use a google/yahoo/etc etc mail account to send mail.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.1.3 32bit & 64bit)
<Apache 2.4.29/2.2.31> <PHP 7.2/7.1/7.0/5.6/5.5/5.4> <MySQL 5.7.19/5.6.39/5.5.28>
<MariaDB 10.2.14> <phpMyAdmin4.8.1> <MySQL Workbench 6.3.10>

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 MySQL databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: sending email to/from wampserver
Posted by: Aq (103.255.5.---)
Date: October 17, 2018 07:51PM

Thanks.

Options: ReplyQuote


Sorry, only registered users may post in this forum.