quick email() / sendmail_from question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rubberjohn
Forum Contributor
Posts: 193
Joined: Fri Feb 25, 2005 4:03 am

quick email() / sendmail_from question

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

I'm pretty sure it can be anything you like - have you had a go with both?

Mac
rubberjohn
Forum Contributor
Posts: 193
Joined: Fri Feb 25, 2005 4:03 am

Post 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
Post Reply