Jump to content


Photo

Testing an email locally - Possible?


  • Please log in to reply
13 replies to this topic

#1 Love2c0de

Love2c0de

    Advanced Member

  • Members
  • PipPipPip
  • 366 posts
  • LocationThe Pleiades
  • Age:23

Posted 29 August 2013 - 05:41 PM

Good evening,

 

I seem to remember not being able to send emails on localhost.

 

Is there a possible workaround? I've got no internet at home and want to test an email script.

 

Kind regards,

 

L2c.



#2 kicken

kicken

    Wiser? Not exactly.

  • Gurus
  • 2,678 posts
  • LocationBonita, FL

Posted 29 August 2013 - 08:10 PM

You'd have to install some kind of smtp server or sendmail-like program. What OS are you using?
Recycle your old CD's, don't trash them!
Did I help you out?  Feeling generous? I accept tips via Paypal or Bitcoin @ 14mDxaob8Jgdg52scDbvf3uaeR61tB2yC7

#3 Love2c0de

Love2c0de

    Advanced Member

  • Members
  • PipPipPip
  • 366 posts
  • LocationThe Pleiades
  • Age:23

Posted 01 September 2013 - 08:15 AM

Good afternoon,

 

I'm on Windows 8 Pro.

 

Thank for your reply.

 

Kind regards,

 

L2c.



#4 jazzman1

jazzman1

    Advanced Member

  • Gurus
  • 2,454 posts
  • LocationMississauga, Canada

Posted 01 September 2013 - 02:47 PM

A virtualization software and running some Linux distros, it would be great for you.



#5 Irate

Irate

    Advanced Member

  • Members
  • PipPipPip
  • 358 posts
  • LocationHamburg, Germany
  • Age:17

Posted 01 September 2013 - 04:25 PM

Gmail has some SMTP solutions, you could try there. That'd of course require an internet connection, but so do the Linux distributions... well, generally everything with emails.
Quod placet mihi non placeat tibi. - What I think to be good must not always equal your perception of it.

I am not perfect. I try a lot with the code I provide and I don't guarantee for it to work as I have mostly no option to test it on my mobile phone. I do apologize for any inconvenience I caused, but if I do happen to have helped, liking my posts or marking them as to have solved or answered your question would be nice.

#6 Love2c0de

Love2c0de

    Advanced Member

  • Members
  • PipPipPip
  • 366 posts
  • LocationThe Pleiades
  • Age:23

Posted 01 September 2013 - 05:26 PM

Good evening,

 

I see so it is possible but would require some setup.

 

I've been developing live for the last few weeks but is handy to know when I need to go local!

 

Kind regards,

 

L2c.



#7 jazzman1

jazzman1

    Advanced Member

  • Gurus
  • 2,454 posts
  • LocationMississauga, Canada

Posted 01 September 2013 - 05:58 PM

Any previous experience with VM (virtual machines)?



#8 Love2c0de

Love2c0de

    Advanced Member

  • Members
  • PipPipPip
  • 366 posts
  • LocationThe Pleiades
  • Age:23

Posted 01 September 2013 - 06:09 PM

Good evening,

 

No never any experience with them.

 

Can you post a link to a tutorial/resource.

 

Searched Google but don't know what I'm specifically looking for.

 

Kind regards,

 

L2c.



#9 Irate

Irate

    Advanced Member

  • Members
  • PipPipPip
  • 358 posts
  • LocationHamburg, Germany
  • Age:17

Posted 01 September 2013 - 06:16 PM

Look for VirtualBox by Oracle, that's the one I use.
Quod placet mihi non placeat tibi. - What I think to be good must not always equal your perception of it.

I am not perfect. I try a lot with the code I provide and I don't guarantee for it to work as I have mostly no option to test it on my mobile phone. I do apologize for any inconvenience I caused, but if I do happen to have helped, liking my posts or marking them as to have solved or answered your question would be nice.

#10 Love2c0de

Love2c0de

    Advanced Member

  • Members
  • PipPipPip
  • 366 posts
  • LocationThe Pleiades
  • Age:23

Posted 02 September 2013 - 05:27 AM

Good morning,

 

I'm just thinking about my computer resources and I'm thinking I'm going to have to invest in a desktop to run all these extra programs.

 

Got many programs on a half decent laptop but it's starting to take it's toll in terms of performance. Would be very handy as I've spent the last 3 weeks in my new flat with no internet so it would have been very handy to have then as I was writing 2 email scripts at the time.

 

Can anyone link me to a page for cheap desktop computers and give me a price range of what's expensive and what's not as I'm a first time buyer.

 

I want add ons like Excel, Word, Outlook for work purposes and something which I can game on, but more importantly something I can develop on.

 

Thanks for your time.

 

Kind regards,

 

L2c.



#11 Irate

Irate

    Advanced Member

  • Members
  • PipPipPip
  • 358 posts
  • LocationHamburg, Germany
  • Age:17

Posted 02 September 2013 - 07:18 AM

Do you want to develop online? If so, your OS does not matter at all, it's probably just conventions you need to come up with - for example, I am using a school Mac right now with a Mac keyboard, and I find it quite unusual to type on it, I remember all they key codes but they're not even displayed on the keyboard.

Another thing is the locations of z and y, like, Germany uses qwertz, America uses qwerty, and I always get those two confused when I'm out of country.

 

If you are developing for operating systems like Windows, Linux, Ubuntu or MacOS, then I do actually recommend getting either Ubuntu or Linux, as those have the most support from developers for users (in my opinion, that is).

Also, Linux comes along with integrated Perl support, so if you want to use Perl without having to download anything, go for that.

 

In the end, it's all personal choice, and you are subject to your own preferences. I for example am so used to Windows systems that I wouldn't get anything else from Windows desktops.


Quod placet mihi non placeat tibi. - What I think to be good must not always equal your perception of it.

I am not perfect. I try a lot with the code I provide and I don't guarantee for it to work as I have mostly no option to test it on my mobile phone. I do apologize for any inconvenience I caused, but if I do happen to have helped, liking my posts or marking them as to have solved or answered your question would be nice.

#12 objnoob

objnoob

    Advanced Member

  • Members
  • PipPipPip
  • 332 posts

Posted 02 September 2013 - 07:26 AM

To test email locally, you need to locally install a mail server on your machine.

You can use Apache's James project for this.

 

http://james.apache.org/server/



#13 jazzman1

jazzman1

    Advanced Member

  • Gurus
  • 2,454 posts
  • LocationMississauga, Canada

Posted 02 September 2013 - 07:43 AM

You don't need to have internet at home neither а home network to send emails locally.

Just install VmWare or VM Virtual Box by Sun software as Irate mentioned above, then install two linux distros inside this virtual box. Make a connection between them and simulate a real network.

You can create samba, ftp, http, mail servers and so on, so on... for your training purposes. That's all and free of charge :)


Edited by jazzman1, 02 September 2013 - 07:43 AM.


#14 objnoob

objnoob

    Advanced Member

  • Members
  • PipPipPip
  • 332 posts

Posted 02 September 2013 - 07:49 AM

http://en.wikipedia.org/wiki/Loopback    way easier.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com