Emailing from localhost /confused

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Emailing from localhost /confused

Postby ElectrifiedBrain » 09. October 2011 12:16

I am trying to send an SMS alert to my phone from my computer (I'm signed up for unlimited SMS), and I read that all I have to do is send the alert to myphonenumber@mycarrier.com, which I know I can do from my regular email account because I just did. The thing is, I'm not sure if or how I can set up my local computer to send emails without using an email server like Mercury.

I did a search on this site for "+email +localhost" and got a whole bunch of entries, one of which I opened, and I looked up the site http://bravo.newnetenterprises.com/wordpress/?qa_faqs=using-email-with-php-in-xampp-for-windows. I'm confused, though, on what I'm supposed to do. I looked up C:\xampp\sendmail\sendmail.ini but didn't find any account entry, and in php.ini, I didn't find any [mail_function] entry. I added it and added the line sendmail_path = "\xampp\sendmail\sendmail.exe -t". I'm not currently getting any errors, but I'm getting a weird information loading (you can see it on my video at http://www.fileden.com/files/2010/3/9/2788777//information.wmv), and I'm not getting the email properly even though the script, as you can tell, says that the mail function returns true. I'll provide my php.ini and sendmail.ini code later if you guys need it; I would now but can't now because of the message size limit.
ElectrifiedBrain
 
Posts: 7
Joined: 31. March 2010 06:51

Re: Emailing from localhost /confused

Postby Sharley » 09. October 2011 12:37

We require your XAMPP version and your Windows Version to provide the correct version support - please read the following Announcements.
viewtopic.php?f=16&t=48331
viewtopic.php?f=16&t=32670


BTW, did any of the solutions offered in your last topic help with your issues as feed back is always welcome and helps others searching the forums for a solution that worked for similar issues?
viewtopic.php?t=47613

Thanks.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Emailing from localhost /confused

Postby ElectrifiedBrain » 09. October 2011 12:58

Sorry, it was 4am, and I was about to go to bed, so I didn't even think to look in the FAQ's to see what all I should post (it's 5am now, but I got back up because I forgot to do something).

I have Windows 7 home Premium and XAMPP version 1.7.4. I hope that helps.

As far as my last issue is concerned, I don't remember what I did last time to fix the problem, but I got the problem again today and restarted the computer, which seems to have fixed the problem. I'll post this information in my other post.
ElectrifiedBrain
 
Posts: 7
Joined: 31. March 2010 06:51

Re: Emailing from localhost /confused

Postby Sharley » 09. October 2011 16:54

You may need to download or create a php script that will send email and/or SMS (text messages - texting) using an Apache web server on Windows via sendmail and a web form.

These Google Search Results may help or use your own keywords.

This result looks interesting as it has a multi-page forum discussion with some very useful hints:
http://www.webdeveloper.com/forum/showt ... p?t=170285

A downloaded script may even have the instructions on how to setup the server settings or there may even be a tutorial of some kind to assist with setting up in those search results.

Just a point worth noting, If you setup to send an SMS via an email script, how do you intend to receive a reply without having a Mercury type email server?
Maybe some answers in the above search results as it may be possible to have the replies sent to your normal email address.


Note:
There appears to be a wordpress plugin that allows users to send SMS messages... it is open source, so perhaps install WordPress and find and install the plugin as this may make life a tad simpler. 8)


When you have found one or created the script then let me know back where you installed the script and I will attempt to help you configure sendmail and the php.ini file if required, which BTW should contain the [mail_function] at about line 1082 so it's a fair way down in the file...

...but the sendmail version is old in 1.7.4 and needs to be upgraded before it will authenticate when you send email - I will let you know how to do that one step at a time so as not to confuse you further. :wink:

Good luck with the research. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Emailing from localhost /confused

Postby ElectrifiedBrain » 10. October 2011 00:17

OK, well, I upgraded to 1.7.7 a little bit ago (about 7 or 8 hours after originally posting this), but everything here is still as true as it was before.

Sharley wrote:These Google Search Results may help or use your own keywords.


Well, like I said, I Googled it earlier but couldn't figure out exactly what I was supposted to do.

Sharley wrote:This result looks interesting as it has a multi-page forum discussion with some very useful hints:
http://www.webdeveloper.com/forum/showthread.php?t=170285


I actually looked at that one before coming here, but it was too confusing, at least at 4am. I'll look at it better now that I'm home from the store at 4pm.

Sharley wrote:Just a point worth noting, If you setup to send an SMS via an email script, how do you intend to receive a reply without having a Mercury type email server?


I don't. I'm just sending an alert to myself when someone fills out a form, but when I set the site up on a live server later, I will have an email account with the host.

Sharley wrote:When you have found one or created the script then let me know back where you installed the script and I will attempt to help you configure sendmail and the php.ini file if required, which BTW should contain the [mail_function] at about line 1082 so it's a fair way down in the file...


I was hoping to create it myself, but I'll take a look at the Wordpress thing through Google. As far as the [mail_function] thing goes, I did a ctrl+f thing in Notepad, and it didn't find the term at all.

Sharley wrote:...but the sendmail version is old in 1.7.4 and needs to be upgraded before it will authenticate when you send email - I will let you know how to do that one step at a time so as not to confuse you further. :wink:


Does the upgrade mean 1.7.7, since I upgraded to this version? If so, I would definitely like a clear list of instructions, preferably is a simple ordered list.

PS Is your name green because you're a mod, and is the url BBCode tag allowed only for mods and up?
ElectrifiedBrain
 
Posts: 7
Joined: 31. March 2010 06:51

Re: Emailing from localhost /confused

Postby ElectrifiedBrain » 11. October 2011 09:09

OK, I've decided to go with the Mercury mail server to send email because sending email my way seems very difficult if not impossible, but I can't figure out how to set up mail in Mercury. Do I have to have a hosted web site to be able to send the emails, so that I have an SMTP server I can log into? I've searched on Google to try to figure out how to set it up, but the instructions I followed didn't work.
ElectrifiedBrain
 
Posts: 7
Joined: 31. March 2010 06:51


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 56 guests