Binary attachments

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
spacebiscuit
Forum Contributor
Posts: 390
Joined: Mon Mar 07, 2005 3:20 pm

Binary attachments

Post by spacebiscuit »

Hi,

Does anyone know of any classes or functions that enable binary attachments to be sent to newsgroups via email?

Thanks in advance.

Rob.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Do you have an email to news gateway? If so, PHPMailer can send attachments really easy.
spacebiscuit
Forum Contributor
Posts: 390
Joined: Mon Mar 07, 2005 3:20 pm

Post by spacebiscuit »

Thanks for the rpely, what is an email to news gateway?

I have a username and password that I use to log a newsgroup server that I subscribe to. Not sure if that answers the question?

Rob.
User avatar
Pyrite
Forum Regular
Posts: 769
Joined: Tue Sep 23, 2003 11:07 pm
Location: The Republic of Texas
Contact:

Post by Pyrite »

Does your news server support email to news? Can you post to it via email?
spacebiscuit
Forum Contributor
Posts: 390
Joined: Mon Mar 07, 2005 3:20 pm

Post by spacebiscuit »

Yes I can post via email. So PHPMailer is the answer I guess. What is it exactly, ideally I'd like to be able to write my own short script.

Rob.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

spacebiscuit
Forum Contributor
Posts: 390
Joined: Mon Mar 07, 2005 3:20 pm

Post by spacebiscuit »

Hi,

I am trying to post to my newsgroup via phpmailer. I can email regular messages to myself with attachments do I know my setup is working.

I am not sure that I have setup correctly for newsgroups though. I have set the following variables as follows.......

$mail->From = "me@myemail.com";
$mail->FromName = "My name";
$mail->Host = "news.mynewsgroupserver.com";
$mail->Username = "username";
$mail->Password = "password";

Does this look correct? I am not 100% sure that phpbuilder supports NNTP?

Thanks in advance.

Rob Burne.
Post Reply