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.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: 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.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: 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.