Jump to content
xisto Community
Sign in to follow this  
spotok

Sending Authorised Mail Using Imap_mail Function Mailing through imap_mail().

Recommended Posts

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 emailhere goes an example..==================================imap_mail(PHP 3>= 3.0.14, PHP 4 , PHP 5)imap_mail -- Send an email message Descriptionbool 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. ================================

Share this post


Link to post
Share on other sites

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;

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 Edited by Houdini (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.