By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 924 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Sending e-mail via PHP

P: n/a
Hi

Is there possible to send e-mail from simple form when the server doesn't
have a domain name, and in the internet only can be seen using it IP address
? The mail() function will work correctly ?
And if not what would you suggest ?

Regards

Domin
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Domin wrote:
Hi

Is there possible to send e-mail from simple form when the server doesn't
have a domain name, and in the internet only can be seen using it IP address
? The mail() function will work correctly ?
And if not what would you suggest ?


There is a nice PHP PEAR class for sending mail using SMTP :)

http://pear.php.net/mail_mime

Regards,
Johan

Jul 17 '05 #2

P: n/a
Thank you.
I'll try it.

Domin
Jul 17 '05 #3

P: n/a
*** Domin wrote/escribió (Thu, 27 Nov 2003 07:39:42 +0100):
Is there possible to send e-mail from simple form when the server doesn't
have a domain name, and in the internet only can be seen using it IP address
? The mail() function will work correctly ?


All you need is a working SMTP server you have permission to use. It can be
a local server or a remote one. If you have a local server without a domain
name it won't be able to *receive* mail, but it'll certainly send it.

--
--
-- Álvaro G. Vicario - Burgos, Spain
--
Jul 17 '05 #4

P: n/a
Hello,

On 11/27/2003 04:39 AM, Domin wrote:
Is there possible to send e-mail from simple form when the server doesn't
have a domain name, and in the internet only can be seen using it IP address
You can, but many servers will reject or discard the messages you send.

? The mail() function will work correctly ?
And if not what would you suggest ?


You can always try this class that comes with a wrapper function named
smtp_mail() that acts exactly like the mail() except that it sends the
messages directly to a SMTP server of the recipients using the direct
delivery mode.

http://www.phpclasses.org/mimemessage
--

Regards,
Manuel Lemos

Free ready to use OOP components written in PHP
http://www.phpclasses.org/

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.