php - send email from xampp? mercury mail server? relay mail server? -


i have been researching topic have been having difficulties send email using php script. when execute contactform.php executes send_form_email.php , says email has been sent. there nothing wrong scripts since had friend code test on server able submit form , generate email.

so went through steps of configuring sendmail.ini , php.ini believe configuring right according online tutorials. have tested on aws server on internet , has disabled firewall ports open , still unable send email through php scripts. post example of using configure .ini files.

so left creating mail server. not sure of options are. thinking relay mail server take on work load , not need go through hassle of deploying mail server. have mercury on xampp configure cannot find decent tutorial out there can me. here asking professional advice how should tackle issue. in gmail have enabled traffic using pop3, imap, , smtp can send , receive not sure can do. have never deployed email server looking easy use. small project going end doing away with.

  https://shellcreeper.com/enable-send-email-in-xampp/    php.ini from:    [mail function]     ; win32 only.     ; http://php.net/smtp     smtp = localhost     ; http://php.net/smtp-port     smtp_port = 25      ; win32 only.     ; http://php.net/sendmail-from     ;sendmail_from = postmaster@localhost      ; unix only.  may supply arguments (default: "sendmail -t -i").     ; http://php.net/sendmail-path     ;sendmail_path = "\"\xampp\sendmail\sendmail.exe\" -t"     to:    [mail function]     ; win32 only.     ; http://php.net/smtp     smtp = smtp.gmail.com     ; http://php.net/smtp-port     smtp_port = 587      ; win32 only.     ; http://php.net/sendmail-from     sendmail_from = {your gmail username}@gmail.com      ; unix only.  may supply arguments (default: "sendmail -t -i").     ; http://php.net/sendmail-path     sendmail_path = "\"\xampp\sendmail\sendmail.exe\" -t"      sendmail.ini     from:      smtp_server=localhost     smtp_port=25      to:     ;smtp_server=localhost     ;smtp_port=25     , add in bottom of sendmail,ini:      ;new config:     smtp_server=smtp.gmail.com     smtp_port=587     smtp_ssl=tls     error_logfile=error.log     pop3_server=     pop3_username=     pop3_password=     force_recipient=     hostname=      auth_username={your gmail username}@gmail.com     auth_password={your gmail password}     force_sender={your gmail username}@gmail.com 

you try smtp time being , use google mail send emails.... here's information on setting up:

  1. smtp server (i.e., outgoing mail): smtp.gmail.com

  2. smtp username: full gmail or google apps email address (e.g. example@gmail.com or example@yourdomain.com)

  3. smtp password: gmail or google apps email password

  4. smtp port: 465

  5. smtp tls/ssl required: yes

in order store copy of outgoing emails in gmail or google apps sent folder, log gmail or google apps email settings and: click on forwarding/imap tab , scroll down imap access section: imap must enabled in order emails copied sent folder.

https://www.digitalocean.com/community/tutorials/how-to-use-google-s-smtp-server


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -