email with attcahment in joomla code example
Example: email with attcahment in joomla
$from = '[email protected]';
$fromname = 'BIGSHOT Blog';
$recipient[] = '[email protected]';
$recipient[] = '[email protected]';
$subject = 'Want to learn about BIGSHOT Blog';
$body = 'Check us out!
';
$mode = 1;
$cc = '[email protected]';
$bcc[] = '[email protected]';
$bcc[] = '[email protected]';
$attachment[] = '/home/my_site/public_html/images/stories/food/coffee.jpg';
$attachment[] = '/home/my_site/public_html/images/stories/food/milk.jpg';
$replyto = '[email protected]';
$replytoname = 'NO REPLY - BIGSHOT Blog';
JUtility::sendMail($from, $fromname, $recipient, $subject, $body, $mode, $cc, $bcc, $attachment, $replyto, $replytoname);