Jump to content

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


geroido

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 = [email protected]

 

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.