Jump to content

Send() in Phpmailer


smiley_kool

Recommended Posts

hi all,

im not able to send a mail frm the live server.. can somebody help me.

im using phpmailer to send a mail. the code goes like this

 

require_once ('includes/common.php');

require_once ('classes/phpmailer.php');

 

$objmail = new PHPMailer();

$objmail->IsMail();

$objmail->IsHTML(true);

 

$mailcontent = array(

"from"    => '[email protected]',

"fromname" =>  'smiley',

"to"      => '[email protected]',

"cc"      =>  "",

"bcc"      =>  "",

"toname"  =>  '[email protected]',

"subject"  =>  'testing',

"body"    =>  'hi, how are you?'

);

$objmail->setMailInfo($mailcontent);

                $objmail->Send();

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/187085-send-in-phpmailer/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.