Defining address for sending email

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
Basit
Forum Newbie
Posts: 5
Joined: Thu Jul 23, 2009 1:14 am

Defining address for sending email

Post by Basit »

Hi to all :) ,
Hope everyone is fine.I need some help regarding PHP code.Actually i m trying to send email to a server.I want to know that how can i send email. Actually i want to define the address such as asterisk@mypbx.mydomain.com or 205@mypbx.domain.com.To be more precise i have a server where asterisk is installed the server address is 221.132.115.21 so first step is to define that address where my asterisk server is installed so my email client know where to send email. I know the mail function is use for sending email but how i define the address of the server using PHP this is the question.Please help me.I shall be very thankful to all of you .I have more to do but first i want to passed the first step that is defining the server address like above so please give me any guidance or help

Thanks in advance.
User avatar
akuji36
Forum Contributor
Posts: 190
Joined: Tue Oct 14, 2008 9:53 am
Location: Hartford, Connecticut

Re: Defining address for sending email

Post by akuji36 »

I believe you should just use a simple "insert into" statement using mysql.

Your data will be uploaded to your database. Follow this video link for more info:

http://www.phpvideotutorials.com/free.

Follow the links under old videos the next 2 lessons

after the cookies and sessions video.
Basit
Forum Newbie
Posts: 5
Joined: Thu Jul 23, 2009 1:14 am

Re: Defining address for sending email

Post by Basit »

Hi, :)
Hope you fine.Thanks for your reply that's really good for me ok i understood but can i connect to the server purely using PHP code if i m not using the database.Surely i suppose to use database because all my asterisk users are in database but i want to know if i can do it using purely PHP function.Again thanks for your help can Now can you tell me how parsing is done using PHP.Parsing(extract relevant information).Actually what i try to do is i have a email client and i use it to send voice email to asterisk.For this first i need to connect to the asterisk server means the server where asterisk is installed so the email that i send to asterisk server is not bounced back ok then i suppose to parse the email but i m not know how parsing is done using PHP or how to parse the email can you give me some guidance or a link as you provided in your first post that really a nice link.Thank you for your help :)
User avatar
akuji36
Forum Contributor
Posts: 190
Joined: Tue Oct 14, 2008 9:53 am
Location: Hartford, Connecticut

Re: Defining address for sending email

Post by akuji36 »

Here's a quick tutorial for you on sending php email.

http://www.learnphp-tutorial.com/Email.cfm

If I find a more helpful video tutorial I'll send it to you.

Rod

:D
Basit
Forum Newbie
Posts: 5
Joined: Thu Jul 23, 2009 1:14 am

Re: Defining address for sending email

Post by Basit »

Thanks for your help akuji36 :) :wink:
Post Reply