We can go with SMTP Server which is available at a remote location along with requiring information as Id-password and URL. Once you get all these details to share your information to send() method

BY Best Interview Question ON 13 Jan 2019

Example

$msg->send('smtp', "smtp.myisp.net", AuthUser=>"id", AuthPass=>"password" );