FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Function to send emails?
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Function to send emails? [message #165052] Wed, 20 April 2011 11:00 Go to next message
Dayo is currently offline  Dayo   Iraq
Messages: 101
Registered: April 2011
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
Can anyone point me to the relevant function I can use to send emails? I assume the application sends email notifications etc.

There are some likely rare but possible funky user conflicts in integrating that the admin will need to manually resolve.

Thanks
Re: Function to send emails? [message #165053 is a reply to message #165052] Wed, 20 April 2011 11:14 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
send_email() in iemail.inc.t.
Re: Function to send emails? [message #165054 is a reply to message #165053] Wed, 20 April 2011 11:23 Go to previous messageGo to next message
Dayo is currently offline  Dayo   Iraq
Messages: 101
Registered: April 2011
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
Thanks.

Wouldn't this have been loaded into the process somewhere before POST_TEMPLATE? Can I just include it directly?

Re: Function to send emails? [message #165057 is a reply to message #165054] Wed, 20 April 2011 11:37 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Templates that need it will load it. So, it may be included, buy you cannot count on it. Try:
fud_use('iemail.inc');
send_email($from, $to, $subj, $body);

Re: Function to send emails? [message #165059 is a reply to message #165057] Wed, 20 April 2011 11:56 Go to previous message
Dayo is currently offline  Dayo   Iraq
Messages: 101
Registered: April 2011
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
OK ... thanks
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: Help Needed - fud_user_reg class
Next Topic: JQuery Update
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Dec 16 21:21:51 EST 2017

Total time taken to generate the page: 0.00875 seconds