Guest User

Untitled

a guest
Feb 9th, 2018
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. <?php
  2. $to = "enrique@gmail.com";
  3. $subject = "My subject";
  4. $txt = "Hello world!";
  5. $headers = "From: webmaster@example.com" . "rn" .
  6. "CC: enriqueespinosaRE@outlook.com";
  7.  
  8. mail($to,$subject,$txt,$headers);
  9. ?>
  10.  
  11. ; configuration for fake sendmail
  12.  
  13. ; if this file doesn't exist, sendmail.exe will look for the settings in
  14. ; the registry, under HKLMSoftwareSendmail
  15.  
  16. [sendmail]
  17.  
  18. ; you must change mail.mydomain.com to your smtp server,
  19. ; or to IIS's "pickup" directory. (generally C:InetpubmailrootPickup)
  20. ; emails delivered via IIS's pickup directory cause sendmail to
  21. ; run quicker, but you won't get error messages back to the calling
  22. ; application.
  23.  
  24. smtp_server=smtp.gmail.com
  25.  
  26. ; smtp port (normally 25)
  27.  
  28. smtp_port=587
  29.  
  30. ; SMTPS (SSL) support
  31. ; auto = use SSL for port 465, otherwise try to use TLS
  32. ; ssl = alway use SSL
  33. ; tls = always use TLS
  34. ; none = never try to use SSL
  35.  
  36. smtp_ssl=auto
  37.  
  38. ; the default domain for this server will be read from the registry
  39. ; this will be appended to email addresses when one isn't provided
  40. ; if you want to override the value in the registry, uncomment and modify
  41.  
  42. ;default_domain=mydomain.com
  43.  
  44. ; log smtp errors to error.log (defaults to same directory as sendmail.exe)
  45. ; uncomment to enable logging
  46.  
  47. error_logfile=error.log
  48.  
  49. ; create debug log as debug.log (defaults to same directory as sendmail.exe)
  50. ; uncomment to enable debugging
  51.  
  52. ;debug_logfile=debug.log
  53.  
  54. ; if your smtp server requires authentication, modify the following two lines
  55.  
  56. auth_username=prueba@gmail.com
  57. auth_password=contraseña
  58.  
  59. ; if your smtp server uses pop3 before smtp authentication, modify the
  60. ; following three lines. do not enable unless it is required.
  61.  
  62. pop3_server=
  63. pop3_username=
  64. pop3_password=
  65.  
  66. ; force the sender to always be the following email address
  67. ; this will only affect the "MAIL FROM" command, it won't modify
  68. ; the "From: " header of the message content
  69.  
  70. force_sender=
  71.  
  72. ; force the sender to always be the following email address
  73. ; this will only affect the "RCTP TO" command, it won't modify
  74. ; the "To: " header of the message content
  75.  
  76. force_recipient=
  77.  
  78. ; sendmail will use your hostname and your default_domain in the ehlo/helo
  79. ; smtp greeting. you can manually set the ehlo/helo name if required
  80.  
  81. hostname=localhost:8000
  82.  
  83. [mail function]
  84. ; For Win32 only.
  85. ; http://php.net/smtp
  86. SMTP = smtp.gmail.com
  87. ; http://php.net/smtp-port
  88. smtp_port = 587
  89.  
  90. ; For Win32 only.
  91. ; http://php.net/sendmail-from
  92. sendmail_from ="prueba@gmail.com"
  93.  
  94. ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
  95. ; http://php.net/sendmail-path
  96. sendmail_path ="C:wampsendmailsendmail.exe -t"
Add Comment
Please, Sign In to add comment