gmail doesn’t allow you to use random From addresses. You have to add and validate the address you’d like to use in the gmail settings:
Settings -> Accounts -> Send mail as -> Add another email address you own
More Related Contents:
- Send email using the GMail SMTP server from a PHP page
- How to change from-address when using gmail smtp server
- How to check if an email address exists without sending an email?
- Sending email with PHP from an SMTP server
- Sending email with gmail smtp with codeigniter email library
- Failed to connect to mailserver at “localhost” port 25
- How to to send mail using gmail in Laravel?
- Unable to send email using Gmail SMTP server through PHPMailer, getting error: SMTP AUTH is required for message submission on port 587. How to fix?
- Send email from localhost running XAMMP in PHP using GMAIL mail server
- php.ini & SMTP= – how do you pass username & password
- PHPMailer – SMTP ERROR: Password command failed when send mail from my server
- problem with php mail ‘From’ header
- Using php’s swiftmailer with gmail
- SMTP Connect() failed. Message was not sent.Mailer error: SMTP Connect() failed
- PhpMailer vs. SwiftMailer? [closed]
- smtp configuration for php mail
- Expected response code 220 but got code “”, with message “” in Laravel
- Laravel mail: pass string instead of view
- PHP on GoDaddy Linux Shared trying to send through GMAIL SMTP
- PHP mail using Gmail
- trying to send mail using swift mailer, gmail smtp, php
- How to send email with SMTP in php
- php mail function: legitimate mails marked as spam by gmail and hotmail
- Given an email as raw text, how can I send it using PHP?
- phpmailer – The following SMTP Error: Data not accepted
- Phpmailer error “Could not instantiate mail function”
- How to send email from localhost WAMP Server to send email Gmail Hotmail or so forth? [duplicate]
- can’t send email to addresses at my own domain
- How to get email address from a long string
- how to send an HTML email with an inline attached image with PHP