1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Sending Emails through PHP

Discussion in 'PHP' started by Bhullarz, Sep 5, 2008.

  1. Bhullarz

    Bhullarz New Member

    Joined:
    Nov 15, 2006
    Messages:
    253
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    System Manager
    Home Page:
    Hi all ! I need help in sending emails through PHP. I want to send email to my website users. I have got the email id of all the users in MySQL table. I am retrieving those one by one. But the problem is Mail function of PHP is not sending mails to the users.
    Code:
    mail("Users' Email","subject of mail","content of mail","From:my email address");
    
    I am using a free webhost which has enabled the php mail function for free users.

    kindly guide me DO i need to setup anything extra for using this function. ?
    How can I use my GOOGLE account to sending mails through PHP ?

    Thanks in advance.
     
  2. XXxxImmortalxxXX

    XXxxImmortalxxXX New Member

    Joined:
    Jun 27, 2007
    Messages:
    569
    Likes Received:
    18
    Trophy Points:
    0
    ill post the e-mail script i use for my domain in a hour or two okay
     
  3. Bhullarz

    Bhullarz New Member

    Joined:
    Nov 15, 2006
    Messages:
    253
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    System Manager
    Home Page:

    I am waiting bro ! IT's been 2 days already.
     
  4. XXxxImmortalxxXX

    XXxxImmortalxxXX New Member

    Joined:
    Jun 27, 2007
    Messages:
    569
    Likes Received:
    18
    Trophy Points:
    0
    yeah sry i had to reupload my webiste
     
  5. Bhullarz

    Bhullarz New Member

    Joined:
    Nov 15, 2006
    Messages:
    253
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    System Manager
    Home Page:
    Is there anyone else, who can provide the solution ?
     
  6. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
  7. Lucysmith

    Lucysmith New Member

    Joined:
    Sep 23, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Advertising Services
    Location:
    uk
    Home Page:
    goto w3schools.com, yu will find your answer there
     

Share This Page