Hey every body i m new in this forum........and i m using this code, but the prob. is if user want's to contact us as above code then he'll have to write there email id and password...the prob. is password can any one here tell me how can i use PHPMAILER code without using SMTPAUTH or PASSWORD thnx in advance..:)
i am new, i don't know how to send mail, as you said, i downloaded phpmailer inwhich there were some files so i did not know how to use, so just copy and paste your php code, then accures some errors
Warning: require(includes/class.phpmailer.php) [function.require]: failed to open stream: No such file or directory in D:\wamp\www\mail\mailer\email.php on line 11
Fatal error: require() [function.require]: Failed opening required 'includes/class.phpmailer.php' (include_path='.;C:\php5\pear') in D:\wamp\www\mail\mailer\email.php on line 11
Hi,
ReplyDeleteI tried ur code it is giving me following error
Message was not sent
Mailer Error: Language string failed to load: connect_host
please advice
Hi Rahul,
ReplyDeleteThank you for intimating me,
Just change the gmail smtp like:
$mailer->Host = 'smtp.gmail.com:587';
And at class.phpmailer.php file change the
public $SMTPAuth = true;
Then it will be work.
how to attach the doc file in this code?
ReplyDeletehey its still not working.its not connecting to smtp
ReplyDeleteHello, Anil
ReplyDeleteI am getting the error
SMTP Error: Could not authenticate. Message was not sent
Mailer Error: SMTP Error: Could not authenticate.
Hey every body i m new in this forum........and i m using this code, but the prob. is if user want's to contact us as above code then he'll have to write there email id and password...the prob. is password can any one here tell me how can i use PHPMAILER code without using SMTPAUTH or PASSWORD thnx in advance..:)
ReplyDeletei am new, i don't know how to send mail, as you said, i downloaded phpmailer inwhich there were some files so i did not know how to use, so just copy and paste your php code, then accures some errors
ReplyDeleteWarning: require(includes/class.phpmailer.php) [function.require]: failed to open stream: No such file or directory in D:\wamp\www\mail\mailer\email.php on line 11
Fatal error: require() [function.require]: Failed opening required 'includes/class.phpmailer.php' (include_path='.;C:\php5\pear') in D:\wamp\www\mail\mailer\email.php on line 11
please help me
thanks a lot!!!!!!!!!!!!!!!!!!!!!it worked super!!!!my 8 hours search came to end.....
ReplyDeleteThanks a lot.It working great.
ReplyDeleteI am using another SMTP provider.... I get the following error using PHP Mailer
ReplyDeleteMessage could not be sent.Mailer Error: The following From address failed: xxx@xxx.com
Can someone comment?