| Send an email in Joomla! 1.5 |
| Written by Kenneth Crowder | ||||
| Sunday, 10 August 2008 13:31 | ||||
|
We will be using the sendMail() method inide the JUtility Class. Let's look at the function itself: function sendMail($from, $fromname, $recipient, $subject, $body, $mode=0, $cc=null, $bcc=null, $attachment=null, $replyto=null, $replytoname=null ) We should take a look at each parameter that this function accepts and explain a little further. $from: This is the the email address that the email will look like it is coming from. Now that you know how that works, let's look at an example! $from = 'admin@somewhere.com'; Believe it or not kids, that's it!
MORE INFO: sendMail() Kenneth Crowder has been involved in the Joomla! Community since the days of Mambo. He has volunteered many hours to help out the Open Source Project. He is considered an expert in all things related to Joomla!. He was a Technical Reviewer for Joomla! A Users Guide, as well as another book currently in the editing phase. Learn more about Ken.
Set as favorite
Bookmark
Email This
Hits: 1290 Trackback(0)
Comments (1)
![]()
Nuno
said:
|
|
Parece-me muito bem! [Portuguese translation: "It seems to me very well" - Kenneth] |
|
|
report abuse
vote down
vote up
|

