Search
 
SCRIPT & CODE EXAMPLE
 

PHP

email with attcahment in joomla

$from = 'admin@somewhere.com';
$fromname = 'BIGSHOT Blog';
$recipient[] = 'john@somewhere.com';
$recipient[] = 'jane@somewhere.com';
$subject = 'Want to learn about BIGSHOT Blog';
$body = '<p>Check us out!</p><p><a href="http://www.somewhere.com" target="_blank">http://www.somewhere.com</a></p>';
$mode = 1;
$cc = 'bob@somewhereelse.com';
$bcc[] = 'simon@somewhereelse.com';
$bcc[] = 'nick@somewhereelse.com';
$attachment[] = '/home/my_site/public_html/images/stories/food/coffee.jpg';
$attachment[] = '/home/my_site/public_html/images/stories/food/milk.jpg';
$replyto = 'no_reply@somewhere.com';
$replytoname = 'NO REPLY - BIGSHOT Blog';

JUtility::sendMail($from, $fromname, $recipient, $subject, $body, $mode, $cc, $bcc, $attachment, $replyto, $replytoname);
Comment

PREVIOUS NEXT
Code Example
Php :: identify the php function used to get values submitted through a form without using any database? 
Php :: php console lofarray values 
Php :: php base64 encode utf8 
Php :: twiml gather php 
Php :: check website ssl certificate using php openssl_x509_parse 
Php :: Two ways of assigning anonymous class to a variable 
Php :: auth guard (admin) is not defined laravel 8 
Php :: how to store api response to avariable in phpp 
Php :: login page php mysql check if user is verified in the database before user can be logged in 
Php :: create or update laravel 5.8 stackoverflow 
Php :: AUTO TRANSFER OF DATA FROM SYBASE TABLE TO PHPMYSQL TABLE 
Php :: Laravel You may use the sectionMissing directive to determine if a section does not have content: 
Php :: registration welcome email laravel 
Php :: php ctype float 
Php :: unlink() in php 
Php :: Returning JSON from a PHP Script 
Php :: push element in array php 
Php :: combine date time php 
Php :: php nested array 
Php :: php abstract class static method 
Php :: how to make a timer in php 
Php :: export txt php 
Java :: minecraft death counter 
Java :: how to get current date time in android 
Java :: lombok maven dependency 
Java :: java pause 
Java :: springboot starter jpa 
Java :: Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer 
Java :: how to remove all special characters from a string in java 
Java :: array to map java 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =