Send Mail with SMTP settings

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jatinmahajan
Forum Newbie
Posts: 2
Joined: Fri Dec 17, 2010 11:17 am

Send Mail with SMTP settings

Post by jatinmahajan »

i need to design a page where the forgotten password is sent by email to the user's email id already present in the database before. User just needs to enter his user login name and the matching password is fetched from the database and mail is sent to corresponding email id using the mail server installed on the system.could sumbody help me on making the same and the "smtp settings" .
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Send Mail with SMTP settings

Post by Jonah Bron »

Theoretically, your server should already have mail server installed. You can test it by running this on it:

Code: Select all

mail('youremail', 'test email', 'just a test email');
This question belongs in PHP - Code by the way.
jatinmahajan
Forum Newbie
Posts: 2
Joined: Fri Dec 17, 2010 11:17 am

Re: Send Mail with SMTP settings

Post by jatinmahajan »

Thanx a lot . ..well just started using the forums ... i'll do remember to be inline with TOPICS in future .
stalinantoni
Forum Newbie
Posts: 1
Joined: Sat Dec 18, 2010 1:11 am

Re: Send Mail with SMTP settings

Post by stalinantoni »

We can send the mail using smtp with an attachment.

Please check the following url for attachment mail

http://www.codesmokers.blogspot.com/
Post Reply