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

maori’s picture

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

asghar’s picture

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?

maori’s picture

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

jaypan’s picture

I did this in my php.ini:

SMTP = mail.examplesite.com
smtp_port = 26

; For Win32 only.
sendmail_from = wamp@examplesite.com
auth_username = _________ // username here
auth_password = _________ // password here

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.

arhak’s picture

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

asghar’s picture

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?

jaypan’s picture

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.

arhak’s picture

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?

vm’s picture

one can set up a mail server which doesn't come as part of WAMP.

arhak’s picture

indeed, I use Mercury, which comes with XAMPP, even when I rather use Wamp

petreej’s picture

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