Page 1 of 1

quick email() / sendmail_from question

Posted: Sat Nov 12, 2005 5:27 pm
by rubberjohn
Weirdan wrote:

Code: Select all

SMTP = mail_server_of_your_ISP_here
sendmail_from = your_email_here
does the 'your_email_here' have to be your email address from your isp, ie joebloggs@btopenworld.co.uk or can it be joebloggs@gmail.com?

thanks

Posted: Sun Nov 13, 2005 12:43 pm
by twigletmac
I'm pretty sure it can be anything you like - have you had a go with both?

Mac

Posted: Mon Nov 14, 2005 10:33 am
by rubberjohn
yeah they both work now - there was a stupid mistake in another part of the code - thanks anyway

im running apache on a windows machine - do i just remove these two lines

ini_set("SMTP","my_isp_mail_server");
ini_set("sendmail_from","my_email_address");

when i upload the site, and let the online server take care of the mail() function? - because as i understand it, these two lines are to make the mail() function work on a local machine

for anyone else that wants to use the mail() function in this way, here is a list i found with a pretty comprehensive list of smtp addresses for particular isps.

http://www.css.qmul.ac.uk/mail/smtp/ispsmtp.html