Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Sending Authorised Mail Using Imap_mail Function, Mailing through imap_mail().
spotok
post Feb 9 2005, 09:37 AM
Post #1


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 15
Joined: 19-November 04
Member No.: 1,425



hi,
if you have an IMAP account then you can send the mail using the imap_mail() function of php. it is similar to mail() function but is an authorative way.. because your email account will require authorisation while sending an email

here goes an example..


==================================


imap_mail
(PHP 3>= 3.0.14, PHP 4 , PHP 5)

imap_mail -- Send an email message
Description
bool imap_mail ( string to, string subject, string message [, string additional_headers [, string cc [, string bcc [, string rpath]]]] )


This function allows sending of emails with correct handling of Cc and Bcc receivers. Returns TRUE on success or FALSE on failure..

The parameters to, cc and bcc are all strings and are all parsed as rfc822 address lists.

The receivers specified in bcc will get the mail, but are excluded from the headers.

Use the rpath parameter to specify return path. This is useful when using PHP as a mail client for multiple users.

================================
Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post Feb 9 2005, 01:30 PM
Post #2


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411
myCENTs:84.36



Can you elaborate on that a little bit ? i.e. posting a working example here would be a lot more helpful
Thanks smile.gif
Go to the top of the page
 
+Quote Post
Houdini
post May 26 2006, 05:35 PM
Post #3


Super Member
Group Icon

Group: Members
Posts: 572
Joined: 25-April 05
From: Nashville Tennessee
Member No.: 4,340



I am kind of really confused with this 'tutorial'. miCRoSCoPiC^eaRthLinG is correct in pointing out that it would at least help to provide a real example. This is not a tutorial but merely useless info that could be gotten by going to the PHP:Manual to see this;
QUOTE
imap_mail -- Send an email message
Description
bool imap_mail ( string to, string subject, string message [, string additional_headers [, string cc [, string bcc [, string rpath]]]] )
This function allows sending of emails with correct handling of Cc and Bcc receivers. Returns TRUE on success or FALSE on failure..
The parameters to, cc and bcc are all strings and are all parsed as rfc822 address lists.
The receivers specified in bcc will get the mail, but are excluded from the headers.
Use the rpath parameter to specify return path. This is useful when using PHP as a mail client for multiple users.
Here is the link to the above quotes from the manual Function imap_mail()Note that I removed the whitespace in the actual manual and summed up the (tutorial) in one fell swoop because I RTFM and refer to it often. This is not a tutorial at all, and I just had to get that off my mind. I do suppose that by now the author that provided this 'tutorial' no longer is a member and if so maybe they would show the new powers of imap_mail() vice mail()
This post or tutorial is almost verbatim from the PHP manual, if the user is not already gone or banned they should be for that alone. IMHO

This post has been edited by Houdini: Jun 30 2006, 06:32 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Preventing Spam When Using Php's Mail Function(6)


 



- Lo-Fi Version Time is now: 5th December 2008 - 01:02 PM