geroido Posted September 2, 2008 Share Posted September 2, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/122361-solved-is-it-possible-to-use-email-facility-when-not-actually-online/ Share on other sites More sharing options...
JonnoTheDev Posted September 2, 2008 Share Posted September 2, 2008 As long as ther is a mail transfer agent on the box you are doing the demo or use an SMTP server address. If the box has no internet access, then no. Quote Link to comment https://forums.phpfreaks.com/topic/122361-solved-is-it-possible-to-use-email-facility-when-not-actually-online/#findComment-631812 Share on other sites More sharing options...
Fadion Posted September 2, 2008 Share Posted September 2, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/122361-solved-is-it-possible-to-use-email-facility-when-not-actually-online/#findComment-631814 Share on other sites More sharing options...
geroido Posted September 2, 2008 Author Share Posted September 2, 2008 Not sure I understand that. How would I add an SMTP server address(i.e. hotmail) and what does this mean. Does it mean that the sites emails would go through hotmail?? Confused Quote Link to comment https://forums.phpfreaks.com/topic/122361-solved-is-it-possible-to-use-email-facility-when-not-actually-online/#findComment-631819 Share on other sites More sharing options...
JonnoTheDev Posted September 2, 2008 Share Posted September 2, 2008 Yes, and see the above post Quote Link to comment https://forums.phpfreaks.com/topic/122361-solved-is-it-possible-to-use-email-facility-when-not-actually-online/#findComment-631821 Share on other sites More sharing options...
JonnoTheDev Posted September 2, 2008 Share Posted September 2, 2008 You should have an SMTP server address from your ISP also. You could use that. Quote Link to comment https://forums.phpfreaks.com/topic/122361-solved-is-it-possible-to-use-email-facility-when-not-actually-online/#findComment-631823 Share on other sites More sharing options...
geroido Posted September 2, 2008 Author Share Posted September 2, 2008 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?? Quote Link to comment https://forums.phpfreaks.com/topic/122361-solved-is-it-possible-to-use-email-facility-when-not-actually-online/#findComment-631824 Share on other sites More sharing options...
JonnoTheDev Posted September 2, 2008 Share Posted September 2, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/122361-solved-is-it-possible-to-use-email-facility-when-not-actually-online/#findComment-631825 Share on other sites More sharing options...
geroido Posted September 2, 2008 Author Share Posted September 2, 2008 Ok thanks for that.. Quote Link to comment https://forums.phpfreaks.com/topic/122361-solved-is-it-possible-to-use-email-facility-when-not-actually-online/#findComment-631827 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.