Jump to content

[SOLVED] Is it possible to use email facility when not actually online?


Recommended Posts

Hi

I am working on a project which is not online. I was wondering if I include an email confirmation aspect, will I be able to demonstrate it offline. My friends tell me that they were unable to do it unless you are actually operating online. Is this true?

There are this lines in php.ini

 

[mail function]
SMTP = localhost
smtp_port = 25

 

Add there the smtp of a remote server (ie. gmail). That's for windows only, but after those lines (in php.ini) are the lines for unix.

Yes I have found these lines in php.ini

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

 

May sound like a stupid question but I am a beginner. How do I go about getting the mail server address - simply contact my ISP or hotmail??

Or Google it. The problem you may have - especially using Gmail or whatever is that they require SMTP authentication. You cannot do this in your php.ini file. You will have to use PEAR::Mail or something similar like Swift Mailer.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.