aw2.wp_mail
This shortcode is used to send out emails. Internally aw2.wp_mail utilizes wp_mail function provided by WordPress, to ensure that any other WordPress plugin that uses or modifies wp_mail work with awesome studio framework.
attributes:
- part:
‘start’ (this is where you put JSON object to specify various email address) | ‘message’ (this is where you put your HTML message body of the mail) | ‘run’ when run is set to true only then email is sent, till then it is just assembled
Examples
[aw2.wp_mail part=start] { "to":"[email protected]", "from": "Awesome studio <[email protected]>", "subject":"New Interest for ASF" } [/aw2.wp_mail] [aw2.wp_mail part=message] <p class="none">Dear Admin,</p> <br/> <p class="none">You have an new newsletter request. Please check out the details below.</p> <div class="none"><strong>Email ID: </strong>[aw2.get request.newsletter|meta|email /]</div> <br/> <p class="none">Warm regards,</p> <p class="none">gAW Site</p> [/aw2.wp_mail] [aw2.wp_mail part=run][/aw2.wp_mail]
Other shortcodes
Conditionals (7)
Core (11)
- aw2.run
- aw2.return
- aw2.template
- aw2.module
- aw2.raw
- aw2.get
- aw2.set_array
- aw2.set
- aw2.echo
- aw2.shortcode
- aw2.part
CRM (1)
Database (1)
Design & JavaScript (3)
- aw2.enqueue
- aw2.client
- aw2.spa
E-commerce (1)
Excelsheet (1)
- excel.write_bulk
Form Handling (3)
- aw2.sideload
- aw2.save_form
- aw2.upload
Mailing & SMS (3)
- aw2.subscribe
- aw2.sms
- aw2.wp_mail
PDF (1)
Utility (6)
- aw2.register
- aw2.register_handler
- aw2.reset_password
- aw2.login_handler
- app.restore
- app.backup
Latest Blogs
And there’s one thing I keep noticing: Everyone's obsessed with growth hacks.