|
|
Sending Authorised Mail Using Imap_mail Function - Mailing through imap_mail(). | ||
Discussion by spotok with 2 Replies.
Last Update: May 26, 2006, 5:35 pm | |||
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.
================================
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.
================================
Wed Feb 9, 2005 Reply New Discussion
Can you elaborate on that a little bit ? i.e. posting a working example here would be a lot more helpful
Thanks
Thanks
Wed Feb 9, 2005 Reply New Discussion
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;
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()
[highlight=cyan]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[/highlight]
QUOTE
imap_mail -- Send an email messageDescription
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.
[highlight=cyan]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[/highlight]
Fri May 26, 2006 Reply New Discussion
Sending Mail Using Php's Mail() Function Send mail from any account 2 any account (8)
|
(9) Rapid HTML code generation using simple PHP avoid those repetative boring tasks....
|
Index




