Search found 52 matches: sendmail

Searched query: +sendmail

Return to advanced search

Re: Need Help to Send Email with Attachments

Bob, sending file attachments in PHP is related to headers and mime content types.

You have already set up the TLS sendmail part of your requirement.

This Advanced email in PHP tutorial may help you greatly and page 5 starts the information for File Attachments with a script you can download, that I have not checked out:
http://sitepoint.com/article/advanced-email-php

The rest of the tut is also very useful and worth keeping a bookmark.

Go to this secure search engine and type in the keyword box how to send attachments in php mail for many useful results including the above tutorial:
https://ssl.scroogle.org/


Please let me know if you manage to get a handle on sending attachments via a php script.
Thanks and good luck.
by Izzy
14. January 2010 20:10
 
Forum: XAMPP for Windows
Topic: Need Help to Send Email with Attachments
Replies: 3
Views: 5215

Re: Having trouble setting up

If you still want to use the XAMPP mail facilities then you deed to configure the php.ini file and the sendmail.ini file to facilitate authentication.

This post has most of what you need even though the OP did not eventually get it to send mail, but that may have been an issue with his script and not with the configurations:
viewtopic.php?f=16&t=38648&p=154326

Let me know back if there is anything in the above link that you are concerned about.

These Forum Search Results have more on sendmail used in XAMPP.
by Izzy
03. January 2010 23:43
 
Forum: XAMPP for Windows
Topic: Having trouble setting up
Replies: 15
Views: 27333

Re: Sending email through PHP/XAMPP ... how is this set up?

sandyMN wrote:It also appears that I do not have a sendmail.log file. Maybe because no email was actually sent and the file wasn't created?
The sendmail.log would be created if the script you are using actually found sendmail and used it.

If sendmail fails to send the mail then it will create the sendmail.log file and give you feedback on the reason it failed to send.

So logically your script is not finding sendmail as your sendmail.ini file below looks to be in order and should function correctly.

Your sendmail.ini file is also currently setup to use TLS on port 465 but I notice that ComCast also uses port 587 instead of port 25 for sending SMTP without TLS, so it is possible to use either but not mixed - only use port 465 with tls entries and port 587 with no tls entries
Code: Select all
# A freemail service example
account Comcast
tls on
tls_starttls off
tls_certcheck off
host smtp.comcast.net
from [email@comcast.net]
auth on
port 465
user [my user name]
password [my password]

# Set a default account
account default : Comcast
You can obviously send and receive mail from your email client in the normal manner and sendmail when configured with your email credentials works in a similar manner to send the mail.
by Izzy
29. December 2009 05:13
 
Forum: XAMPP for Windows
Topic: Sending email through PHP/XAMPP ... how is this set up?
Replies: 10
Views: 22273

Re: Sending email through PHP/XAMPP ... how is this set up?

sandyMN wrote:Still not sending the emails. This is what I have in sendmail.ini (sensitive info is hidden):

# Example for a user configuration file

# Set default values for all following accounts.
defaults
logfile "C:\xampp\sendmail\sendmail.log"

# Mercury
account Mercury
host localhost
from postmaster@localhost
auth off

# A freemail service example
account Hotmail
tls on
tls_starttls off
tls_certcheck off
host smtp.mydomain.net
from [email@mydomain.com]
auth on
port 465
user [my user name]
password [my password]


# Set a default account
account default : Hotmail
Change the red entries:
to account default : Hotmail

and add this after tls on
Code: Select all
tls_starttls off

Any entries in the sendmail.log file in the sendmail folder?

You read my above comment about the [ ] brackets?
There should be no such brackets in any of the final settings.

This topic covered many issues that were finally solved by removing the [ ] brackets from around the OP's password:
viewtopic.php?f=16&t=37643
by Izzy
29. December 2009 02:42
 
Forum: XAMPP for Windows
Topic: Sending email through PHP/XAMPP ... how is this set up?
Replies: 10
Views: 22273

Re: Sending email through PHP/XAMPP ... how is this set up?

sandyMN wrote:I believe I need to specify my port, which is NOT port 25. Is that done somewhere in the sendmail.ini file as well?
Add port followed by the number after the auth on entry.
For example
Code: Select all
auth on
port 465

Remember that these [ ] brackets are only example containers and should never be included in any of the final configuration entries.
by Izzy
29. December 2009 02:19
 
Forum: XAMPP for Windows
Topic: Sending email through PHP/XAMPP ... how is this set up?
Replies: 10
Views: 22273

Re: Sending email through PHP/XAMPP ... how is this set up?

Look in \xampp\php for the php.ini file and open in your text editor.

Find this section
Code: Select all
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = Off

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log = "C:\xampp\apache\logs\php_mail.log"
Change it so it looks like this, then save the file and restart Apache
Code: Select all
[mail function]
; For Win32 only.
; http://php.net/smtp
; SMTP = localhost
; http://php.net/smtp-port
; smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = Off

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log = "C:\xampp\apache\logs\php_mail.log"
Next go to \xampp\sendmail folder and load the sendmail.ini file in your text editor.
Code: Select all
# Example for a user configuration file

# Set default values for all following accounts.
defaults
logfile "C:\xampp\sendmail\sendmail.log"

# Mercury
account Mercury
host localhost
from postmaster@localhost
auth off

# A freemail service example
account Hotmail
tls on
tls_certcheck off
host smtp.live.com
from [exampleuser]@hotmail.com
auth on
user [exampleuser]@hotmail.com
password [examplepassword]

# Set a default account
account default : Mercury
Edit this file by adding your own details and credentials.

You can use the freemail section by changing the details and credentials and also the name or comment it out fully including the Mercury stuff but use it as a template for your own ISP account (best to use your ISP account to avoid ISP blocking of email ports), I advise not to use Mercury Mail unless you have a full blown LAN in use - you would need also to change the default account name to suit your edits.

There are some posts that a search in XAMPP for Windows using sendmail or email as the keywords may find that could be helpful and informative on this subject.
by Izzy
29. December 2009 01:30
 
Forum: XAMPP for Windows
Topic: Sending email through PHP/XAMPP ... how is this set up?
Replies: 10
Views: 22273

Re: Sending email

That explains the incorrect .ini file and really you should have mentioned that as we here have no way of knowing unless you tell us.

The php.ini file I posted is correct for 1.7.1

The sendmail.ini file may look like this:
Code: Select all
; configuration for fake sendmail

[sendmail]

; you must change mail.mydomain.com to your smtp server

smtp_server=mail.myisp.com.au

; smtp port (normally 25)

smtp_port=25

; the default domain for this server will be read from the registry
; this will be appended to email addresses when one isn't provided
; if you want to override the value in the registry, uncomment and modify

; default_domain=local

; log smtp errors to error.log (defaults to same directory as sendmail.exe)
; uncomment to enable logging

error_logfile=error.log

; create debug log as debug.log (defaults to same directory as sendmail.exe)
; uncomment to enable debugging

debug_logfile=debug.log

; if your smtp server requires authentication, modify the following two lines

auth_username=myusername
auth_password=mypassword

; if your smtp server uses pop3 before smtp authentication, modify the
; following three lines

; pop3_server=
; pop3_username=
; pop3_password=

; to force the sender to always be the following email address, uncomment and
; populate with a valid email address.  this will only affect the "MAIL FROM"
; command, it won't modify the "From: " header of the message content

force_sender=me@myisp.com.au

; sendmail will use your hostname and your default_domain in the ehlo/helo
; smtp greeting.  you can manually set the ehlo/helo name if required

; hostname=localhost
That's it, and usually works for most scripts that want to send mail via sendmail couple with the correct php.ini settings which by the way you must restart Apache after editing the php.ini file to have your edits recognised.

Remember that PHP can't in itself send the authentication to your ISP that is why you should use sendmail to do that job.

Also check the error.log and debug.log files in the sendmail folder if or when you send mail you get an error.

The author of Fake Sendmail for Windows, Byron Jones, and his web site link:
http://glob.com.au/sendmail/

This page recommends you contact the author of sendmail for help not covered in the help page by including the debug report after you have your intermittent issues or to report a bug in detail.
http://glob.com.au/sendmail/help/
by Izzy
29. November 2009 09:02
 
Forum: XAMPP for Windows
Topic: Sending email
Replies: 5
Views: 6921

Re: Sending email

angusmann wrote:I altered php.ini like this
Code: Select all
[mail function]
; For Win32 only.
SMTP = mail.myisp.com.au
smtp_port = 25

; For Win32 only.
sendmail_from = me@myemail.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"
You can only use one or the other, SMTP or Sendmail not both, so the php.ini should look like this below because sendmail would be what you need if you are requiring authentication which just about all mail server now require.

You May have to tell your script to use sendmail and possibly it's location.
Code: Select all
[mail function]
; For Win32 only.
;SMTP = mail.myisp.com.au
;smtp_port = 25

; For Win32 only.
; sendmail_from = me@myemail.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"


angusmann wrote:And I altered sendmail.ini like this:
Code: Select all
; if your smtp server requires authentication, modify the following two lines

auth_username=myusername
auth_password=mypassword

; if your smtp server uses pop3 before smtp authentication, modify the
; following three lines

pop3_server=mail.myisp.com.au
pop3_username=myusername
pop3_password=mypassword
You are using XAMPP 1.7.2 yet this is not the sendmail.ini file included in this version, it is the fake sendmail instance that was included in versions prior to 1.7.2.

In which case I suggest that you upgraded an earlier version of XAMPP by overwriting the files with the 1.7.2 version files instead of uninstalling the older version, then doing a clean new installation of 1.7.2 as there has been major changes that would require a new installation for 1.7.2.

Only upgrade an earlier version if you see there is an upgrade_version_file on the XAMPP for Windows home page.


This is what the 1.7.2 sendmail.ini looks like
Code: Select all
# Example for a user configuration file

# Set default values for all following accounts.
defaults
logfile "C:\xampp\sendmail\sendmail.log"

# Mercury
account Mercury
host localhost
from postmaster@localhost
auth off

# A freemail service example
account Hotmail
tls on
tls_certcheck off
host smtp.live.com
from [exampleuser]@hotmail.com
auth on
user [exampleuser]@hotmail.com
password [examplepassword]

# Set a default account
account default : Mercury
The entries in this sendmail.ini file are only examples.

A search in forum XAMPP for Windows and a search for keyword msmtp may give a couple of post that went into some detail about this subject only recently.
by Izzy
29. November 2009 07:23
 
Forum: XAMPP for Windows
Topic: Sending email
Replies: 5
Views: 6921

Re: Where did Sendmail come from?

Missing support info - what XAMPP version and which Windows OS?
So assuming latest stable XAMPP version.

The sendmail included in XAMPP 1.7.2 is msmtp details can be seen in the readme_en.txt file.

Version prior to 1.7.2 used fake sendmail.
by Izzy
29. November 2009 07:14
 
Forum: XAMPP for Windows
Topic: Where did Sendmail come from?
Replies: 3
Views: 5071

Re: Sending email

How are you trying now to send email - what script?

What have you changed in any .ini or .conf file?

Did you Search in forums: XAMPP for Windows and Search for keywords: sendmail
by Izzy
29. November 2009 00:01
 
Forum: XAMPP for Windows
Topic: Sending email
Replies: 5
Views: 6921

Re: My xampp apache doesnt send emails

strangebutfunny wrote:what is that?
The script that sends mail from your web site.

I don't know anything about your web site or how you are trying to send email or what script or admin configurations you have configured to send mail from your web site.

All the answers you need to configure XAMPP to send email are in the sendmail search results, had you searched.
by Izzy
13. November 2009 05:56
 
Forum: XAMPP for Windows
Topic: My xampp apache doesnt send emails
Replies: 19
Views: 27055

Re: My xampp apache doesnt send emails

Izzy wrote:Do an Advanced search in forum XAMPP for Windows using sendmail as the keyword.

You should see many results that will give you most of the info you need to configure your mail sending.
Did you do a forum search for the answers as I indicated and as a new forum member please do read this:
viewtopic.php?f=16&t=32670
by Izzy
13. November 2009 05:36
 
Forum: XAMPP for Windows
Topic: My xampp apache doesnt send emails
Replies: 19
Views: 27055

Re: My xampp apache doesnt send emails

You will have to do some configuration edits to send email.

Do an Advanced search in forum XAMPP for Windows using sendmail as the keyword.

You should see many results that will give you most of the info you need to configure your mail sending.
by Izzy
13. November 2009 05:05
 
Forum: XAMPP for Windows
Topic: My xampp apache doesnt send emails
Replies: 19
Views: 27055

Re: SMTP 520 authentication error

@ aj123cd
The OP requires authentication but this is not possible in the links you posted as outlined in Nobbie's post.

@ carnage
There is an alternate solution included in XAMPP that you can use and I have linked below a search that may provide the answers:
Advanced Forum Search for sendmail
by Izzy
10. November 2009 08:01
 
Forum: XAMPP for Windows
Topic: SMTP 520 authentication error
Replies: 3
Views: 7940

Re: sendmail.exe doesn't read sendmail.ini

ldexterldesign wrote:...Drop me your Paypal and I'll flit you some beer $$$.
Lewis, thanks very much indeed for the offer but alas I don't use it - it's not very often one gets such appreciation on these forums...

...but I bet the crew at Apache Friends would really appreciate a stein or two, of that I am sure, as they do all the hard work, I just carry the First Aid kit.

So if you still want to show your appreciation you could do no better than to kindly click on the PayPal Donate image at the top of the Home Page under the heading:
Support XAMPP, Make A Donation!
http://www.apachefriends.org/en/xampp-windows.html

Once again, thank you kindly.
Cheers! Lewis and good luck.
by Izzy
08. November 2009 04:09
 
Forum: XAMPP for Windows
Topic: sendmail.exe doesn't read sendmail.ini
Replies: 16
Views: 29146
Next

Return to advanced search