Ok,
configuring sendmail might be some kind of tricky. The default behaviour of sendmail is to use the complete hostname as domain name for sending out mails. If the host name is e.g. ourserver.ourdomain.com and that host isn't resolveable externally then most mail servers would not accept the mail for delivery.
To get around that problem you have to make sendmail to use your main domain.
Check your sendmail.cf (in most cases located in /etc) and change the following part:
who I masquerade as (null for no masquerading) (see also $=M)
DMmydomain.com
That's the first thing to do.
Second you might want to change the genericstable to map the web server user's mail address to an official mail address.
Edit the /etc/mail/genericstable and add the following line (assuming that the web server runs as wwwrun):
wwwrun info@mydomain.com
Change the mail address to the right to your needs.
Then create a new genericstable db with:
makemap hash genericstable.db < genericstable
and restart sendmail. In our case that solved the problem 🙂
Were you able to solve the url fopen problem ? Can you ping or resolve outside hosts generally on the linux box ?
Regards,
Thomas