RSS

Configure WAMP for sending mail in remote mail server

10 Sep

This works for me and should work for you: Use Fake Sendmail and a webhost mail server (i.e. – Godaddy, 1and1, etc.).

1.) Download the sendmail zip and extract it to C:\Wamp\bin\sendmail (for purposes of this example). http://www.glob.com.au/sendmail/sendmail.zip

2.) Edit C:\wamp\bin\sendmail\sendmail.ini and set the following to your mail server’s requirements (mine are below):

smtp_server=mail.domainname.com
 smtp_port=25
 smtp_ssl=none
 ;default_domain=domainname.com
 auth_username=smtpuser@domainname.com
 auth_password=smtppassword
 ;pop3_server=
 ;pop3_username=
 ;pop3_password=
 force_sender= smtpuser@domainname.com
;force_recipient=
hostname=domainname.com

3.) Set the path of sendmail.exe in your php.ini file.


[mail function]
 ; For Win32 only.
 SMTP =

 ; For Win32 only.
 sendmail_from =

 ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
 sendmail_path = "C:\wamp\bin\sendmail\sendmail.exe -t"

4.) Restart Wampserver.

You might have success using Gmail, but there are a few extra tweaks to make it work. I prefer using the mail server of the webhost where I upload my code.

Advertisements
 
Leave a comment

Posted by on September 10, 2010 in PHP

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: