On Mon, Feb 23, 2009 at 10:18 AM, NoviceSortOf <dljonsson2...@gmail.com>wrote:
> > Note: Ubuntu Hardy development server. > > I've having problems getting Send_mail to work on my development > server. > It works fine on the production server but when I attempt to send on > the development server I get the following error. > > * /usr/lib/python2.5/smtplib.py in connect, line 296 > - 2 service not known > > Whats confusing for me * > > * Is Django is expecting me to have a SMTP server on my development > server? > or > * Can I via settings.py make these email send requests go through my > production server. > or > * Is there anyway to make a dummy send_mail simply save the contents > of the messages > locally to record what information is going into the forms somehow, > as I'm not sure if n > need SMTP on my development server or not. > > Please advise > > You do not need to have an SMTP server on your local box. You can set the appropriate values in settings to send mail via some other SMTP server: http://docs.djangoproject.com/en/dev/ref/settings/#email-host Alternatively, you can run a dummy SMTP server locally and avoid sending the emails at all: http://docs.djangoproject.com/en/dev/topics/email/#testing-e-mail-sending Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---