Page 1 of 1

Sending emails from my computer

Posted: Wed Nov 19, 2003 12:22 am
by asdfghjk
Hi,
I'm trying to make a newsletter and here is my code.

Code: Select all

<?
$Subject=" Newsletter";
$Message="Welcome!";
$From="Newsletter@mydomain.com";
$To="me@mydomain.com";
mail($To, $Subject, $Message, $From);
?>
I want it to send emails from my computer but it wouldn't work. What do I need to do? I have pear with PHP (PHP4.2.3) How do I use it?
Thank you very much!

Posted: Wed Nov 19, 2003 12:24 am
by infolock
i would suggest by starting with some mail scripts that have already been written . here is a good source to find them : http://www.evilwalrus.com

Posted: Wed Nov 19, 2003 3:16 am
by Nay
I want it to send emails from my computer but it wouldn't work.
I think it's more of the SMTP servers in the php.ini file or so, since you would use them to send e-mail.

-Nay

Posted: Wed Nov 19, 2003 9:12 am
by dev2761
Nay is absolutely right:

find the php.ini file depending on the version of windows you use.
goto in and around line n°: 595

[mail function]
; For Win32 only.
SMTP = smtp.your_isp.domain

; For Win32 only.
sendmail_from = your_address@your_isp.domain