GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 18-Nov-2003, 23:13
asdfghjk asdfghjk is offline
New Member
 
Join Date: Nov 2003
Posts: 2
asdfghjk is an unknown quantity at this point
Question

Sending email from my computer


Hi,
I'm trying to make a newsletter and here is my code.
PHP Code:

<?
$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!
  #2  
Old 19-Nov-2003, 08:53
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
are you getting any error messages?

have you set the smtp value in php.ini to your isp's mail server?
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
  #3  
Old 19-Nov-2003, 17:54
asdfghjk asdfghjk is offline
New Member
 
Join Date: Nov 2003
Posts: 2
asdfghjk is an unknown quantity at this point
The error message I'm getting is:
Quote:
Warning: Failed to Receive in localhost
and it points to the line which has the mail() function.

Quote:
have you set the smtp value in php.ini to your isp's mail server?
How do I know what should it be set to?

Thank you very much!
  #4  
Old 19-Nov-2003, 19:59
BobbyDouglas's Avatar
BobbyDouglas BobbyDouglas is offline
Regular Member
 
Join Date: Aug 2003
Posts: 789
BobbyDouglas has a spectacular aura aboutBobbyDouglas has a spectacular aura about
Quote:
How do I know what should it be set to?

- My ISP shows that information on their web site. Look for incoming and outgoing mailservers.
__________________
Mr. Bob's Web Design - Tirelessly looking for ways to enhance the customer base of your business.
  #5  
Old 06-Jul-2004, 03:20
bearky bearky is offline
New Member
 
Join Date: Jul 2004
Posts: 11
bearky is on a distinguished road
u go to php.ini to search a word named "smtp", u then set your own smtp, eg: "smtp.tm.net.my" and send_mail from=" your username", after this,all go fine.
 
 

Recent GIDBlogA Week in Kuwait by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I detect flash version on my computer system? rhino1616 Graphics Forum 2 23-Oct-2003 09:14
Customising SMS sending script via e-mail gateway for multiple users jrobbio MySQL / PHP Forum 4 29-Sep-2003 12:49
send email via local intranet skyloon MySQL / PHP Forum 1 30-Jun-2003 07:15
Anyone recommend a free email service? Garth Farley Open Discussion Forum 14 19-Mar-2003 07:11
Have an email sent to you when Google crawls your PHP site jrobbio MySQL / PHP Forum 5 26-Feb-2003 22:38

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 08:27.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.