Solved

In Wamp server send smtp email to Rackspace mail from php code

Posted on 2015-02-18
5
326 Views
Last Modified: 2015-02-19
running WAMP server on win7 pro. I need a simple, php smtp email function to send a user their user id and password through our rackspace mail account, when they click on a "Forgot Login" button. I have the ssl and auth info from rackspace and I have the users info from our mysql user table. Everything I've seen as open source so far seems like much more than I need.
0
Comment
Question by:jsgould
  • 3
  • 2
5 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
WAMP server does not include a SMTP server so you can't use the built-in 'mail()' function in PHP.  You can use PHPMailer which can connect to a remote mail server with a login.  It may look like a lot but there is no 'simple' way to do it.  Click on "Download ZIP" on this page: https://github.com/PHPMailer/PHPMailer   After you understand how it works, there are only 3 or 4 files that you need for your own use.  Most of the files are tests and examples.
0
 

Author Comment

by:jsgould
Comment Utility
Thank you. I understand all of that.
the link you provided just lists off a list of various downloads, which isn't very helpful to a newbie. What would be helpful is there a zip that contains the files that are needed (smtp, phpmailer, pear etc..), or a list of files that are required, such as
class.phpmailer.php, class.smtp.php, etc... For something that supposedly is the most used php mailer with 9+ million users getting the basic info seems a bit kludgey.
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
getting the basic info seems a bit kludgey
No argument there.  But since it is Open Source and not commercially supported, that's not unusual.  But I did say...

Click on "Download ZIP"   Install (unzip) it into directories in your web server.  Go thru the examples until you understand what you need.  This is not going to be an instant solution.
0
 

Author Closing Comment

by:jsgould
Comment Utility
Apologize for whining to you. I'll follow ur advice and labor through it. Thanks
0
 
LVL 82

Expert Comment

by:Dave Baldwin
Comment Utility
You're welcome, it can be a pain when you first use it.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I didn’t use eM Client for long when I decided to swap to Outlook 2016. The reason for the switch is that it started asking for payment to continue some of its services after one month.   The problems I faced when I didn’t pay were:   I was not …
Are you using email marketing software? If not, you're missing out on effortless marketing and the reaching of desired conversion rates through email marketing software.
The viewer will learn how to count occurrences of each item in an array.
This Micro Tutorial will demonstrate the easy use of Gmail embedding images in your email so the recipient of your email can view them in context.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now