By asghar on
Hi
I am using drupal mail module and i want when i send an email it will be send via localhost. Simply i want send mail from local host
what configuration i have to do in wamp . Thanks
Edited by: VM; Moved to appropriate forum
Comments
heya open your php.ini file
heya open your php.ini file and locate the [mail function]
in there edit the details for your smtp and sendmail functions note that if they have ; in front of them then they are remmed out so you will need to remove these yourl need to reboot for the changes to take effect
hope that helps
what to do?
Hi
i have done these setting in php.ini
; For Win32 only.
SMTP = smtp.gmail.com
smtp_port = 465
; For Win32 only.
sendmail_from = muhammadasgharkhan420@gmail.com
but it is not working now i what to do?
the smtp port is wrong should
could also be gmail is requiring a authentication for mail being sent and if i recall correctly that wont work with the mail() function have you got any other mail accounts you could use for the smtp part for a test ?
after a quick search you could try this
http://digiex.net/networking/544-configuring-php-under-windows-use-gmail...
I did this in my
I did this in my php.ini:
You will have to create the mail address (in my example: wamp@examplesite.com) first, and use the username and password you get from that.
Contact me to contract me for D7 -> D10/11 migrations.
..
for Wamp servers I find more straightforward to use an external smtp server
check out these modules
http://drupal.org/project/phpmailer
http://drupal.org/project/smtp
Not Workinh
Hi
SMTP module is not working correctly .An error is coming such as
Unable to send e-mail. Please contact the site administrator if the problem persists.
i enter the following insturction in the SMTP module
Turn this module on or off: on;
SMTP server: smtp.gmail.com
SMTP port: 465(first tried this after i have tried 587)
E-mail from address: my_gmail_account@gmail.com
E-mail from name: my_gmail_account@gmail.com
Send test e-mail:my_yahoo_account@yahoo.com
and mail is also not send to my account why?
You are probably better off
You are probably better off starting a thread in the issue queue for that module.
Contact me to contract me for D7 -> D10/11 migrations.
..
sorry, that was my workaround whenever I needed a quick Wamp setup on a new PC and alway has worked for me
having troubles with that module is a topic for its issue queue and won't lead you to solve your problem as a quick solution, since your problem is actually a configuration problem
try to set up your local mail server maybe?
=-=
one can set up a mail server which doesn't come as part of WAMP.
XAMPP
indeed, I use Mercury, which comes with XAMPP, even when I rather use Wamp
I wrote a short post on how to do this
A while ago I wrote this to solve this issue and send mail from your google account.
How to setup WAMP to send emails over the Gmail smtp
Hope this helps