Does Gmail API Support Codeigniter Without SMTP? |
if your question is can you use gmail , say for using with a contact form , in a view on your web , so that you can get feedback /messages from web surfers, then the answer is yes.
The text entered into the form in my case , I use POST to a route, and the route then evokes a controller class and a method to do the processing . In the controller I make use of PHPMAiler library . There is a codeigniter class for using SMTP but to be honest couldn't get my head; i'm using PHPMailer and have had no problems. The section to use google in a contoller using PHPMAILer is along the lines of is along the lines of : Code: <?php namespace App\Controllers; Obviously those more clever than me won't do it directly in a controller but use a manager class or something then : Code: $mail->Host = 'smtp.gmail.com'; i put PHPMailer at web root then used in autoloader: Code: ublic $psr4 = [ if thats not your question can you elaborate. Just re-read your post - you don't want to use SMTP never mind my post might give option/ help other user ? |
Messages In This Thread |
Does Gmail API Support Codeigniter Without SMTP? - by edgematrix - 11-30-2021, 12:56 AM
RE: Does Gmail API Support Codeigniter Without SMTP? - by kenjis - 11-30-2021, 01:54 AM
RE: Does Gmail API Support Codeigniter Without SMTP? - by captain-sensible - 11-30-2021, 01:57 AM
RE: Does Gmail API Support Codeigniter Without SMTP? - by edgematrix - 12-08-2021, 04:59 AM
|