简体   繁体   中英

sending a form using phpmailer with google SMTP

I have a free user account on freehostia.com with SMTP off. I have a contact form in my site which I wish to mail on my email after submit. as SMTP off I wish to use phpmailer to acomplish this with google SMTP service. Is this possible?

It's not clear what you mean by "SMTP off". Do you mean they block outbound SMTP? or that there is no local mail server so you can't use PHP's mail() function?

Assuming the latter, look at the examples that are provided with PHPMailer .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM